make[5]: Entering directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/gcc' # APPLE LOCAL use -mlongcall for large text support /opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/./gcc/xgcc -B/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/./gcc/ -B/opt/gentoo/usr/x86_64-apple-darwin10/bin/ -B/opt/gentoo/usr/x86_64-apple-darwin10/lib/ -isystem /opt/gentoo/usr/x86_64-apple-darwin10/include -isystem /opt/gentoo/usr/x86_64-apple-darwin10/sys-include -O2 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/. -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/../include -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/../libcpp/include -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/../libdecnumber -I../libdecnumber -mlongcall \ -fno-tree-dominator-opts \ \ -c /opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/config/darwin-crt3.c -o crt3.o <built-in>:0: internal compiler error: in define__GNUC__, at c-cppbuiltin.c:392 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[5]: *** [crt3.o] Error 1 make[5]: Leaving directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/gcc' make[4]: *** [extra] Error 2 make[4]: Leaving directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/gcc' make[3]: *** [stmp-multilib] Error 2 make[3]: Leaving directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build' make: *** [bootstrap] Error 2 * ERROR: sys-devel/gcc-apple-4.2.1_p5647 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called call-ebuildshell 'src_compile' * environment, line 833: Called src_compile * environment, line 5283: Called die * The specific snippet of code: * emake bootstrap || die "emake failed" *
$ emerge --info Portage 2.2.00.15754-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.2.0 x86_64) ================================================================= System uname: Darwin-10.2.0-x86_64-i386-64bit Timestamp of tree: Tue, 09 Mar 2010 12:06:39 +0000 distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.4 dev-python/pycrypto: 2.1.0 sys-devel/autoconf: 2.63-r01.1 sys-devel/automake: 1.10.2-r00.1, 1.11.1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.6b ACCEPT_KEYWORDS="x64-macos x86-macos ~amd64 ~x64-macos ~x86 ~x86-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-apple-darwin10" CFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe" CHOST="x86_64-apple-darwin10" CONFIG_PROTECT="/etc /opt/gentoo/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /opt/gentoo/etc/ca-certificates.conf /opt/gentoo/etc/env.d /opt/gentoo/etc/env.d/java/ /opt/gentoo/etc/fonts/fonts.conf /opt/gentoo/etc/gconf /opt/gentoo/etc/revdep-rebuild /opt/gentoo/etc/terminfo" CXXFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe" DISTDIR="/opt/gentoo/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages metadata-transfer news nostrip parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="" LINGUAS="en en_GB" PKGDIR="/opt/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/opt/gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/opt/gentoo/var/tmp" PORTDIR="/opt/gentoo/usr/portage" PORTDIR_OVERLAY="/opt/gentoo/usr/local/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="X aqua ares bash-completion berkdb bzip2 cairo chroot common-lisp coreaudio cracklib cxx expat faac faad fftw flac fontconfig fts3 gdbm gmp graphviz gs gtk hpn iconv icu idea ipv6 ithreads java jbig jpeg jpeg2k lcms lzma md5sum mmap mmx mmxext modules mp3 ncurses network nls objc objc++ ogg openmp pcre perl png prefix python rar readline sasl schroedinger slang sndfile speex spell sqlite sqlite3 sse sse2 ssl svg tcl test theora threads tiff tk trace truetype unicode urandom utils vdpau vim-syntax vorbis wmf x264 x64-macos xinerama xml xpm xvid zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 222837 [details] gcc-apple-4.2.1_p5647 build.log build.log attached...
Hmmm, and I was hoping that this only happened on my messed-up system. So this only works on powerpc or 10.4.
this may be like this: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19372 (because we mess with the version string now...)
I think I found the problem, Apple does some parsing of the version string to find their own build number which they then assign to __APPLE_CC__. I learnt something new.
I fixed this (and confirmed this time!)
Hmm - are you sure? I'm not hitting the same error, but the build still fails: { /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm -pg 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; echo %%; \ cat /opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/libgcc-std.ver \ | sed -e '/^[ ]*#/d' \ -e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' \ | /opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/./gcc/xgcc -B/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/./gcc/ -B/opt/gentoo/usr/x86_64-apple-darwin10/bin/ -B/opt/gentoo/usr/x86_64-apple-darwin10/lib/ -isystem /opt/gentoo/usr/x86_64-apple-darwin10/include -isystem /opt/gentoo/usr/x86_64-apple-darwin10/sys-include -mmacosx-version-min=10.4 -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 -I. -I. -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/. -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/../include -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/../libcpp/include -I/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/../libdecnumber -I../libdecnumber -E -xassembler-with-cpp -; \ } | gawk -f /opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/gcc-5646.1/gcc/mkmap-flat.awk -v leading_underscore=1 > libgcc/./tmp-libgcc.map /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list /opt/gentoo/usr/x86_64-apple-darwin10/bin/nm: no name list mv 'libgcc/./tmp-libgcc.map' libgcc/./libgcc.map /opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/./gcc/xgcc -B/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/./gcc/ -B/opt/gentoo/usr/x86_64-apple-darwin10/bin/ -B/opt/gentoo/usr/x86_64-apple-darwin10/lib/ -isystem /opt/gentoo/usr/x86_64-apple-darwin10/include -isystem /opt/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 /opt/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 collect2: ld terminated with signal 6 [Abort trap] pure virtual method called terminate called without an active exception make[4]: *** [libgcc_s.dylib] Error 1 make[4]: Leaving directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/gcc' make[3]: *** [stmp-multilib] Error 2 make[3]: Leaving directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/opt/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5647/work/build' make: *** [bootstrap] Error 2
Created attachment 224181 [details] gcc-apple-4.2.1_p5647 build.log New build.log
*** This bug has been marked as a duplicate of bug 309735 ***