Opened 11 years ago
Closed 10 years ago
#42773 closed defect (fixed)
apple-gcc42 @5666.3_13 build fails due to ld not recognizing -arch ppc
Reported by: | cooljeanius (Eric Gallager) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | jeremyhu (Jeremy Huddleston Sequoia) | |
Port: | apple-gcc42 |
Description
Tried installing apple-gcc42 today, ran into this error:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot/obj-x86_64-powerpc/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot/obj-x86_64-powerpc/./gcc/ -B/opt/local/powerpc-apple-darwin10/bin/ -B/opt/local/powerpc-apple-darwin10/lib/ -isystem /opt/local/powerpc-apple-darwin10/include -isystem /opt/local/powerpc-apple-darwin10/sys-include -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.4 -O2 -O2 -g -O2 -std=gnu89 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -Wa,-force_cpusubtype_ALL -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot/src/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot/src/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot/src/gcc/../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot/src/gcc/../libcpp/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot/src/gcc/../libdecnumber -I../libdecnumber -m64 -xassembler-with-cpp -include libgcc/ppc64/darwin-tramp.vis -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot/src/gcc/config/rs6000/darwin-tramp.asm -o libgcc/ppc64/darwin-tramp.o ld: unknown/unsupported architecture name for: -arch ppc collect2: ld returned 1 exit status make[4]: *** [libgcc_s.dylib] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [stmp-multilib] Error 2 rm cpp.pod gcov.pod gpl.pod gfdl.pod fsf-funding.pod gcc.pod make[2]: *** [all-gcc] Error 2 make[1]: *** [all] Error 2 + exit 1 make: *** [install] Error 1 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/gcc-5666.3' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/gcc-5666.3" && /usr/bin/make -j2 -w install CC="/usr/bin/gcc-4.2 -pipe -std=gnu89" PREFIX="/opt/local" SRCROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/gcc-5666.3" OBJROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot" SYMROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/symroot" DSTROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/destroot" RC_NONARCH_CFLAGS="-pipe -std=gnu89" RC_OS="macos" RC_ARCHS="i386 x86_64" RC_ProjectSourceVersion="5666" RC_ProjectSourceSubversion="3" TARGETS="i386 ppc" Exit code: 2 Error: org.macports.build for port apple-gcc42 returned: command execution failed DEBUG: Error code: CHILDSTATUS 97144 2 DEBUG: Backtrace: command execution failed
Attachments (1)
Change History (9)
Changed 11 years ago by cooljeanius (Eric Gallager)
comment:1 follow-up: 2 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Yeah, I updated SL's cctools, so it no longer supports ppc by default. apple-gcc42 should follow suit.
comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)
Replying to jeremyhu@…:
Yeah, I updated SL's cctools, so it no longer supports ppc
I thought that ld
came from the ld64
port though? Or did that get updated likewise as well?
by default
So if it is just the default, does that mean that there is a way to select something other than the default?
comment:3 follow-up: 4 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Yeah, I meant ld64.
No, there's no variant setup for it. Do you actually need ppc support?
comment:4 Changed 11 years ago by cooljeanius (Eric Gallager)
Replying to jeremyhu@…:
No, there's no variant setup for it. Do you actually need ppc support?
I suppose not via MacPorts, as Xcode's gcc still has ppc support... I mostly just compile for ppc for testing purposes (i.e. to debug my Rosetta installation); my only physical ppc machine is currently sitting in my basement gathering dust...
comment:5 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Yeah, that's pretty much why I did it. C++11 support is more important than ppc support =/
comment:6 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
I'll use this to fix gcc42's build (removing ppc on SL)
comment:7 Changed 10 years ago by cooljeanius (Eric Gallager)
r125113 should theoretically "fix" this, I guess, have not tested yet though...
comment:8 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yeah.
main.log for apple-gcc42 build failure