Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95742 - emerging gcc-3.4.4 fails with `emake failed with profiledbootstrap` msg
Summary: emerging gcc-3.4.4 fails with `emake failed with profiledbootstrap` msg
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 100367 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-10 21:52 UTC by Christopher Eineke
Modified: 2005-10-01 04:38 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Eineke 2005-06-10 21:52:20 UTC
Emerging gcc-3.4.4 fails with a `emake failed with profiledbootstrap` message.
Here is the output shortly before that:

------------------>8------------------
./xgcc -B./ -B/usr/x86_64-pc-linux-gnu/bin/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
-L/var/tmp/portage/gcc-3.4.4/work/build/gcc/../ld -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -D_LIBC_PROVIDES_SSP_ -shared -nodefaultlibs
-Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/32/libgcc.map -o
32/libgcc_s.so.1.tmp  -m32  libgcc/32/_muldi3.o libgcc/32/_negdi2.o
libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o libgcc/32/_ashrdi3.o
libgcc/32/_cmpdi2.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o
libgcc/32/_floatdisf.o libgcc/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o
libgcc/32/_fixunsdfdi.o libgcc/32/_fixdfdi.o libgcc/32/_fixunssfdi.o
libgcc/32/_fixsfdi.o libgcc/32/_fixxfdi.o libgcc/32/_fixunsxfdi.o
libgcc/32/_floatdixf.o libgcc/32/_fixunsxfsi.o libgcc/32/_fixtfdi.o
libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/32/_clear_cache.o
libgcc/32/_enable_execute_stack.o libgcc/32/_trampoline.o libgcc/32/__main.o
libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o
libgcc/32/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o
libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o
libgcc/32/_negvdi2.o libgcc/32/_ctors.o libgcc/32/_ffssi2.o libgcc/32/_ffsdi2.o
libgcc/32/_clz.o libgcc/32/_clzsi2.o libgcc/32/_clzdi2.o libgcc/32/_ctzsi2.o
libgcc/32/_ctzdi2.o libgcc/32/_popcount_tab.o libgcc/32/_popcountsi2.o
libgcc/32/_popcountdi2.o libgcc/32/_paritysi2.o libgcc/32/_paritydi2.o
libgcc/32/_stack_smash_handler.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o
libgcc/32/_udivdi3.o libgcc/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o
libgcc/32/_udivmoddi4.o  libgcc/32/unwind-dw2.o libgcc/32/unwind-dw2-fde-glibc.o
libgcc/32/unwind-sjlj.o libgcc/32/gthr-gnat.o libgcc/32/unwind-c.o -lc && rm -f
libgcc_s_32.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1
32/libgcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp
32/libgcc_s.so.1 && ln -s 32/libgcc_s.so.1 libgcc_s_32.so
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when
searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when
searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc'
make: *** [profiledbootstrap] Error 2
------------------>8------------------

Reproducible: Always
Steps to Reproduce:
1. emerge gcc-3.4.4
2.
3.

Actual Results:  
Compilation failed with message(s) mentioned above.

Expected Results:  
Finished properly compiling gcc-3.4.4.

Portage 2.0.51.22-r1 (default-linux/amd64/2004.3, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r9 x86_64 Mobile AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.12
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca ftp://gentoo.agsn.ca
http://gentoo.mirrored.ca http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="amd64 3dnowex X a52 aac acpi alsa audiofile avi bash-completion
bitmap-fonts bzip2 caps cdparanoia cdr clearcase crypt cups curl dpms dts dvd
dvdr dvdread encode esd fam flac gd gif gphoto2 gpm gtk gtk2 guile hal ieee1394
imagemagick imlib2 java jp2 jpeg jpeg2k junit kdeenablefinal ldap lm_sensors
logitech-mouse lzw lzw-tiff mad mikmod mng motif mozilla mozsvg mp3 mpeg
multilib ncurses network nomotif nptl nptlonly objc ogg oggvorbis opengl oss pam
pcmcia perforce perl php pic png povray python qt readline rtc ruby samba sdl
sndfile sql ssl subversion svg tcpd tga theora threads tiff truetype
truetype-fonts type1-fonts usb userlocales vorbis wifi wmf wxgtk1 xine xinerama
xml2 xmms xpm xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Christopher Eineke 2005-06-18 16:34:50 UTC
Any ideas at all on what could cause this?
Comment 2 Sean Sullivan 2005-06-19 10:02:27 UTC
Same behavior here.

bitwise sean # emerge info
Portage 2.0.51.21-r1 (default-linux/amd64/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.10
dev-lang/python:     2.3.5, 2.4.1
sys-apps/sandbox:    1.2.5-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 audiofile avi berkdb bitmap-fonts cdparanoia
cdr crypt cups curl dbm dvd dvdread encode esd fam flac font-server foomaticdb
fortran gd gif gpm gtkhtml guile imagemagick imlib ipv6 java jp2 jpeg junit
libclamav libwww lzw lzw-tiff mailwrapper motif mozilla mp3 mpeg multilib mysql
mysqli ncurses nls nvidia ogg oggvorbis opengl oss pam perl php png python qt
readline samba sdl ssl tcpd tiff truetype truetype-fonts type1-fonts usb
userlocales vorbis xine xml xml2 xmms xpm xrandr xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 Christopher Eineke 2005-06-19 15:53:26 UTC
Hey Sean,

did you -- by any chance -- try to upgrade to the 2005.0 profile and fail?
Comment 4 Sean Sullivan 2005-06-19 15:58:53 UTC
That was my original intention. First step in the upgrade manual is to rebuild
GCC with multilib support but no joy. I then did an 'emerge -u system' in hopes
that it might resolve it, but even that failed at GCC with the same error :)

-Sean
Comment 5 Sean Sullivan 2005-06-19 16:03:59 UTC
Damn, I just realized my error is slightly different... Sorry, i saw your `emake
failed with profiledbootstrap` and assumed it would be the same. Check this out:


Adding multilib support to Makefile in
/var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/libstdc++-v3
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/libstdc++-v3
Running configure in multilib subdir 32
pwd: /var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc...
/var/tmp/portage/gcc-3.4.4/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.4.4/work/build/gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem
/usr/x86_64-pc-linux-gnu/sys-include  -m32
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build'
make: *** [profiledbootstrap] Error 2
Comment 6 Pierre Nicoli 2005-07-12 02:05:01 UTC
(In reply to comment #5)
I have the same error here...
----
checking for x86_64-pc-linux-gnu-gcc...
/var/tmp/portage/gcc-3.4.4/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.4.4/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/
-B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include
-isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled
programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build'
make: *** [profiledbootstrap] Erreur 2

!!! ERROR: sys-devel/gcc-3.4.4 failed.
!!! Function gcc_do_make, Line 1211, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.
---
webslinger distfiles # emerge info
Portage 2.0.51.22-r1 (default-linux/amd64/2004.3, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -frename-registers"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -frename-registers"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib aavm acpi alsa avi beepmp berkdb bidi bitmap-fonts
bmp cdda cddb cdio cdparanoia cdr cdrom codecs crypt css cups curl dts dv dvd
dvdr dvdread edl eds faad fam fame ffmpeg flac font-server fortran ggi gif gnome
gpm gstreamer gtk gtk2 imlib ipv6 java jp2 jpeg junit libcaca live lzo lzw
lzw-tiff mad matroska mjpeg motif mozilla mp3 mp4live mpeg mpeg2 mpeg4 mplayer
msn multilib ncurses network nls nptl ogg opengl oss pam perl png python qt
quicktime readline real samba sdl speex ssl stream tcpd tiff transcode truetype
truetype-fonts type1-fonts usb userlocales v4l2 vcd videos vorbis wxgtk1
wxwindows xine xml xml2 xpm xprint xrandr xv xvid zlib linguas_fr linguas_fr_FR
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY

Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-07-26 09:52:04 UTC
*** Bug 100367 has been marked as a duplicate of this bug. ***
Comment 8 benjamin milde 2005-07-26 16:55:39 UTC
(In reply to comment #0)
I had both problems with gcc, the configure error "cannot run C
compiled programs" and the linking error with ld (complaining about -lm not
found) . But i now managed to compile gcc 3.4.4. 
My workaround is:
You need the 2005.0 profile, you can't compile gcc 3.4.4 with 2004.3 on amd64.
Follow the steps on
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=1, don't
use the script. Don't compile gcc at the beginnig and compile glibc-2.3.5-r1
with something like: MAKEOPTS="-j1" USE="nptl nptlonly" emerge glibc
The compilation of glibc solved the linking error for me. I compiled gcc in the
end also with MAKEOPTS="-j1"
If this work also for someone else, this bug can be regarded as solved.
Comment 9 Sean Sullivan 2005-07-26 18:41:02 UTC
(In reply to comment #8)  
  
Got it. I was actually trying to upgrade to 2005.0 in the first place, and 
doing it manually as opposed to the scripted upgrade. After reading your 
suggestion, I simply emerged glibc first with +multilib then emerged gcc 
(+multilib) successfully. 
 
So it looks like the docs need revising. glibc should be built first then gcc. 
Possibly the script as well? 
 
-Sean 
Comment 10 Sean Sullivan 2005-07-26 18:42:50 UTC
note: I did not use MAKEOPTS="-j1" USE="nptl nptlonly" in either case (i used 
-j2 as usual) 
Comment 11 J. Ryan Earl 2005-08-19 15:20:49 UTC
I had the same problem compiling gcc.  I followed the direction below to upgrade
to the 2005.0 profile and now have a wonderfully working multilib installion on
a 1.5 year-old AMD64 Gentoo server.  Yay!

(In reply to comment #8)
> (In reply to comment #0)
> I had both problems with gcc, the configure error "cannot run C
> compiled programs" and the linking error with ld (complaining about -lm not
> found) . But i now managed to compile gcc 3.4.4. 
> My workaround is:
> You need the 2005.0 profile, you can't compile gcc 3.4.4 with 2004.3 on amd64.
> Follow the steps on
> http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=1, don't
> use the script. Don't compile gcc at the beginnig and compile glibc-2.3.5-r1
> with something like: MAKEOPTS="-j1" USE="nptl nptlonly" emerge glibc
> The compilation of glibc solved the linking error for me. I compiled gcc in the
> end also with MAKEOPTS="-j1"
> If this work also for someone else, this bug can be regarded as solved.

Comment 12 Simon Stelling (RETIRED) gentoo-dev 2005-10-01 04:38:50 UTC
the problem was that there was no 32bit glibc. on 2004.3, this means you didn't
have emul-linux-x86-glibc.