Opened 12 years ago
Closed 12 years ago
#36213 closed defect (invalid)
bzip2: fatal error: 'stdlib.h' file not found
Reported by: | exoneration@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | bzip2 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
OS: Mountain Lion
h100-195:~ maxx$ sudo port install bzip2 ---> Building bzip2 Error: org.macports.build for port bzip2 returned: command execution failed Please see the log file for port bzip2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port bzip2 failed h100-195:~ maxx$
main.log
version:1 :debug:main bzip2 has no conflicts :debug:main Executing org.macports.main (bzip2) :debug:main changing euid/egid - current euid: 0 - current egid: 0 :debug:main egid changed to: 501 :debug:main euid changed to: 502 :debug:main Skipping completed org.macports.archivefetch (bzip2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.fetch (bzip2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.checksum (bzip2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.extract (bzip2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.patch (bzip2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.configure (bzip2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Tue Sep 18 13:32:53 MDT 2012 :notice:build ---> Building bzip2 :debug:build Executing org.macports.build (bzip2) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6" && /usr/bin/make -j8 -w all CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64" PREFIX=/opt/local' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6" && /usr/bin/make -j8 -w all CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64" PREFIX=/opt/local :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6' :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c huffman.c :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c crctable.c :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c randtable.c :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c compress.c :info:build :info:build If compilation produces errors, or a large number of warnings, :info:build please read README.COMPILATION.PROBLEMS -- you might be able to :info:build adjust the flags in this Makefile to improve matters. :info:build :info:build Also in README.COMPILATION.PROBLEMS are some hints that may help :info:build if your build produces an executable which is unable to correctly :info:build handle so-called 'large files' -- files of size 2GB or more. :info:build :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c blocksort.c :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c decompress.c :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c bzlib.c :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c bzip2.c :info:build In file included from huffman.c:22: :info:build ./bzlib_private.h:25:10: fatal error: 'stdlib.h' file not found :info:build #include <stdlib.h> :info:build ^ :info:build In file included from crctable.c:22: :info:build ./bzlib_private.h:25:10: fatal error: 'stdlib.h' file not found :info:build #include <stdlib.h> :info:build ^ :info:build bzip2.c:50:10: fatal error: 'stdio.h' file not found :info:build #include <stdio.h> :info:build ^ :info:build In file included from compress.c:29: :info:build ./bzlib_private.h:25:10: fatal error: 'stdlib.h' file not found :info:build #include <stdlib.h> :info:build ^ :info:build In file included from bzlib.c:31: :info:build ./bzlib_private.h:25:10: fatal error: 'stdlib.h' file not found :info:build #include <stdlib.h> :info:build ^ :info:build In file included from blocksort.c:22: :info:build ./bzlib_private.h:25:10: fatal error: 'stdlib.h' file not found :info:build #include <stdlib.h> :info:build ^ :info:build 1 error generated. :info:build In file included from decompress.c:22: :info:build ./bzlib_private.h:25:10: fatal error: 'stdlib.h' file not found :info:build #include <stdlib.h> :info:build ^ :info:build In file included from randtable.c:22: :info:build ./bzlib_private.h:25:10: fatal error: 'stdlib.h' file not found :info:build #include <stdlib.h> :info:build ^ :info:build 1 error generated. :info:build make: *** [crctable.o] Error 1 :info:build make: *** Waiting for unfinished jobs.... :info:build make: *** [huffman.o] Error 1 :info:build 1 error generated. :info:build make: *** [randtable.o] Error 1 :info:build 1 error generated. :info:build 1 error generated. :info:build 1 error generated. :info:build make: *** [blocksort.o] Error 1 :info:build make: *** [compress.o] Error 1 :info:build make: *** [bzip2.o] Error 1 :info:build 1 error generated. :info:build make: *** [bzlib.o] Error 1 :info:build 1 error generated. :info:build make: *** [decompress.o] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6" && /usr/bin/make -j8 -w all CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64" PREFIX=/opt/local :info:build Exit code: 2 :error:build org.macports.build for port bzip2 returned: command execution failed :debug:build Error code: CHILDSTATUS 655 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: targets not executed for bzip2: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port bzip2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/main.log
Change History (1)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Description: | modified (diff) |
Port: | bzip2 added |
Resolution: | → invalid |
Status: | new → closed |
Summary: | error → bzip2: fatal error: 'stdlib.h' file not found |
Note: See
TracTickets for help on using
tickets.
It sounds like you haven't installed the command line tools properly. Please do so; see wiki:ProblemHotlist#clt . Then "sudo port clean bzip2" and any other ports you might have tried to install, then try again.