[MacPorts] #34159: ld64 fails to build on Lion
MacPorts
noreply at macports.org
Sat Apr 21 16:03:03 PDT 2012
#34159: ld64 fails to build on Lion
-------------------------------------+--------------------------------------
Reporter: susheel.varma@… | Owner: mfeiri@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port: ld64
-------------------------------------+--------------------------------------
Changes (by ryandesign@…):
* owner: macports-tickets@… => mfeiri@…
* cc: susheel.varma@… (removed)
* cc: jeremyhu@… (added)
Old description:
> -> 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
New description:
{{{
-> 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
}}}
--
Comment:
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.
--
Ticket URL: <https://trac.macports.org/ticket/34159#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list