Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225667 - gcc bootstrap fails (4.3.1) on amd64 with undeclared stdio vars -- ::fpos_t etc.
Summary: gcc bootstrap fails (4.3.1) on amd64 with undeclared stdio vars -- ::fpos_t etc.
Status: RESOLVED DUPLICATE of bug 191088
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-09 20:50 UTC by Craig Goodrich
Modified: 2008-06-09 23:52 UTC (History)
0 users

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 Craig Goodrich 2008-06-09 20:50:10 UTC
The problem is discussed as bug 30915 at
http://www.nabble.com/-Bug-bootstrap-30915---New%3A--4.3-regression--bootstrap-fails-while-building-libstdc%2B%2B-v3-on-x86_64-pc-linux-gnu-td9082543.html#a9110907

where the following patch is suggested:

--- ./gcc-4.3-20070309/libstdc++-v3/include/c_global/cstdio.orig      
2007-03-11 20:12:59.000000000 +0100
+++ ./gcc-4.3-20070309/libstdc++-v3/include/c_global/cstdio     2007-03-11
20:14:00.000000000 +0100
@@ -46,7 +46,7 @@

 #include <bits/c++config.h>
 #include <cstddef>
-#include_next <stdio.h>
+#include "/usr/include/gentoo-multilib/amd64/stdio.h"

 #ifndef _GLIBCXX_CSTDIO
 #define _GLIBCXX_CSTDIO 1

-- but the make process apparently builds the file dynamically, so I have no idea how to fix it.

Relevant section of the build log:

libtool: compile:  /var/tmp/portage/sys-devel/gcc-4.3.1/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -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 -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -pipe -march=athlon64 -O2 -D_GNU_SOURCE -c /var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/libstdc++-v3/src/codecvt.cc  -fPIC -DPIC -o .libs/codecvt.o
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
/var/tmp/portage/sys-devel/gcc-4.3.1/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.1/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.1/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.1/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.1/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.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:108: error: '::fgetc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:109: error: '::fgetpos' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:110: error: '::fgets' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:111: error: '::fopen' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:112: error: '::fprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:113: error: '::fputc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:114: error: '::fputs' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:115: error: '::fread' has not been declared
/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
Comment 1 Craig Goodrich 2008-06-09 21:00:37 UTC
emerge --info:

Portage 2.1.5.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.5 x86_64)
=================================================================
System uname: 2.6.25.5 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-60
Timestamp of tree: Mon, 09 Jun 2008 17:33:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r9, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 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="-O3 -pipe -march=athlon64"
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="-O3 -pipe -march=athlon64"
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=""
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg tcpd tiff truetype unicode vorbis xcomposite xml xorg xv 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="mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia% vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 SpanKY gentoo-dev 2008-06-09 23:52:27 UTC

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