Opened 10 years ago

Closed 10 years ago

#43910 closed defect (invalid)

cctools @855 build failure

Reported by: matteofox88@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.0
Keywords: cctools855 Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port:

Description (last modified by jeremyhu (Jeremy Huddleston Sequoia))

Dear all,

cctools faild to build under OSX Snow Leopard with Xcode 3.2.6 with the log below. It seems the problem is in the patched ofile_print.c. However the devil is in the detail because I tried to revert back to the original ofile_print.c and build again. The build appears to go through but then stuck again complaining about the x86_64 arch.

Regards, Matteo

version:1
:msg:clean --->  Computing dependencies for cctools:info:clean .:debug:clean cctools has no conflicts
:debug:clean Searching for dependency: ld64
:debug:clean Found Dependency: receipt exists for ld64
:debug:clean Searching for dependency: cctools-headers
:debug:clean Found Dependency: receipt exists for cctools-headers
:debug:clean Searching for dependency: llvm-3.3
:debug:clean Found Dependency: receipt exists for llvm-3.3
:msg:clean 
:debug:main Executing org.macports.main (cctools)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 507
:debug:main Skipping completed org.macports.archivefetch (cctools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (cctools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (cctools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (cctools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (cctools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (cctools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Thu Jun  5 11:08:25 CEST 2014
:notice:build --->  Building cctools
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (cctools)
:debug:build Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855" && /usr/bin/make -j2 -w all RC_OS="macos" RC_ProjectSourceVersion=855 USE_DEPENDENCY_FILE=NO BUILD_DYLIBS=NO CC="/usr/bin/gcc-4.2 -Os -std=gnu99" CXX="/usr/bin/g++-4.2 -Os" CXXLIB="" RC_ARCHS="x86_64" SDK="-I/opt/local/include" LTO=-DLTO_SUPPORT RC_CFLAGS="-arch x86_64 `llvm-config-mp-3.3 --cflags`" LLVM_MC="llvm-mc-mp-3.3" TRIE=-DTRIE_SUPPORT'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855" && /usr/bin/make -j2 -w all RC_OS="macos" RC_ProjectSourceVersion=855 USE_DEPENDENCY_FILE=NO BUILD_DYLIBS=NO CC="/usr/bin/gcc-4.2 -Os -std=gnu99" CXX="/usr/bin/g++-4.2 -Os" CXXLIB="" RC_ARCHS="x86_64" SDK="-I/opt/local/include" LTO=-DLTO_SUPPORT RC_CFLAGS="-arch x86_64 `llvm-config-mp-3.3 --cflags`" LLVM_MC="llvm-mc-mp-3.3" TRIE=-DTRIE_SUPPORT 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855'
:info:build =========== /usr/bin/make all for libstuff =============
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855/libstuff'
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855/libstuff'
:info:build =========== /usr/bin/make all for as =============
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855/as'
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855/as'
:info:build =========== /usr/bin/make all for gprof =============
:info:build =========== /usr/bin/make all for misc =============
:info:build =========== /usr/bin/make all for man =============
:info:build =========== /usr/bin/make all for cbtlibs =============
:info:build =========== /usr/bin/make all for otool =============
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855/otool'
:info:build /usr/bin/gcc-4.2 -Os -std=gnu99 -Os -DLTO_SUPPORT -g -Wall -I./../include -I. -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -DEFI_SUPPORT -I/opt/local/include -arch x86_64 -I/opt/local/libexec/llvm-3.3/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3  -g -fno-common  -c -o ./ofile_print.o ofile_print.c
:info:build /usr/bin/gcc-4.2 -Os -std=gnu99 -Os -DLTO_SUPPORT -g -Wall -I./../include -I. -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -DEFI_SUPPORT -I/opt/local/include -arch x86_64 -I/opt/local/libexec/llvm-3.3/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3  -g -fno-common  -c -o ./m68k_disasm.o m68k_disasm.c
:info:build ofile_print.c:232: error: static declaration of ‘strnlen’ follows non-static declaration
:info:build /usr/include/string.h:143: error: previous declaration of ‘strnlen’ was here
:info:build make[1]: *** [ofile_print.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855/otool'
:info:build make: *** [all] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-855" && /usr/bin/make -j2 -w all RC_OS="macos" RC_ProjectSourceVersion=855 USE_DEPENDENCY_FILE=NO BUILD_DYLIBS=NO CC="/usr/bin/gcc-4.2 -Os -std=gnu99" CXX="/usr/bin/g++-4.2 -Os" CXXLIB="" RC_ARCHS="x86_64" SDK="-I/opt/local/include" LTO=-DLTO_SUPPORT RC_CFLAGS="-arch x86_64 `llvm-config-mp-3.3 --cflags`" LLVM_MC="llvm-mc-mp-3.3" TRIE=-DTRIE_SUPPORT 
:info:build Exit code: 2
:error:build org.macports.build for port cctools returned: command execution failed
:debug:build Error code: CHILDSTATUS 84657 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
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for cctools: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port cctools for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/main.log

Change History (3)

comment:1 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Description: modified (diff)

comment:2 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

:info:build ofile_print.c:232: error: static declaration of ‘strnlen’ follows non-static declaration
:info:build /usr/include/string.h:143: error: previous declaration of ‘strnlen’ was here

strnlen was added in OS X 10.7. There's no reason for it to be in /usr/include/string.h ... did you clobber your /usr/include/string.h?

comment:3 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.