Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147389 - upgrading to sys-devel/gcc-4.1.1 fails with error: stray '\226' in program
Summary: upgrading to sys-devel/gcc-4.1.1 fails with error: stray '\226' in program
Status: RESOLVED DUPLICATE of bug 146210
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Highest critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 15:18 UTC by carlos
Modified: 2006-09-13 12:33 UTC (History)
1 user (show)

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 carlos 2006-09-12 15:18:00 UTC
Hi

Am I doing something wrong?

When upgrading from to gcc 4.1.1 from gcc 3.4.6, I get the following error and stack trace:

<error log>
/portage/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libstdc++-v3/src/codecvt.cc  -fPIC -DPIC -o .libs/codecvt.o
In file included from /portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/memory:61,
                 from /portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/string:48,
                 from /portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
                 from /portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/locale:46,
                 from /portage/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/libstdc++-v3/src/codecvt.cc:30:
/portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/limits:990: error: stray '\226' in program
/portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/limits:1047: error: stray '\374' in program
/portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/limits:1104: error: stray '\226' in program
make[5]: *** [codecvt.lo] Error 1
make[5]: Leaving directory `/portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/portage/var/tmp/portage/gcc-4.1.1/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-target-libstdc++-v3] Error 2
make[2]: Leaving directory `/portage/var/tmp/portage/gcc-4.1.1/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/portage/var/tmp/portage/gcc-4.1.1/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1529:   Called gcc_do_make
  toolchain.eclass, line 1403:   Called die

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

My gcc --version is:
<gcc version>
gcc (GCC) 3.4.6 (Gentoo Hardened 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
</gcc version>

I'm upgrading to:
<emerge -puv gcc>
Calculating dependencies   ... done!
[ebuild  NS   ] sys-devel/gcc-4.1.1  USE="gtk nls (-altivec) -bootstrap -build -doc -fortran -gcj (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB 
Total size of downloads: 0 kB
</emerge -puv gcc>

My emerge --info:
<emerge --info>
Gentoo Base System version 1.12.4
Portage 2.1.1 (default-linux/x86/no-nptl, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Last Sync: Mon, 11 Sep 2006 22:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
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.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /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/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/home/gentoo/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.heanet.ie/pub/gentoo/ ftp://mirror.ovh.net/gentoo-distfiles/"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/home/gentoo/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="/portage/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X acpi aim alsa apache2 arts avi berkdb bitmap-fonts bzlib cdparanoia cli crypt dbus dga div4linux dlloader dri eds elibc_glibc encode fbcon gdbm gif gnome gpm gstreamer gtk gtk2 hal howl imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jikes jpeg kde kernel_linux libg++ libwww mad maildir mikmod mime mono motif mozilla mp3 mpeg msn mysqli ncurses nls offensive ogg opengl oscar oss pam pcmcia pcre pdflib perl php pic png pnp pppd print python qt qt3 qt4 quicktime readline reflection sdl session sndfile spell spl ssl svg tcpd truetype truetype-fonts type1-fonts unicode usb userland_GNU v4l vhosts video_cards_radeon videos vorbis win32codecs xine xml xmms xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
</emerge --info>
Comment 1 Mike Nerone 2006-09-12 21:28:54 UTC
I have five Gentoo boxes and all upgraded to gcc-4.1.1 fine except the last one, which threw exactly the same error. Two things I can think of that make this box different from the others:

1. This is the only P4, so the only one with --march=pentium4 in CFLAGS.
2. This is the only box that on which I tried to compile gcc-4.1.1 using portage-2.1.1 and gcc-3.4.6 (on the other boxes, portage-2.1-r2 was the latest stable at the time I tried the initial upgrade to gcc-4.1.1). Yes, yes, I know I should have done it the same on all of the boxes - why I had to treat the last one differently is a long story.

# emerge --info
Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-hardened-r11 i686)
=================================================================
System uname: 2.6.16-hardened-r11 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.12.4
Last Sync: Mon, 11 Sep 2006 21:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0
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.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg collision-protect confcache distlocks fixpackages parallel-fetch sandbox sfperms strict userfetch userpriv userpriv_fakeroot usersandbox verify-rdepend"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo"
LINGUAS="en en_US"
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 /usr/local/overlays/nerone"
SYNC="rsync://rsync.nerone.org/gentoo-portage"
USE="x86 acl apache2 apm bash-completion bzip2 cli crypt dlloader dri eds elibc_glibc emboss encode fam flash ftp gd gif gstreamer hardened headless imap innodb input_devices_keyboard input_devices_mouse isdnlog ithreads javascript jpeg kernel_linux libwww linguas_en linguas_en_US mcal memlimit mmap mmx mmx2 mp3 mysql ncurses nls nntp nptl nptlonly ogg pam pcre pdflib perl pic pie png pppd python qt3 qt4 readline reflection sasl session spell spl sqlite sse ssl threads tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU vhosts video_cards_i810 vorbis xml xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-13 00:13:55 UTC

*** This bug has been marked as a duplicate of 146210 ***
Comment 3 carlos 2006-09-13 12:33:42 UTC
(In reply to comment #2)
> 
> *** This bug has been marked as a duplicate of 146210 ***
> 

Thank you.  146210 has a solution to this problem.