Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348893 - sys-devel/gcc-3.2.3-r4 build fails in c-parse.c generation from c-parse.y
Summary: sys-devel/gcc-3.2.3-r4 build fails in c-parse.c generation from c-parse.y
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 20:59 UTC by Kevin O'Gorman
Modified: 2014-10-17 19:09 UTC (History)
0 users

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


Attachments
build log (build.log,71.88 KB, text/plain)
2010-12-16 21:00 UTC, Kevin O'Gorman
Details
environment (environment,134.91 KB, text/plain)
2010-12-16 21:00 UTC, Kevin O'Gorman
Details
build log of 3.2.3-r4 by gcc:3.4 (build.log,72.41 KB, text/plain)
2010-12-18 19:58 UTC, Kevin O'Gorman
Details
environment of gcc:3.4 making the attempt (environment,134.90 KB, text/plain)
2010-12-18 19:59 UTC, Kevin O'Gorman
Details
proposed patch (gcc-3.2.3-bison-2.4.patch,1.16 KB, patch)
2011-07-06 16:41 UTC, Stephan Hartmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin O'Gorman 2010-12-16 20:59:08 UTC
Compilation fails.  Note: the same gcc-4.4.4-r2 has just build the 3.4 stable slot, and all of the 4.x stable slots with no trouble.

Reproducible: Always

Steps to Reproduce:
1.emerge -a sys-devel-gcc:3.2
2.
3.




treat portage # emerge -pqv =sys-devel/gcc-3.2.3-r4 
[ebuild  NS   ] sys-devel/gcc-3.2.3-r4 [3.4.6-r2, 4.1.2, 4.3.4, 4.4.4-r2] USE="java nls -bootstrap -build -static" 

treat portage # emerge --info =sys-devel/gcc-3.2.3-r4 
Portage 2.1.9.24 (default/linux/x86/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r1-kosmanor i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-kosmanor-i686-Intel-R-_XEON-TM-_CPU_1.80GHz-with-gentoo-1.12.14
Timestamp of tree: Thu, 16 Dec 2010 08:45:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA @EULA @BINARY-REDISTRIBUTABLE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CPPFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse -msse2 -mmmx"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.llarian.net/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1"
LINGUAS="en en_US fr de es pl"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_BZIP2_COMMAND="/bin/bzip2"
PORTAGE_COMPRESS="/bin/bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
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/overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi aim alsa apache2 apm bash-completion bcmath berkdb branding bzip2 cairo calendar caps cdr cli consolekit cracklib crypt cscope ctype cups cxx dbm dbus dri dts dvd dvdr emboss encode exif fam fastcgi flac foomaticdb fortran gdbm gif git gphoto2 gpm gtk guile hal iconv icq imap imlib ipv6 java jbig joystick jpeg kde lcms ldap libnotify libwww mad mailwrapper mbox mcal mikmod mime mmap mmx mng modules motif mp3 mp4 mpeg mudflap mysql ncurses nis nls nptl nptlonly nsplugin odbc offensive ogg openal opengl openmp oscar pam pango pcre pdf perl pic plotutils png posix postgres ppds pppd python qt3support qt4 readline ruby samba sdl session snmp sockets spell sse ssl startup-notification subversion svg svga symlink sysfs sysvipc tcpd tetex tiff tk truetype unicode usb vorbis x264 x86 xcb xml xorg xpm xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US fr de es pl" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="mach64 vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

treat portage #
Comment 1 Kevin O'Gorman 2010-12-16 21:00:08 UTC
Created attachment 257374 [details]
build log
Comment 2 Kevin O'Gorman 2010-12-16 21:00:47 UTC
Created attachment 257376 [details]
environment
Comment 3 Mike Gilbert gentoo-dev 2010-12-16 21:36:33 UTC
Are you able to build gcc-3.2.3-r4 with older versions of gcc? It is unlikely that gcc maintains total backward compatibility.
Comment 4 SpanKY gentoo-dev 2010-12-17 21:48:42 UTC
more likely the problem is the version of bison
Comment 5 Kevin O'Gorman 2010-12-18 19:56:23 UTC
(In reply to comment #3)
> Are you able to build gcc-3.2.3-r4 with older versions of gcc? It is unlikely
> that gcc maintains total backward compatibility.
> 

Apparently not.

I switched to gcc-3.4.6 (which I had compiled with 4.4.4), and had it compile itself (with success).  Then I had it try compiling gcc:3.2, with the result
that it failed in the middle of c-parse.yy, which is consistent with a problem
with the version of bison.  Not sure what to do now.  It has become moot for me anyway, since my original motive was to get a compiler that would build the current stable qemu.  I gave up on that and built qemu-0.10 manually with gcc:4.4 with good results, and am awaiting the development of an ebuild to make
it "official".  In for a penny, I may just jump to the current upstream qemu-0.13 and stay there if it works.  

In any event, details follow.

treat kevin # emerge -pqv =sys-devel/gcc-3.2.3-r4
[ebuild  NS   ] sys-devel/gcc-3.2.3-r4 [3.4.6-r2, 4.1.2, 4.3.4, 4.4.4-r2] USE="java nls -bootstrap -build -static" 
treat kevin # emerge --info =sys-devel/gcc-3.2.3-r4
Portage 2.1.9.24 (default/linux/x86/10.0/desktop/kde, gcc-3.4.6, glibc-2.11.2-r3, 2.6.34-gentoo-r1-kosmanor i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-kosmanor-i686-Intel-R-_XEON-TM-_CPU_1.80GHz-with-gentoo-1.12.14
Timestamp of tree: Sat, 18 Dec 2010 08:15:02 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA @EULA @BINARY-REDISTRIBUTABLE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CPPFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse -msse2 -mmmx"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.llarian.net/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1"
LINGUAS="en en_US fr de es pl"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_BZIP2_COMMAND="/bin/bzip2"
PORTAGE_COMPRESS="/bin/bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
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/overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi aim alsa apache2 apm bash-completion bcmath berkdb branding bzip2 cairo calendar caps cdr cli consolekit cracklib crypt cscope ctype cups cxx dbm dbus dri dts dvd dvdr emboss encode exif fam fastcgi flac foomaticdb fortran gdbm gif git gphoto2 gpm gtk guile hal iconv icq imap imlib ipv6 java jbig joystick jpeg kde lcms ldap libnotify libwww mad mailwrapper mbox mcal mikmod mime mmap mmx mng modules motif mp3 mp4 mpeg mudflap mysql ncurses nis nls nptl nptlonly nsplugin odbc offensive ogg openal opengl openmp oscar pam pango pcre pdf perl pic plotutils png posix postgres ppds pppd python qt3support qt4 readline ruby samba sdl session snmp sockets spell sse ssl startup-notification subversion svg svga symlink sysfs sysvipc tcpd tetex tiff tk truetype unicode usb vorbis x264 x86 xcb xml xorg xpm xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US fr de es pl" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="mach64 vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS


Comment 6 Kevin O'Gorman 2010-12-18 19:58:44 UTC
Created attachment 257513 [details]
build log of 3.2.3-r4 by gcc:3.4
Comment 7 Kevin O'Gorman 2010-12-18 19:59:24 UTC
Created attachment 257514 [details]
environment of gcc:3.4 making the attempt
Comment 8 Stephan Hartmann (RETIRED) gentoo-dev 2011-07-06 16:41:38 UTC
Created attachment 279249 [details, diff]
proposed patch

This patch should fix it for >=bison-2.4. At least gcc-3.2.3-r4 compiled successfully for me using gcc-3.4.6-r2.
Comment 9 SpanKY gentoo-dev 2011-08-22 03:47:14 UTC
Comment on attachment 279249 [details, diff]
proposed patch

i'd like to have a record of where this is coming from.  a patch from upstream svn would be best ...
Comment 10 Stephan Hartmann (RETIRED) gentoo-dev 2011-08-22 18:31:33 UTC
(In reply to comment #9)
> Comment on attachment 279249 [details, diff]
> proposed patch
> 
> i'd like to have a record of where this is coming from.  a patch from upstream
> svn would be best ...

Here is a reference to the bison mailing-list, which describes the problem:
http://lists.gnu.org/archive/html/help-bison/2009-03/msg00014.html
Comment 11 SpanKY gentoo-dev 2011-08-29 05:28:18 UTC
that's not really what i meant.  what i wanted is basically this:
http://gcc.gnu.org/viewcvs/branches/gcc-3_4-branch/gcc/c-parse.in?r1=89061&r2=153828
Comment 12 SpanKY gentoo-dev 2011-12-06 03:35:28 UTC
ive queued the patch for 3.4.6 and 3.3.6.  the 3.2.x ebuilds need redoing for the toolchain eclass before it can use a patchset.