#36304 closed defect (duplicate)
libstdcxx: Build failed for libstdcxx on OSX 10.8 on x86_64
Reported by: | kenneth@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | jeremyhu (Jeremy Huddleston Sequoia), pierphil@…, tlui@… | |
Port: | libstdcxx |
Description
I am doing:
sudo port upgrade outdated
But build for libstdcxx fails with a rather peculiar error message:
ignoring file extenddftf2_s.o, file was built for i386 which is not the architecture being linked (i386): extenddftf2_s.old: warning: ld: warning:
Repeated with many different .o files, then comes:
:info:build Undefined symbols for architecture i386: :info:build "___addtf3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___bswapdi2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___bswapsi2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___clrsbdi2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___clrsbsi2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___divtc3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___divtf3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___emutls_get_address", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___emutls_register_common", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___eqtf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___extenddftf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___extendsftf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___extendxftf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___ffssi2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixtfdi", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixtfsi", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixunstfdi", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixunstfsi", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floatditf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floatsitf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floatunditf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floatunsitf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___getf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___gttf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___letf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___lttf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___multc3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___multf3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___negtf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___netf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___powitf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___subtf3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___trunctfdf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___trunctfsf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___trunctfxf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___unordtf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "__darwin10_Unwind_FindEnclosingFunction", referenced from: :info:build -exported_symbol[s_list] command line option :info:build ld: symbol(s) not found for architecture i386 :info:build collect2: error: ld returned 1 exit status :info:build make[5]: *** [libgcc_s.dylib] Error 1 :info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build/x86_64-apple-darwin12/i386/libgcc' :info:build make[4]: *** [multi-do] Error 1 :info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build/x86_64-apple-darwin12/libgcc' :info:build make[3]: *** [all-multi] Error 2 :info:build make[3]: *** Waiting for unfinished jobs.... :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build/x86_64-apple-darwin12/libgcc' :info:build make[2]: *** [all-stage1-target-libgcc] Error 2 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build' :info:build make[1]: *** [stage1-bubble] Error 2 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build' :info:build make: *** [bootstrap] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build" && /usr/bin/make -j4 -w bootstrap :info:build Exit code: 2 :error:build org.macports.build for port libstdcxx returned: command execution failed :debug:build Error code: CHILDSTATUS 39562 2 :debug:build Backtrace: command execution failed "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 libstdcxx: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port libstdcxx for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/main.log
Full log is attached
Attachments (2)
Change History (16)
Changed 12 years ago by kenneth@…
Attachment: | main.log.gz added |
---|
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jeremyhu@… added |
---|---|
Keywords: | gcc libstdcxx x86_64 removed |
Owner: | changed from macports-tickets@… to mww@… |
Summary: | Build failed for libstdcxx on OSX 10.8 on x86_64 → libstdcxx: Build failed for libstdcxx on OSX 10.8 on x86_64 |
comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
That's odd... it builds fine here... =/
comment:4 Changed 12 years ago by suresh.sivanandam@…
Same compile error on my end. I am running macports 2.1.2, OS X 10.8.2 on an iMac 11,3 with a Core i7 processor. However, it compiled fine on my older 2009 13" MBP with a Core 2 Duo proc.
comment:5 Changed 12 years ago by mf2k (Frank Schima)
For those that it fails to build for, what is the output of the following?
port installed ld64
comment:6 Changed 12 years ago by kenneth@…
I get:
The following ports are currently installed: ld64 @128.2_4+llvm30+universal ld64 @133.3_3+llvm30+universal (active)
comment:7 Changed 12 years ago by mf2k (Frank Schima)
Then I suggest installing ld64 with the llvm31 variant.
sudo port -f deactivate ld64 @133.3_3+llvm30+universal sudo port install ld64
This will build with llvm31 because that is now the default. I'm not sure why you have it installed universal but if you really want that, then add the +universal variant when rebuilding it.
comment:9 Changed 12 years ago by kenneth@…
I have not explicitly asked for universal, but after deactivating, the problem is gone. I now get:
The following ports are currently installed: ld64 @128.2_4+llvm30+universal ld64 @133.3_3+llvm30+universal ld64 @133.3_3+llvm31 (active)
And libstdcxx compiled fine. Thanks!
comment:10 Changed 12 years ago by vaccari@…
Can't compile libstdcxx here, on 10.8.2 with Xcode Version 4.5 (4G182). After several attempts I completely removed /opt/local, reinstalled MacPorts, and then sudo port install libstdcxx. All the dependencies installed fine, but in the end libstdcxx failed.
About ld64:
sudo port installed ld64 The following ports are currently installed: ld64 @133.3_3+llvm31 (active)
Last part of the log file:
:info:build ignoring file unwind-c_s.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64): unwind-c_s.old: warning: :info:build :info:build :info:build ignoring file emutls_s.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64): emutls_s.o :info:build Undefined symbols for architecture x86_64: :info:build "___addtf3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___bswapdi2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___bswapsi2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___clrsbdi2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___clrsbti2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___divtc3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___divtf3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___emutls_get_address", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___emutls_register_common", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___eqtf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___extenddftf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___extendsftf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___extendxftf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixtfdi", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixtfsi", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixtfti", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixunstfdi", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixunstfsi", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___fixunstfti", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floatditf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floatsitf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floattitf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floatunditf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floatunsitf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___floatuntitf", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___getf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___gttf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___letf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___lttf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___multc3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___multf3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___negtf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___netf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___powitf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___subtf3", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___trunctfdf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___trunctfsf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___trunctfxf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "___unordtf2", referenced from: :info:build -exported_symbol[s_list] command line option :info:build "__darwin10_Unwind_FindEnclosingFunction", referenced from: :info:build -exported_symbol[s_list] command line option :info:build ld: symbol(s) not found for architecture x86_64 :info:build collect2: error: ld returned 1 exit status :info:build make[3]: *** [libgcc_s.dylib] Error 1 :info:build make[3]: *** Waiting for unfinished jobs.... :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build/x86_64-apple-darwin12/libgcc' :info:build make[2]: *** [all-stage1-target-libgcc] Error 2 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build' :info:build make[1]: *** [stage1-bubble] Error 2 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build' :info:build make: *** [bootstrap] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build" && /usr/bin/make -j8 -w bootstrap :info:build Exit code: 2 :error:build org.macports.build for port libstdcxx returned: command execution failed :debug:build Error code: CHILDSTATUS 57685 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 libstdcxx: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port libstdcxx for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/main.log
A lot of _s.o files ignored for the same reason, before the two listed above. What can I try more?
Changed 12 years ago by vaccari@…
Attachment: | mainFV.log.gz added |
---|
comment:11 follow-up: 14 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Your build failure is #36026.
Please jump in that bug and provide the requested information as I can't reproduce the issue.
comment:12 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:13 Changed 12 years ago by suresh.sivanandam@…
Thanks for the suggestion to remove the older version of ld64. It worked like a charm for me after I installed ld64+llvm31.
comment:14 Changed 12 years ago by vaccari@…
Replying to jeremyhu@…:
Your build failure is #36026.
Please jump in that bug and provide the requested information as I can't reproduce the issue.
Done, I added the session transcript https://trac.macports.org/ticket/36026#comment:82 and attached the log there https://trac.macports.org/attachment/ticket/36026/libstdcxx.log.zip
Please let me know (there) how I can help more...
Full log file