compile error: flex -otreelang/lex.c /var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/treelang/lex.l /var/tmp/portage/sys-devel/gcc-4.3.1/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c -march=k8 -O2 -pipe -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wno-error -DHAVE_CONFIG_H -I. -Itreelang -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/treelang -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/../libdecnumber/bid -I../libdecnumber treelang/lex.c -o treelang/lex.o treelang/lex.c: In function 'yy_get_next_buffer': treelang/lex.c:1327: warning: comparison between signed and unsigned /var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/treelang/lex.l: At top level: treelang/lex.c:1433: warning: 'input' defined but not used /var/tmp/portage/sys-devel/gcc-4.3.1/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c -march=k8 -O2 -pipe -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wno-error -DHAVE_CONFIG_H -I. -Itreelang -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/treelang -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/gcc/../libdecnumber/bid -I../libdecnumber treelang/parse.c -o treelang/parse.o /var/tmp/portage/sys-devel/gcc-4.3.1/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -march=k8 -O2 -pipe -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -o tree1 \ treelang/tree1.o treelang/treetree.o treelang/tree-convert.o \ treelang/lex.o treelang/parse.o \ main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a attribs.o -lmpfr -lgmp collect2: ld returned 1 exit status make[3]: *** [tree1] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/gcc' make[2]: *** [all-stageprofile-gcc] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1/work/build' make[1]: *** [stageprofile-bubble] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1/work/build' make: *** [profiledbootstrap] Error 2 * * ERROR: sys-devel/gcc-4.3.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4594: Called toolchain_src_compile * environment, line 5063: Called gcc_src_compile * environment, line 2928: Called gcc_do_make * environment, line 2758: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * The die message: * emake failed with profiledbootstrap emerge --info Portage 2.1.5.4 (default-linux/amd64/2007.0, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.25-tuxonice-r4-rt x86_64) ================================================================= System uname: 2.6.25-tuxonice-r4-rt x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-62 Timestamp of tree: Tue, 10 Jun 2008 04:31:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -msse3 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=k8 -msse3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/zugaina" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext a52 aac acl acpi alsa amd64 arts berkdb cli cracklib crypt cups dbus dri dts dvd dvdr ffmpeg flac fortran gdbm gif gpm hal iconv ipv6 isdnlog jpeg kde midi mmx mmxext mp3 mpeg mplayer mudflap musepack musicbrainz ncurses nls nptl nptlonly ntfs nvidia ogg opengl openmp pam parallel pcre perl png ppds pppd python qt3 readline reflection session spl sse sse2 ssl tcpd theora threads truetype tunepimp unicode vorbis x264 xfs xine xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" 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="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always Steps to Reproduce: 1.emerge -u gcc 2. 3. Actual Results: make fails at profiledbootstrap Expected Results: gcc compiles without error
I'm getting the same exact problem here. I'm trying to rebuild my 32-bit chroot but gcc keeps failing at 'profiledbootstrap'. May it's related to 32-chroot?
does this still fail with gcc-4.3.2 ? if so, please post the full build log as an attachment ...
I tried compiling gcc 4.3.2 and had the same issue. Then I tried compiling it without mounting a 850M tmpfs on /var/tmp/portage and it worked, thus I must have just been running out of space. Sorry for the confusion.