Summary: | sys-devel/gcc-4.3.2 fails to compile with unrecognized command line option "-Wno-overlength-strings" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Klaffenbach <danielklaffenbach> |
Component: | [OLD] Development | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | major | CC: | admin, alquaknaa, danielklaffenbach, dusanc, quickhelp, vladimir |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log from gcc 4.3.2
gcc-4.3.3 build log /tmp/emerge.info |
Description
Daniel Klaffenbach
2008-10-12 14:29:07 UTC
I've just tried sys-devel/gcc-4.3.1-r1 and I am getting the same error about "-Wno-overlength-strings". What's up with this? I am on a _fresh_ install of 2008.0 with a i686 stage3. Today I've tried sys-devel/gcc-4.2.4 and guess what: cc1: error: unrecognized command line option "-Wno-overlength-strings" make[2]: *** [cc1-checksum.o] Error 1 make[2]: Leaving directory Remerging gcc-4.1.2 works, but compiling any version > 4.1.* does not work. Created attachment 168380 [details]
Build log from gcc 4.3.2
Created attachment 172881 [details]
gcc-4.3.3 build log
I'm getting same errors with gcc 4.2.3:
make[2]: Entering directory `/tmp/portage/sys-devel/gcc-4.2.3/work/build/gcc'
gcc -march=i686 -mtune=i686 -pipe -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -o cc1plus-dummy \
cp/cp-lang.o stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o tree-mudflap.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o c-pretty-print.o c-opts.o c-pch.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-gimplify.o c-omp.o tree-inline.o dummy-checksum.o main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
build/genchecksum cc1plus-dummy > cc1plus-checksum.c
gcc -c -march=i686 -mtune=i686 -pipe -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3/gcc -I/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3/gcc/. -I/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3/gcc/../include -I/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3/gcc/../libcpp/include -I/tmp/portage/sys-devel/gcc-4.2.3/work/gcc-4.2.3/gcc/../libdecnumber -I../libdecnumber cc1plus-checksum.c -o cc1plus-checksum.o
cc1: error: unrecognized command line option "-Wno-overlength-strings"
make[2]: *** [cc1plus-checksum.o] Error 1
make[2]: Leaving directory `/tmp/portage/sys-devel/gcc-4.2.3/work/build/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory `/tmp/portage/sys-devel/gcc-4.2.3/work/build'
make: *** [install] Error 2
looks like it occurs only when doing a profile build ... the logic is a bit messy when it comes to "target" and "host" in the profile building guess this is just another reason to drop the profile stuff ... can someone here with the build failure try doing: GCC_MAKE_TARGET=bootstrap-lean emerge gcc and see if that works around the issue ... the issue should "go away" now http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.370&r2=1.371 Created attachment 178008 [details]
/tmp/emerge.info
Unfortunately I STILL have the same problem! :-(\nAttached you will find one file with: emerge --info and afterwards the output of the install step. The source was successfully compiled but the install fails with the same error message. I have the /actual/ version of toolchain.eclass (without the elif). The 4.6GB compiled gcc code are still available if someone has an idea how I can get them installed. Thnx a lot for any help/hint in advance! \ntormen.
same here /var/tmp/portage/sys-devel/gcc-4.3.2-r2/image//usr/libexec/gcc/i686-pc-linux-gnu/4.3.2/install-tools/fixincl /usr/bin/install -c mkheaders /var/tmp/portage/sys-devel/gcc-4.3.2-r2/image//usr/libexec/gcc/i686-pc-linux-gnu/4.3.2/install-tools/mkheaders make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/build/fixincludes' make[2]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/build/gcc' i686-pc-linux-gnu-gcc -c -march=pentium4 -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-r2/work/gcc-4.3.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/gcc-4.3.2/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/gcc-4.3.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/gcc-4.3.2/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/gcc-4.3.2/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/gcc-4.3.2/gcc/../libdecnumber/bid -I../libdecnumber /var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/gcc-4.3.2/gcc/c-lang.c -o c-lang.o cc1: error: unrecognized command line option "-Wno-overlength-strings" make[2]: *** [c-lang.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/build/gcc' make[1]: *** [install-gcc] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r2/work/build' make: *** [install] Error 2 * * ERROR: sys-devel/gcc-4.3.2-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_install * environment, line 4642: Called toolchain_src_install * environment, line 5158: Called gcc-compiler_src_install * environment, line 2397: Called die * The specific snippet of code: * S=${WORKDIR}/build make DESTDIR="${D}" install || die; * The die message: * (no error message) Me too, and it occurs with both gcc-4.2.4 and gcc-4.3.3. I get the same error on 4.3.2 which is stable now: 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" 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 What is a resolution to this bug as it is marked FIXED? Apparently the 'fix' is the update to the eclass/toolchain.eclass file, which actually did not fix this issue for some people. I found this mailing list thread of someone with a similar problem, http://gcc.gnu.org/ml/gcc-help/2009-03/msg00250.html So what I tried was "ebuild /usr/portage/sys-devel/gcc/gcc-4.3.2-r3 compile", and then changed into the "/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build" directory, from where I run manually the "make install" command (copied from the emerge output and edited for debugging): make -s DESTDIR=/var/tmp/portage/sys-devel/gcc-4.3.2-r3/image/ install -d > make.log 2>&1 Since this is the "make install" stage, there shouldn't be any recompilation necessary, but in my log file, it shows that "Must remake target `cc1-checksum.o'", which caused the compile error mentioned in the opening. The interesting bit is that inside the work/build/gcc dir there is a "cc1-checksum.c" file, but no .o nor executable was created for it (but cc1plus-checksum.o does exist). So there must be a bug in the makefiles for my particular configuration which does not requires to create this file which is only caught at the make install stage...? I still have this problem too (compiling gcc-4.3.3-r2 with gcc-4.1.2 - I wasn't able to update gcc since that version): x86_64-pc-linux-gnu-gcc -c -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.3-r2/work/gcc-4.3.3/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber/bid -I../libdecnumber cc1-checksum.c -o cc1-checksum.o cc1: error: unrecognized command line option "-Wno-overlength-strings" my emerge --info Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.10.1-r0, 2.6.30-rc7-zen0-08384-gce1adbc x86_64) ================================================================= System uname: Linux-2.6.30-rc7-zen0-08384-gce1adbc-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-glibc2.2.5 Timestamp of tree: Sat, 30 May 2009 08:00:16 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r2 sys-apps/sandbox: 1.9 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" 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/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://gentoo.mirror.web4u.cz/" LANG="cs_CZ.UTF-8" LC_ALL="cs_CZ.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="cs" 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" PORTDIR_OVERLAY="/usr/portage/local/layman/kde-testing /usr/portage/local/layman/x11 /usr/portage/local/layman/mpd /usr/portage/local/layman/enlightenment /usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/local/portage /usr/portage/local/layman/portage-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X a52 aac ace acl acpi additions alsa amarok amd64 apache2 archive aspnet2 bash-completion berkdb bittorrent bluetooth bzip2 cdaudio cdda cddb cdio cdparanoia cdr chroot cli compress cpudetection cracklib crypt css cups cupsddk curl curlwrappers dbus device-mapper dirac divx djvu dri dv dvb dvd dvdr dvdread dxr2 encode fastcgi fat ffmpeg firefox3 flac flash flv fortran gdbm gif gimp glsa glut gnutls gpg gpm h323 hal havekernel hdaps hddtemp httpd iconv icq id3 id3tag idn ieee1394 imagemagick inotify iproute2 ipsec ipv6 ipw3945 ipython irc isdnlog jabber jack javascript john jpeg jpeg2k json justify kde kdeprefix kipi kvm ladspa lame laptop libass libnotify lm_sensors lzma lzo mad metalink midi mikmod mmx mng mp3 mp3rtp mp4 mp4live mpd mpeg mpeg2 mplayer mudflap multilib multislot multitarget musepack musicbrainz mysql mysqli nano-syntax ncurses netpbm nfs nls normalize nptl nptlonly nsplugin ntfs ntp openexr opengl openmp openssh openssl openstreetmap openvpn oscar otr pam parted pascal pcmcia pcre pdf perl php plasma plugins png pnm posix pppd prediction pulseaudio python qt3support qt4 rar raster readline reflection reiser4 reiserfs rss rtf rtsp samba screen sdl server session sftp sha1 sha512 smapi smp spf spl sqlite3 srt sse sse2 sse3 ssh ssl ssse3 stats status sub subtitles subversion suexec suhosin svg svgz sysfs tcpd tftp theora threads timidity truetype tse3 tunepimp twolame unicode unzip usb vboxwebsrv vistafree visualization vorbis vst wav wavpack web webinterface webkit webmail wifi wxwindows x264 xcb xfs xhtml xine xiph xorg xosd xrandr xrender xscreensaver xulrunner xv xvid xvmc zip 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 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" 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="cs" USERLAND="GNU" VIDEO_CARDS="intel i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS try building without fortran, then switch to the new compiler and build w/ fortran. Still the same result. reopening. I hope it's not that something else is broken about my system, but I've found this: http://www.nabble.com/cc1:-error:-unrecognized-command-line-option-%22-Wno-overlength-strings%22-td22614852.html and it doesn't look like those guys have come to anything final so that's why I'm reporting it. Hope it helps and thank you. No new information since 2009. I'm guessing this worked itself out with other system updates over time. |