[MacPorts] #42211: stdlib.h not in search path

MacPorts noreply at macports.org
Tue Jan 21 07:54:42 PST 2014


#42211: stdlib.h not in search path
------------------------+--------------------------------
 Reporter:  iviorela@…  |      Owner:  macports-tickets@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.2.1
 Keywords:  gcc         |       Port:
------------------------+--------------------------------
 I am using gcc4.8 on mavericks installed using macports.
 I was using 10.8 (Mountain Lion) and upgraded to 10.9 (Mavericks). After
 that I had problems compiling using gcc4.7 and gcc4.8 and other macports
 problems.
 Now I have a clean installation of macports after deleting it following:
 http://guide.macports.org/chunked/installing.macports.uninstalling.html.
 After I installed gcc48 and gcc47.

 When compiling the CSparse package I'm getting the following error:
 {{{
  fatal error: stdlib.h: No such file or directory
 }}}

 Searching for stdlib.h I get:

 {{{
 find / -name stdlib.h
 find: /.DocumentRevisions-V100: Permission denied
 find: /.fseventsd: Permission denied
 find: /.Spotlight-V100: Permission denied
 find: /.Trashes: Permission denied
 /Applications/MATLAB_R2013a.app/sys/lcc/include/stdlib.h
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/c++/4.2.1/tr1/stdlib.h
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/stdlib.h
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/include/c++/4.2.1/tr1/stdlib.h
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/include/stdlib.h
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/tr1/stdlib.h
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/stdlib.h
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/tr1/stdlib.h
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/stdlib.h
 find: /dev/fd/3: Not a directory
 find: /dev/fd/4: Not a directory
 find: /Library/Application Support/Apple/ParentalControls/Users:
 Permission denied
 find: /Library/Application Support/Apple/Remote Desktop/Client: Permission
 denied
 find: /Library/Application Support/com.apple.TCC: Permission denied
 find: /Library/Caches/com.apple.Spotlight/schema.501.plist: Permission
 denied
 find: /Library/Caches/com.apple.Spotlight/schema.502.plist: Permission
 denied
 find: /Library/Caches/com.apple.Spotlight/schema.89.plist: Permission
 denied
 find: /Library/Caches/com.apple.Spotlight: Permission denied
 find: /Library/Caches/com.google.SoftwareUpdate.0: Permission denied
 /opt/local/include/gcc47/c++/tr1/stdlib.h
 /opt/local/include/gcc48/c++/tr1/stdlib.h
 }}}

 So it is clearly there. To check why gcc don't see it :

 {{{
 /opt/local/bin/gcc-mp-4.8 -print-prog-name=cc1
 /opt/local/libexec/gcc/x86_64-apple-darwin13/4.8.2/cc1
 }}}

 and the list is:

 {{{
 /opt/local/libexec/gcc/x86_64-apple-darwin13/4.8.2/cc1 -v
 ignoring nonexistent directory "/opt/local/lib/gcc48/gcc/x86_64-apple-
 darwin13/4.8.2/../../../../../x86_64-apple-darwin13/include"
 ignoring nonexistent directory "/usr/include"
 #include "..." search starts here:
 #include <...> search starts here:
  /opt/local/lib/gcc48/gcc/x86_64-apple-darwin13/4.8.2/include
  /opt/local/include
  /opt/local/lib/gcc48/gcc/x86_64-apple-darwin13/4.8.2/include-fixed
  /System/Library/Frameworks
  /Library/Frameworks
 End of search list.
 }}}


 You can see that  /opt/local/include/gcc48/c++/tr1/ is not in the list.

 Thank you.

-- 
Ticket URL: <https://trac.macports.org/ticket/42211>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list