Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146218 - sys-devel/gcc-4.1.1-r1 won't build on amd64
Summary: sys-devel/gcc-4.1.1-r1 won't build on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-03 23:36 UTC by Waldo
Modified: 2006-09-06 00:16 UTC (History)
1 user (show)

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


Attachments
emerge --info (emege.info,2.64 KB, text/plain)
2006-09-04 00:47 UTC, Ahmed Ammar (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Waldo 2006-09-03 23:36:32 UTC
Sorry if this is a dup (I searched, really..) but gcc 4.1.1-r1 just took a dump:

make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include'
config.status: executing default commands
make[3]: Entering directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include'
 cd /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/libstdc++-v3 && /bin/sh /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/missing --run automake-1.9 --foreign  --ignore-deps include/Makefile
automake-1.9: no Automake input file found for `include/Makefile'
automake-1.9: no input file found among supplied arguments
make[3]: *** [/var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/libstdc++-v3/include/Makefile.in] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include'
/bin/sh /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/mkinstalldirs x86_64-pc-linux-gnu/libiberty ; \
rm -f x86_64-pc-linux-gnu/libiberty/Makefile || : ; \
cp multilib.out x86_64-pc-linux-gnu/libiberty/multilib.out
/bin/sh: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/mkinstalldirs: No such file or directory
cp: cannot create regular file `x86_64-pc-linux-gnu/libiberty/multilib.out': No such file or directory
make[2]: *** [x86_64-pc-linux-gnu/libiberty/multilib.out] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.1-r1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 936:   Called src_compile
  ebuild.sh, line 1252:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1528:   Called gcc_do_make
  toolchain.eclass, line 1402:   Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.


4.1.1 worked fine.

W
Comment 1 Waldo 2006-09-03 23:37:27 UTC
FWIW:

#  emerge --info
Portage 2.1.1_rc1-r3 (default-linux/amd64/2006.1/desktop, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.4
Last Sync: Mon, 04 Sep 2006 04:30:09 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer -frerun-loop-opt -ftracer -fprefetch-loop-arrays -fforce-addr -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer -frerun-loop-opt -ftracer -fprefetch-loop-arrays -fforce-addr -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://mirror.espri.arizona.edu/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi aim alsa amd64 asf avahi avi berkdb bitmap-fonts browserplugin bzip2 cairo canvas cddb cdparanoia cdr cli cups curl daap dbus divx4linux dlloader dri dts dv dvd dvdr dvdread eds elibc_glibc emboss encode faad fam ffmpeg firefox flac foomatic fortran freetype gcj gdbm gif gimpprint glitz glut glx gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl-compat imagemagick imlib input_devices_evdev ipv6 isdnlog java jpeg kernel_linux lame lcms ldap libg++ libgda libsndfile libwww live mad matroska mdnsresponder-compat mikmod mjpeg mng mozilla mozsvg mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia offensive ofx ogg oggvorbis openal opengl oscar oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt4 quicktime quotes readline reflection rtc rtsp scanner sdl session spell spl ssl tagwriting tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_nvidia vorbis wxwindows xcomposite xine xinerama xml xml2 xorg xprint xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Ahmed Ammar (RETIRED) gentoo-dev 2006-09-04 00:16:44 UTC
I'm compiling gcc-4.1.1-r1 right now, but have you tried with saner c{xx}flags. I've checked the ebuild and it doesn't seem to filter flags so please try again?
Comment 3 Waldo 2006-09-04 00:22:21 UTC
trying glib-2.12.3 right now, but assuming it wokrs I'll give gcc another try with less "interesting" cflags... anything in particular you think I should chuck?  Also-- like I said gcc 4.1.1 (not -r1) worked no problem...

W
Comment 4 Ahmed Ammar (RETIRED) gentoo-dev 2006-09-04 00:47:51 UTC
Created attachment 95926 [details]
emerge --info

ok just to confirm, gcc-4.1.1-r1 compiled cleanly here
Comment 5 Waldo 2006-09-04 18:49:10 UTC
Hmm, I tried again, using your CFLAGS on the command line.  It still crashed, although it seemed to take longer.  Now that i think about it, does gcc compile 2x?  Maybe the second time it reverted to the make.conf values... damn.  No one else on the forum seems to have this error.  Guess i'll try the "safe" cflags in /etc/make.conf and rebuild again...
Comment 6 Waldo 2006-09-06 00:16:59 UTC
Well, I can confirm that the problem was the CFLAGS.  Using 

CFLAGS="-O2 -march=k8 -pipe"

in /etc/make.conf  fixed the problem.  Don't know why 4.1.1 worked and 4.1.1-r1 didn't, but there you have it.

Closing.