Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 4.3.2 emerge fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tel
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2006
Posts: 112

PostPosted: Sun Apr 05, 2009 6:10 pm    Post subject: gcc 4.3.2 emerge fails Reply with quote

Updating my gcc today, and the emerge fails with:

cc1: error: unrecognized command line option "-Wno-overlength-strings"

My make.conf CFLAGS are pretty routine:
-O2 -march=pentium4 -pipe -fomit-frame-pointer

Any thoughts on how to correct this?

Thanks.
Back to top
View user's profile Send private message
tel
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2006
Posts: 112

PostPosted: Sun Apr 05, 2009 8:23 pm    Post subject: Reply with quote

For what it's worth, here's the final information from my build.log:

i686-pc-linux-gnu-gcc -O2 -march=pentium4 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -Wl,-O1 -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpfr -lgmp
i686-pc-linux-gnu-gcc -O2 -march=pentium4 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-O1 -o build/genchecksum \
build/genchecksum.o .././libiberty/libiberty.a
build/genchecksum cc1-dummy > cc1-checksum.c
i686-pc-linux-gnu-gcc -c -O2 -march=pentium4 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libdecnumber/bid -I../libdecnumber cc1-checksum.c -o cc1-checksum.o
cc1: error: unrecognized command line option "-Wno-overlength-strings"
make[2]: *** [cc1-checksum.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build'
make: *** [install] Error 2

ERROR: sys-devel/gcc-4.3.2-r3 failed.
Call stack:
ebuild.sh, line 49: Called src_install
environment, line 4761: Called toolchain_src_install
environment, line 5282: Called gcc-compiler_src_install
environment, line 2433: Called die
The specific snippet of code:
S=${WORKDIR}/build emake -j1 DESTDIR="${D}" install || die;
The die message:
(no error message)

If you need support, post the topmost build error, and the call stack if relevant.
A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment'.

And here's emerge --info:

Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.29-rc5-zen1 i686)
=================================================================
System uname: Linux-2.6.29-rc5-zen1-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.0
Timestamp of tree: Sun, 05 Apr 2009 19:30:17 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python: 2.5.2-r7
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa berkdb bzip2 cdr cli cracklib crypt cups dri dvd fortran gdbm gpm iconv isdnlog java jpeg kde midi mp3 mp4 mudflap ncurses nls nptl nptlonly nsplugin openmp pam pcre pdf perl png pppd python qt3 qt3support readline reflection session spl ssl sysfs tcpd tiff unicode win32codecs x86 xcb xinerama xorg xrandr 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 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


And my make.conf:

CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"

MAKEOPTS="-j2"

USE="-gnome -ipv6 qt3support kde dvd alsa cdr aac cups X pdf png tiff jpeg java nsplugin mp3 mp4 win32codecs xinerama xrandr xcb qt3"

FEATURES="ccache"
CCACHE_SIZE="2G"
CCACHE_DIR="/var/tmp/ccache"

INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="radeon"
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sun Apr 05, 2009 8:53 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Portage & Programming.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Lion
Apprentice
Apprentice


Joined: 23 Jun 2002
Posts: 207

PostPosted: Mon Apr 06, 2009 8:36 pm    Post subject: Re: gcc 4.3.2 emerge fails Reply with quote

tel wrote:
Updating my gcc today, and the emerge fails with:

cc1: error: unrecognized command line option "-Wno-overlength-strings"

My make.conf CFLAGS are pretty routine:
-O2 -march=pentium4 -pipe -fomit-frame-pointer

Any thoughts on how to correct this?

Thanks.


Same problem here.
I tried to emerge gcc-4.2.4-r1 too, same problem.
Back to top
View user's profile Send private message
sixcooler
n00b
n00b


Joined: 05 Jul 2006
Posts: 8

PostPosted: Mon Apr 06, 2009 11:11 pm    Post subject: Reply with quote

I also got this Problem:
Code:
cc1: error: unrecognized command line option "-Wno-overlength-strings"

I tried several things to solve - nothing helped.
(emerge -e gcc, hardware checks, etc.)

Finaly I switched my root-filesystem from reiser4 to ext4 and got a gcc-4.3.2-r3 build!
I never got any error-messages according to this, just tried as 'last chance'.

Are you (with this problem) also using reiser4?

regards, sixcooler.
Back to top
View user's profile Send private message
Lion
Apprentice
Apprentice


Joined: 23 Jun 2002
Posts: 207

PostPosted: Tue Apr 07, 2009 7:52 am    Post subject: Reply with quote

sixcooler wrote:
I also got this Problem:
Code:
cc1: error: unrecognized command line option "-Wno-overlength-strings"

I tried several things to solve - nothing helped.
(emerge -e gcc, hardware checks, etc.)

Finaly I switched my root-filesystem from reiser4 to ext4 and got a gcc-4.3.2-r3 build!
I never got any error-messages according to this, just tried as 'last chance'.

Are you (with this problem) also using reiser4?

regards, sixcooler.


Yes, I also have Reiser4 as my root partition.
I think it may be a likely candidate for causing this problem.
I could not imagine why, with such a large population making the switch, I would be one of the very few to see this problem.
I had expected hordes of people falling over it, and posting in the forums.
If it is Reiser4 related, I can see how only a select few are affected.

I solved it 'the hard way': ebuild gcc-4.3.2-r3 unpack, edit out all -Wno-overlength-strings, ebuild gcc-4.3.2-r3 merge.
After that, everything went fine.

Maybe the time has come to ditch Reiser4. It's a pity, I always liked it.
On the other hand, my problems have been solved for now, and switching root filesystems is more work than I'd like at the moment.
Maybe we should alert Edward Shishkin (Reiser4 maintainer) to this problem.

Best regards, Henk de Leeuw.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Tue Apr 07, 2009 7:56 am    Post subject: Reply with quote

Lion wrote:
I could not imagine why, with such a large population making the switch, I would be one of the very few to see this problem.
I had expected hordes of people falling over it, and posting in the forums.
If it is Reiser4 related, I can see how only a select few are affected.
BTW if it is really related to the file system you'll trust it any longer ?
Back to top
View user's profile Send private message
Lion
Apprentice
Apprentice


Joined: 23 Jun 2002
Posts: 207

PostPosted: Tue Apr 07, 2009 8:10 am    Post subject: Reply with quote

toralf wrote:
BTW if it is really related to the file system you'll trust it any longer ?

I see your point, but: yes.

I have seen problems like this in the past, I think with building PHP on Reiser4, and they were resolved.
It was not filesystem instability, but the sometimes slightly different semantics of the Reiser4 filesystem that caused it.
I have been using Reiser4 for a long time now, and never seen any data loss through it.
On the contrary: I have been able to rescue data from a system where I accidently deleted half of my files that I'm not so sure I could have done with (then) ext2, or even ext3.
Furthermore, it is fast and highly efficient when you're dealing with lots of small files, as when building things from Portage.
So yes, I think I'll stick with Reiser4 for the moment.

Henk de Leeuw.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Tue Apr 07, 2009 9:15 am    Post subject: Reply with quote

Ok, was only a question b/c few years ago I tried Reiser3, which speeded up "emerge sync" even at a slow DELL ("slow" compared to current technology), but Reiser3 didn't handled well kernel crashes - they occured often in the past at my system when I played with different kernels...
Back to top
View user's profile Send private message
Lion
Apprentice
Apprentice


Joined: 23 Jun 2002
Posts: 207

PostPosted: Tue Apr 07, 2009 9:42 am    Post subject: Reply with quote

Yup, that's my experience too.
Reiser3 was nice, but the fact that it only journaled metadata and not file data, combined with tail-stuffing, made that in case of a crash, 'interesting' things would happen. I've seen 'nice' examples of that on my system
That is why I prefer the atomicity of Reiser4: in case of a crash, data will have been completely written, or not at all.

Henk, AKA Lion
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Tue Apr 07, 2009 11:40 am    Post subject: Reply with quote

I have the same problem.

Code:
build/genchecksum cc1-dummy > cc1-checksum.c
x86_64-pc-linux-gnu-gcc -c   -march=nocona -O2 -pipe -DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros       
            -Wno-overlength-strings    -DHAVE_CONFIG_H -I. -I.
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/.
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../include
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libcpp/include
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libdecnumber
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libdecnumber/bid
-I../libdecnumber    cc1-checksum.c -o cc1-checksum.o
cc1: error: unrecognized command line option "-Wno-overlength-strings"


Portage tmp is on R4, I'll try to change it and see what happens.
_________________
Reiser4 Gentoo FAQ [25Dec2016]
Back to top
View user's profile Send private message
tel
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2006
Posts: 112

PostPosted: Tue Apr 07, 2009 6:51 pm    Post subject: Reply with quote

You guys may have hit the problem. I have R4 on my root partition, as well. Think this is a reason to switch?
Back to top
View user's profile Send private message
tel
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2006
Posts: 112

PostPosted: Tue Apr 07, 2009 7:07 pm    Post subject: Reply with quote

Another thought -- if I install a new system from scratch, still formated with R4, do you think I'll get the same compile error?

If gcc 4.3.2 is the current stable version, then it should already be available on the new install. Right?
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Wed Apr 08, 2009 5:09 am    Post subject: Reply with quote

It was R4 for me too. When I used ext2 (don't ask) partition for portage tmpdir emerging GCC worked.
Now only GCC failed when emerge -e world on R4, so it's not so bad :)
Yeah, if your install media comes with 4.3.2 you should be OK.
_________________
Reiser4 Gentoo FAQ [25Dec2016]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum