Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 225585
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 191088
Assigned To: Gentoo Toolchain Maintainers <toolchain@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jack Lloyd <lloyd@randombit.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 225585 depends on: Show dependency tree
Bug 225585 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-06-09 14:21 0000
Build of sys-devel/gcc-4.3.1 fails (full text included in 'Actual results'
textbox). Fails on two up to date Gentoo machines (Opteron 2212 and Core2
Q6600).

Reproducible: Always

Steps to Reproduce:
emerge =sys-devel/gcc-4.3.1
Actual Results:  
In file included from
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:48,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string:47,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/locale:46,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:101:
error: '::fpos_t' has not been declared

[more lines deleted here due to 16K comment limit]

/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:116:
error: '::freopen' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:117:
error: '::fscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:118:
error: '::fseek' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:119:
error: '::fsetpos' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:120:
error: '::ftell' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:121:
error: '::fwrite' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:122:
error: '::getc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:123:
error: '::getchar' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:124:
error: '::gets' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:125:
error: '::perror' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:126:
error: '::printf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:127:
error: '::putc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:128:
error: '::putchar' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:129:
error: '::puts' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:130:
error: '::remove' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:131:
error: '::rename' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:132:
error: '::rewind' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:133:
error: '::scanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:134:
error: '::setbuf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:135:
error: '::setvbuf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:136:
error: '::sprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:137:
error: '::sscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:138:
error: '::tmpfile' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:139:
error: '::tmpnam' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:140:
error: '::ungetc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:141:
error: '::vfprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:142:
error: '::vprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:143:
error: '::vsprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:170:
error: '::snprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:171:
error: '::vfscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:172:
error: '::vscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:173:
error: '::vsnprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:174:
error: '::vsscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:181:
error: '__gnu_cxx::snprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:182:
error: '__gnu_cxx::vfscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:183:
error: '__gnu_cxx::vscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:184:
error: '__gnu_cxx::vsnprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:185:
error: '__gnu_cxx::vsscanf' has not been declared
In file included from
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string:47,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/locale:46,
                 from
/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:
In static member function 'static typename
__gnu_cxx::_Char_types<_CharT>::int_type
__gnu_cxx::char_traits<_CharT>::eof()':
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:141:
error: 'EOF' was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:
In static member function 'static int std::char_traits<char>::eof()':
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:295:
error: 'EOF' was not declared in this scope
make[4]: *** [codecvt.lo] Error 1
make[4]: Leaving directory
`/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] 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 4593:  Called toolchain_src_compile
 *             environment, line 5062:  Called gcc_src_compile
 *             environment, line 2927:  Called gcc_do_make
 *             environment, line 2757:  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
 * 


Expected Results:  
A shiny new compiler with an improved optimizer for me to play with. :)

I believe that this is a Gentoo-specific issue. I encountered similar problems
with GCC 4.3 snapshots (not through portage), as I described on the
gentoo-amd64 mailing list. Archived:
http://www.nabble.com/Building-vanilla-gcc-fails%2C-any-ideas--to15313402.html#a15313402

(chihiro ~)$ emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.2.4, glibc-2.6.1-r0,
2.6.18-028stab045-1-openvz x86_64)
=================================================================
System uname: 2.6.18-028stab045-1-openvz x86_64 Dual-Core AMD Opteron(tm)
Processor 2212
Timestamp of tree: Mon, 09 Jun 2008 07:06:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.4_p6, 1.9.6-r2, 1.10.1
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"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=opteron -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-O2 -march=opteron -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/
http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.easynews.com/linux/gentoo/
http://open-systems.ufl.edu/mirrors/gentoo"
LINGUAS="en"
MAKEOPTS="-j5"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 aspell bash-completion berkdb bzip2 cli cracklib crypt
cups dri emacs erlang fastcgi gdbm gif gpm graphviz hpn iconv ipv6 isdnlog
javascript jpeg mbox memcache midi mmx modperl mudflap ncurses nls nptl
nptlonly openmp pam pcre perl php png postgres pppd python readline reflection
session spl sse sse2 ssl suexec tcpd unicode vhosts xorg zlib"
APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_default
authn_file authz_groupfile authz_host authz_owner authz_user autoindex cache
deflate dir env expires ext_filter file_cache filter headers imagemap include
info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so
status suexec unique_id userdir usertrack vhost_alias fastcgi mod_perl"
APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LINGUAS="en" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY

(motoko ~)$ emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.4, glibc-2.6.1-r0,
2.6.22.1 x86_64)
=================================================================
System uname: 2.6.22.1 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Timestamp of tree: Mon, 09 Jun 2008 07:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
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.1
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"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -momit-leaf-frame-pointer"
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 /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -momit-leaf-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://adelie.polymtl.ca/
http://gentoo.mirrors.tds.net/gentoo
http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
http://gentoo.chem.wisc.edu/gentoo/"
LINGUAS="en"
MAKEOPTS="-j4"
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/toolchain /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 arts bash-completion berkdb branding
cairo cdr cli cracklib crypt cups dbus doc dri dvd dvdr dvdread emacs emboss
encode esd evo fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk hal
iconv ipv6 isdnlog jpeg kerberos ldap mad mbox midi mikmod mmx mp3 mpeg mudflap
ncurses nls nptl nptlonly offensive ogg opengl openmp oss pam pcre pdf perl png
postgres pppd python qt3support qt4 quicktime readline reflection sdl session
spell spl sqlite sse sse2 ssl svg tcpd tetex threads tiff truetype unicode
vorbis xml 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 auth_digest
authn_anon authn_default authn_file authz_groupfile authz_host authz_owner
authz_user autoindex cache deflate dir env expires ext_filter file_cache filter
headers imagemap include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif so status suexec unique_id userdir usertrack
vhost_alias fastcgi" APACHE2_MPMS="worker" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en"
USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Nikos Chantziaras 2008-06-09 17:56:20 0000 -------
See bug 225545 and bug 225585.

You should upgrade to sys-libs/glibc-2.7-r2 before emerging GCC 4.3.x.

------- Comment #2 From Dan A. Dickey 2008-06-09 18:06:02 0000 -------
Well, I'm at 2.7-r2, and gcc-4.3.1 will not compile ok.

------- Comment #3 From adriancz@go2.pl 2008-06-09 18:29:30 0000 -------
Same problem here. I have gcc 4.2.4 and glibc-2.7-r2.

------- Comment #4 From SpanKY 2008-06-09 18:38:19 0000 -------

*** This bug has been marked as a duplicate of bug 191088 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug