WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: [MacPorts] #34233: apple-gcc42 doesn't honor -isysroot correctly

Re: [MacPorts] #34233: apple-gcc42 doesn't honor -isysroot correctly

by MacPorts :: Rate this Message:

| View in Thread

#34233: apple-gcc42 doesn't honor -isysroot correctly
-----------------------------------+----------------------------------------
 Reporter:  jeremyhu@…             |       Owner:  royliu@…          
     Type:  defect                 |      Status:  new                
 Priority:  Normal                 |   Milestone:                    
Component:  ports                  |     Version:  2.0.4              
 Keywords:                         |        Port:  apple-gcc42        
-----------------------------------+----------------------------------------
Description changed by jeremyhu@…:

Old description:

> {{{
> /opt/local/libexec/apple-gcc42/gcc/i686-apple-darwin10/4.2.1/cc1 -E
> -quiet -isysroot /Developer/SDKs/MacOSX10.5.sdk test.c | grep
> usr/include| head -n 1
> # 1 "/usr/include/stdio.h" 1 3 4
> }}}
>
> {{{
> ~ $ /opt/local/libexec/apple-gcc42/gcc/i686-apple-darwin8/4.2.1/cc1 -E
> -quiet -isysroot /Developer/SDKs/MacOSX10.4u.sdk test.c | grep
> usr/include| head -n 1
> # 1 "/usr/include/stdio.h" 1 3 4
> }}}
>
> gcc42 (and the rest of the gcc ports) are ok:
> {{{
> ~ $ /opt/local/libexec/gcc/i386-apple-darwin8.11.1/4.2.4/cc1 -E -quiet
> -isysroot /Developer/SDKs/MacOSX10.4u.sdk test.c | grep usr/include| head
> -n 1
> # 1 "/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdio.h" 1 3 4
> }}}

New description:

 {{{
 /opt/local/libexec/apple-gcc42/gcc/i686-apple-darwin10/4.2.1/cc1 -E -quiet
 -isysroot /Developer/SDKs/MacOSX10.5.sdk test.c | grep usr/include| head
 -n 1
 # 1 "/usr/include/stdio.h" 1 3 4
 }}}

 {{{
 ~ $ /opt/local/libexec/apple-gcc42/gcc/i686-apple-darwin8/4.2.1/cc1 -E
 -quiet -isysroot /Developer/SDKs/MacOSX10.4u.sdk test.c | grep
 usr/include| head -n 1
 # 1 "/usr/include/stdio.h" 1 3 4
 }}}

 gcc42 (and the rest of the gcc ports) are ok:
 {{{
 ~ $ /opt/local/libexec/gcc/i386-apple-darwin8.11.1/4.2.4/cc1 -E -quiet
 -isysroot /Developer/SDKs/MacOSX10.4u.sdk test.c | grep usr/include| head
 -n 1
 # 1 "/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdio.h" 1 3 4
 }}}

 ---

 {{{
 $ /opt/local/libexec/apple-gcc42/gcc/i686-apple-darwin8/4.2.1/cc1 -v
 -quiet -E -isysroot /Developer/SDKs/MacOSX10.4u.sdk test.c > /dev/null
 ignoring nonexistent directory "/opt/local/lib/apple-gcc42/gcc/i686-apple-
 darwin8/4.2.1/../../../../i686-apple-darwin8/include"
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/local/include
  /opt/local/include
  /opt/local/lib/apple-gcc42/gcc/i686-apple-darwin8/4.2.1/include
  /usr/include
  /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks (framework
 directory)
  /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks (framework directory)
 End of search list.

 $ /opt/local/libexec/gcc/i386-apple-darwin8.11.1/4.2.4/cc1 -v -quiet -E
 -isysroot /Developer/SDKs/MacOSX10.4u.sdk test.c > /dev/null
 ignoring nonexistent directory
 "/Developer/SDKs/MacOSX10.4u.sdk/opt/local/include"
 ignoring nonexistent directory "/opt/local/lib/gcc42/gcc/i386-apple-
 darwin8.11.1/4.2.4/../../../../i386-apple-darwin8.11.1/include"
 #include "..." search starts here:
 #include <...> search starts here:
  /opt/local/lib/gcc42/gcc/i386-apple-darwin8.11.1/4.2.4/include
  /Developer/SDKs/MacOSX10.4u.sdk/usr/include
  /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
  /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks
 End of search list.
 }}}

--

--
Ticket URL: <https://trac.macports.org/ticket/34233#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
macports-tickets@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-tickets

 « Return to Thread: [MacPorts] #34233: apple-gcc42 doesn't honor -isysroot correctly