Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109266 - gcc-3.4.x fails to emerge with "spec failure: unrecognized spec option"
Summary: gcc-3.4.x fails to emerge with "spec failure: unrecognized spec option"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 114919 121145 (view as bug list)
Depends on:
Blocks: 73368 78732
  Show dependency tree
 
Reported: 2005-10-14 05:46 UTC by basic
Modified: 2006-02-01 05:54 UTC (History)
5 users (show)

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


Attachments
./xgcc -dumpspecs output (dumpspecs.txt,4.47 KB, text/plain)
2005-12-06 04:00 UTC, basic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description basic 2005-10-14 05:46:28 UTC
gcc-3.4.x fails to emerge with "spec failure: unrecognized spec option". Result
of 'ACCEPT_KEYWORDS=~x86 emerge -pv gcc':

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  NS   ] sys-devel/gcc-3.4.4-r1  (-altivec) -bootstrap -boundschecking
-build +fortran +gcj +gtk +hardened -ip28 (-multilib) -multislot (-n32) (-n64)
+nls -nocxx -nopie -nossp +objc -static -vanilla 0 kB



Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS=~x86 emerge gcc
2.
3.

Actual Results:  
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../ld -fno-stack-protector-all
-O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I.
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/.
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include   -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
   -c /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
xgcc: spec failure: unrecognized spec option 'v'
xgcc: spec failure: unrecognized spec option 'v'
xgcc: spec failure: unrecognized spec option 'v'
xgcc: spec failure: unrecognized spec option 'p'
xgcc: spec failure: unrecognized spec option 'P'
make[2]: *** [crtbegin.o] Aborted
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2



Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6-vanilla,
glibc-2.3.5-r2, 2.6.12-suspend2-r6 i686)
=================================================================
System uname: 2.6.12-suspend2-r6 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-tbird -pipe -gdwarf-2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-tbird -pipe -gdwarf-2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS=" http://distro.ibiblio.org/pub/Linux/distributions/gentoo
http://public.planetmirror.com/pub/gentoo http://mymirror.asiaosc.org/gentoo/"
LANG="C"
LC_ALL="C"
LINGUAS="en en_GB en_US en_CA en_NZ en_AU en_SG"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d a52 aac aalib accessibility acl acpi adns alsa apache2
apm audiofile avi bash-completion berkdb bidi bitmap-fonts bmp bonobo bzlib
cairo calendar caps cddb cdparanoia cdr cjk crypt cscope cups curl dbus dga doc
dts dv eds emboss encode esd ethereal exif f77 faad fam fbcon fftw firebird flac
fmod foomaticdb fortran ftp gb gcj gd gdbm gif gimpprint gnome gnomedb gnutls
gphoto2 gpm gsnd gstreamer gtk gtk2 gtkhtml guile hal howl iconv ieee1394
imagemagick imlib immqt-bc ipv6 jack java javascript jikes joystick jpeg jpeg2k
junit kdeenablefinal kerberos lcms ldap libcaca libg++ libgda libwww lzo mad
mcal memlimit mikmod mmx mng mozilla mp3 mpeg mysql ncurses network nls nntp
nptl nvidia objc ogg oggvorbis opengl oss pam pcre pdflib perl php pic png
portaudio posix postgres povray ppds pthreads python qt quicktime readline rtc
ruby samba scanner sdk sdl shared slang slp speex spell sqlite ssl svg tcltk
tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode
usb vcd videos vorbis wmf wxwindow xanim xface xim xinerama xml xml2 xmms xosd
xpm xrandr xv xvid xvmc yahoo zlib linguas_en linguas_en_GB linguas_en_US
linguas_en_CA linguas_en_NZ linguas_en_AU linguas_en_SG userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Kevin F. Quinn (RETIRED) gentoo-dev 2005-11-26 09:40:16 UTC
Please cd to /var/tmp/portage/gcc-3.4.4-r1/work/build/gcc and do:

./xgcc -v
./xgcc -dumpspecs

Paste/attach the output to this bug.
Comment 2 basic 2005-12-06 03:58:42 UTC
./xgcc -v output

Using built-in specs.
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/hardenednopie.specs
Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.4
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --disable-libunwind-exceptions --disable-multilib
--disable-libmudflap --enable-java-awt=gtk --enable-objc-gc
--enable-languages=c,c++,java,objc,f77 --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc driver version 3.4.4 (Gentoo Hardened 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
executing gcc version 3.3.6
Comment 3 basic 2005-12-06 04:00:10 UTC
Created attachment 74140 [details]
./xgcc -dumpspecs output
Comment 4 solar (RETIRED) gentoo-dev 2005-12-06 04:40:54 UTC
You can't upgrade your gcc-3.3.x to gcc-3.4.x using anything other than your
primary specs or the build will fail. notice how your gcc -v shows it reading
3.3.x specs.

try something like this.
# gcc-config 1
# . /etc/profile
# unset GCC_SPECS
# emerge gcc
Comment 5 basic 2005-12-06 10:50:24 UTC
ok that works, should this be in the upgrade guide?
Comment 6 solar (RETIRED) gentoo-dev 2005-12-06 10:56:20 UTC
yeah probably. I'll see if I can get Halcy0n to get Jan to add it to a new 
multiarch gcc upgrade guide they have been working on.
Comment 7 Jan Kundrát (RETIRED) gentoo-dev 2005-12-08 11:35:25 UTC
Added, thanks. 
Comment 8 Robert Paskowitz (RETIRED) gentoo-dev 2005-12-08 15:15:12 UTC
*** Bug 114919 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2006-02-01 05:54:26 UTC
*** Bug 121145 has been marked as a duplicate of this bug. ***