Opened 13 years ago

Closed 13 years ago

#34159 closed defect (fixed)

ld64 fails to build on Lion

Reported by: susheel.varma@… Owned by: mfeiri
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: aguynamedryan+macports@…, jeremyhu (Jeremy Huddleston Sequoia)
Port: ld64

Description (last modified by ryandesign (Ryan Carsten Schmidt))

-> sudo port -v upgrade outdated
--->  Computing dependencies for ld64.
--->  Building ld64
Build settings from command line:
    ARCHS = x86_64
    GCC_VERSION = com.apple.compilers.llvm.clang.1_0
    MACOSX_DEPLOYMENT_TARGET = 10.7
    OBJROOT = build/
    SDKROOT = 
    SYMROOT = build/

--- xcodebuild: WARNING: Configuration Deployment is not in the project. Building default configuration.

=== BUILD NATIVE TARGET ld OF PROJECT ld64 WITH THE DEFAULT CONFIGURATION (Release-assert) ===
Check dependencies

CompileC build/ld64.build/Release-assert/ld.build/Objects-normal/x86_64/macho_relocatable_file.o src/ld/parsers/macho_relocatable_file.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2
    setenv LANG en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O3 -mdynamic-no-pic -Wno-missing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-non-virtual-dtor -Woverloaded-virtual -Wno-exit-time-destructors -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wunknown-pragmas -Wno-shadow -Wfour-char-constants -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wc++11-extensions "-DLD_VERS=\"ld64-128.2\"" -fasm-blocks -Wdeprecated-declarations -Wno-invalid-offsetof -mmacosx-version-min=10.7 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-conversion -Wno-sign-conversion -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/ld.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/Release-assert/include -I/Applications/Xcode.app/Contents/Developer/opt/local/include -I/Applications/Xcode.app/Contents/Developer/usr/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/DerivedSources/x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/DerivedSources -Wall -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/Release-assert -I/opt/local/libexec/llvm-3.0/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -g -fno-common -I/opt/local/include -MMD -MT dependencies -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/Objects-normal/x86_64/macho_relocatable_file.d --serialize-diagnostics /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/Objects-normal/x86_64/macho_relocatable_file.dia -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/src/ld/parsers/macho_relocatable_file.cpp -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/Objects-normal/x86_64/macho_relocatable_file.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/src/ld/parsers/macho_relocatable_file.cpp:6186:16: error: use of undeclared identifier 'CPU_SUBTYPE_X86_ALL'
                *subResult = CPU_SUBTYPE_X86_ALL;
                             ^
1 error generated.

CompileC build/ld64.build/Release-assert/ld.build/Objects-normal/x86_64/macho_dylib_file.o src/ld/parsers/macho_dylib_file.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2
    setenv LANG en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O3 -mdynamic-no-pic -Wno-missing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-non-virtual-dtor -Woverloaded-virtual -Wno-exit-time-destructors -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wunknown-pragmas -Wno-shadow -Wfour-char-constants -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wc++11-extensions "-DLD_VERS=\"ld64-128.2\"" -fasm-blocks -Wdeprecated-declarations -Wno-invalid-offsetof -mmacosx-version-min=10.7 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-conversion -Wno-sign-conversion -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/ld.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/Release-assert/include -I/Applications/Xcode.app/Contents/Developer/opt/local/include -I/Applications/Xcode.app/Contents/Developer/usr/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/DerivedSources/x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/DerivedSources -Wall -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/Release-assert -I/opt/local/libexec/llvm-3.0/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -g -fno-common -I/opt/local/include -MMD -MT dependencies -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/Objects-normal/x86_64/macho_dylib_file.d --serialize-diagnostics /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/Objects-normal/x86_64/macho_dylib_file.dia -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/src/ld/parsers/macho_dylib_file.cpp -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2/build/ld64.build/Release-assert/ld.build/Objects-normal/x86_64/macho_dylib_file.o


** BUILD FAILED **


The following build commands failed:
	CompileC build/ld64.build/Release-assert/ld.build/Objects-normal/x86_64/macho_relocatable_file.o src/ld/parsers/macho_relocatable_file.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
shell command "cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/work/ld64-128.2" && OTHER_CFLAGS="-I/opt/local/libexec/llvm-3.0/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3  -g -fno-common -I/opt/local/include" OTHER_CPLUSPLUSFLAGS="-I/opt/local/libexec/llvm-3.0/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3  -g -fno-common -I/opt/local/include" /usr/bin/xcodebuild  -target "all" -configuration Deployment build OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.7 ARCHS=x86_64 SDKROOT="" GCC_VERSION=com.apple.compilers.llvm.clang.1_0 " returned error 65
Warning: the following items did not execute (for ld64): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for ld64 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/ld64/main.log
To report a bug, see <http://guide.macports.org/#project.tickets>
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Problem while installing ld64

Attachments (1)

main.log (11.3 KB) - added by susheel.varma@… 13 years ago.
main.log

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by susheel.varma@…

Attachment: main.log added

main.log

comment:1 Changed 13 years ago by susheel.varma@…

Cc: susheel.varma@… added

Cc Me!

comment:2 Changed 13 years ago by aguynamedryan+macports@…

Cc: aguynamedryan+macports@… added

Cc Me!

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jeremyhu@… added; susheel.varma@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to mfeiri@…

In the future please use WikiFormatting.

Since this was not a clean build attempt, please "sudo port clean ld64" and try again, then attach the new main.log.

comment:4 Changed 13 years ago by tobias.muehlbauer@…

Related to #34160: If I change universal_archs in macports.conf to just x86_64 (remove i386 as in default settings) and try to install ld64 I get the same error.

comment:5 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

This should be fixed with an updated cctools-headers r92209

Note: See TracTickets for help on using tickets.