Opened 15 years ago
Closed 14 years ago
#20993 closed defect (wontfix)
gcc40 fails to build on Snow Leopard
Reported by: | tenomoto (Takeshi Enomoto) | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | snowleopard | Cc: | nthomas@…, nerdling (Jeremy Lavergne) |
Port: | gcc40 |
Description
My Mac Book Pro have Core 2 Duo but boots into the 32-bit kernel mode.
Seems to have a problem at link time.
Successful build of gcc40 would give hints for g95, which needs to build libgcc.a and libbackend.a.
./xgcc -B./ -B/opt/local/i386-apple-darwin10.0.0/bin/ -isystem /opt/local/i386-apple-darwin10.0.0/include -isystem /opt/local/i386-apple-darwin10.0.0/sys-include -L/opt/local/var/macports/build/_Library_MacPorts_ports_lang_gcc40/work/build/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -dynamiclib -nodefaultlibs -Wl,-install_name,/opt/local/lib/gcc40/libgcc_s.1.0.dylib -Wl,-flat_namespace -o ./libgcc_s.1.0.dylib.tmp -Wl,-exported_symbols_list,libgcc/./libgcc.map -compatibility_version 1 -current_version 1.0 libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_floatdidf_s.o libgcc/./_floatdisf_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-darwin_s.o libgcc/./unwind-sjlj_s.o libgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s.dylib && if [ -f ./libgcc_s.1.0.dylib ]; then mv -f ./libgcc_s.1.0.dylib ./libgcc_s.1.0.dylib.backup; else true; fi && mv ./libgcc_s.1.0.dylib.tmp ./libgcc_s.1.0.dylib && ln -s libgcc_s.1.0.dylib ./libgcc_s.dylib ld: unknown/unsupported architecture name for: -arch i686 /usr/bin/libtool: internal link edit command failed make[3]: *** [libgcc_s.dylib] Error 1 make[2]: *** [libgcc.a] Error 2 make[1]: *** [stage1_build] Error 2 make: *** [profiledbootstrap] Error 2 while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname" Warning: the following items did not execute (for gcc40): org.macports.build Error: Status 1 encountered during processing.
Change History (7)
comment:1 Changed 15 years ago by tobypeterson
Keywords: | snowleopard added |
---|---|
Summary: | gcc40 fails to build on Mac Book Pro running Snow Leopard → gcc40 fails to build on Snow Leopard |
Version: | 1.8.0 |
comment:2 Changed 15 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to mww@… |
---|
comment:3 Changed 15 years ago by nthomas@…
Cc: | nthomas@… added |
---|
comment:4 Changed 15 years ago by howarth@…
I added the patches to FSF gcc 4.4 branch and trunk to compile on darwin10. These were never back ported to the earlier FSF gcc releases. The FSF gcc 4.2 branch is now depreciated and the effort to backport all those changes to FSF gcc 4.3 branch didn't seem worth the effort. In fink, I marked their gcc42 and gcc43 packages as Distribution: 10.4,10.5 so that they don't get built on 10.6. MacPorts needs to do something like this. You can compile the gcc44 package in MacPorts on 10.6 if you use my proposed update in ticket 21341.
comment:5 Changed 15 years ago by tenomoto (Takeshi Enomoto)
Thank you for your comments. I was thinking that I might have to encourage Andy Vault to use newer gcc. But XCode comes with gcc4.0 and gcc4.2 so Apple gcc should be able to build. Among maintainers of scitech packages we agree to use gcc43 to the default. If gcc42 and gcc43 will be deprecated in MacPorts, we have to change the agreement and move forward to use gcc44 as default.
comment:7 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Indicated brokenness in r73842.
Cc Me!