Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265064 - sys-devel/gcc-4.3.2-r3 fails at libgfortran
Summary: sys-devel/gcc-4.3.2-r3 fails at libgfortran
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 265130 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-06 07:18 UTC by Mike Harvey
Modified: 2011-10-30 23:16 UTC (History)
3 users (show)

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


Attachments
gcc-4.3.3-r2 build log (sys-devel:gcc-4.3.3-r2:20090405-222437.log.bz2,195.20 KB, application/bzip2)
2009-04-07 05:43 UTC, Mike Harvey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Harvey 2009-04-06 07:18:27 UTC
This appears similar to bug #252238.  Trying to upgrade gcc from version 4.2.2 to latest version 4.3.3-r2.  Have tried to compile with LC_ALL="C" (as discussed in bug #252238), but it doesn't help.  I was able to compile gcc-4.2.4 successfully.  Here's the tail of the emerge log:

libtool: link: /usr/x86_64-pc-linux-gnu/bin/ranlib .libs/libgfortran.a
libtool: link: creating libgfortran.la
libtool: link: ( cd ".libs" && rm -f "libgfortran.la" && ln -s "../libgfortran.la" "libgfortran.la" )
make[6]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/32/libgfortran'
make[5]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/32/libgfortran'
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libgfortran'
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build'
make: *** [bootstrap-lean] Error 2
 * 
 * ERROR: sys-devel/gcc-4.3.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 4827:  Called toolchain_src_compile
 *             environment, line 5348:  Called gcc_src_compile
 *             environment, line 3109:  Called gcc_do_make
 *             environment, line 2900:  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 bootstrap-lean
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/sys-devel:gcc-4.3.3-r2:20090405-222437.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.3-r2/temp/environment'.
 * 

>>> Failed to emerge sys-devel/gcc-4.3.3-r2, Log file:

>>>  '/var/log/portage/sys-devel:gcc-4.3.3-r2:20090405-222437.log'

*********************************************************

Results of emerge --info

# emerge --info
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.2.2, glibc-2.7-r1, 2.6.28-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r2-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5
Timestamp of tree: Sun, 05 Apr 2009 22:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7, 2.1.7
dev-lang/python:     2.4.4, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.7-r2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
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.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 acl alsa amd64 asf berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr exif ffmpeg firefox flac fortran gdbm gfx gnome gpm hal iconv imagemagick ipod ipv6 isdnlog java jpeg jpeg2k kdeprefix midi mmx mozilla mp3 mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ofx ogg opengl openmp pam pcre perl pppd python quotes readline reflection samba session spl sse sse2 ssl sysfs tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wifi xine xorg xscreensaver zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" CAMERAS="canon sony" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" 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, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-06 18:56:50 UTC
*** Bug 265130 has been marked as a duplicate of this bug. ***
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-06 21:24:10 UTC
Please attach the build.log file of the failed emerge to this bug. As this file might be quite big for gcc, compress it with eiter bzip2 or lzma and add a note about the compression type.
Comment 3 Mike Harvey 2009-04-07 05:43:10 UTC
Created attachment 187528 [details]
gcc-4.3.3-r2 build log
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-07 14:13:02 UTC
Relevant part of build.log:
In file included from /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:48,
                 from /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/locale:46,
                 from /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:101: error: '::fpos_t' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:103: error: '::clearerr' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:104: error: '::fclose' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:105: error: '::feof' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:106: error: '::ferror' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:107: error: '::fflush' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:108: error: '::fgetc' has not been declared

toolchain: Looks like glibc-2.8 is needed in DEPEND for upgrades on amd64 from gcc-4.2.x as noted in bug 191088, comment 24.
Comment 5 Mike Harvey 2009-04-08 04:11:34 UTC
That did it - successfully emerged glibc-2.9_p20081201-r2 and then gcc-4.3.3-r2.  Thanks for the support.
Comment 6 Cristian 2009-04-13 19:26:36 UTC
(In reply to comment #5)
> That did it - successfully emerged glibc-2.9_p20081201-r2 and then
> gcc-4.3.3-r2.  Thanks for the support.
> 

Yes, it worked for me too. Thanks!