When I follow the gentoo OSX prefix bootstrap guide to bootstrap a 64 bit prefix, emerge fails to emerge gcc-apple-4.2.1_p5647 (emerge --oneshot --nodeps gcc-apple). output: /Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/./gcc/xgcc -B/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/./gcc/ -B/Gentoo/usr/x86_64-apple-darwin10/bin/ -B/Gentoo/usr/x86_64-apple-darwin10/lib/ -isystem /Gentoo/usr/x86_64-apple-darwin10/include -isystem /Gentoo/usr/x86_64-apple-darwin10/sys-include -O2 -O2 -O2 -pipe -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 -install_name /Gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.2.1/libgcc_s`if test . = ppc64 ; then echo _. ; fi`.1.dylib -single_module -o ./libgcc_s.1.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/./_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/./_bswapsi2_s.o libgcc/./_bswapdi2_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixsfti_s.o libgcc/./_fixunssfdi_s.o libgcc/./_fixunssfti_s.o libgcc/./_floatdisf_s.o libgcc/./_floattisf_s.o libgcc/./_floatundisf_s.o libgcc/./_floatuntisf_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixdfti_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_fixunsdfti_s.o libgcc/./_floatdidf_s.o libgcc/./_floattidf_s.o libgcc/./_floatundidf_s.o libgcc/./_floatuntidf_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixxfti_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_fixunsxfti_s.o libgcc/./_floatdixf_s.o libgcc/./_floattixf_s.o libgcc/./_floatundixf_s.o libgcc/./_floatuntixf_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixtfti_s.o libgcc/./_fixunstfdi_s.o libgcc/./_fixunstfti_s.o libgcc/./_floatditf_s.o libgcc/./_floattitf_s.o libgcc/./_floatunditf_s.o libgcc/./_floatuntitf_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/./darwin-64_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 ld: symbol dyld_stub_binding_helper not defined (usually in crt1.o/dylib1.o/bundle1.o) collect2: ld returned 1 exit status Reproducible: Always Steps to Reproduce: 1. Bootstrap Gentoo 64bit OSX prefix 2. Follow the guide untill emerge --oneshot --nodeps gcc-apple 3. I have a dylib1.o file with the symbol: $ nm -arch x86_64 /usr/lib/dylib1.o | grep dyld_stub_binding_helper 0000000000000000 T dyld_stub_binding_helper using OSX 10.6.3, Xcode 3.2.2 and CHOST="x86_64-apple-darwin10"
please emerge --oneshot --nodeps binutils-apple and try gcc-apple again
(In reply to comment #1) > please emerge --oneshot --nodeps binutils-apple and try gcc-apple again > seems like that solved the problem, gcc-apple is compiling. Probably the doc at http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml should be updated. Thanks.
(In reply to comment #1) > please emerge --oneshot --nodeps binutils-apple and try gcc-apple again Worked for me as well. +1 thanks. (In reply to comment #2) > ... Probably the doc at http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml should be updated. +1, if it wasn't for this bug report, someone could get stuck out there..
I made a remark about this in the bootstrap document. I hope that is enough.