Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145955 - GCC 4.1 fails to build dev-libs/dietlibc-0.28
Summary: GCC 4.1 fails to build dev-libs/dietlibc-0.28
Status: RESOLVED DUPLICATE of bug 140905
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-02 01:06 UTC by Rabbe Fogelholm
Modified: 2006-09-02 01:16 UTC (History)
0 users

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 Rabbe Fogelholm 2006-09-02 01:06:25 UTC
While upgrading from gcc 3.4.6 to 4.1.1, following the Upgrade Guide, when doing `emerge -e world', I came across this problem:

>>> Compiling source in /var/tmp/portage/dietlibc-0.28/work/dietlibc-0.28 ...
mkdir bin-i386
gcc -I. -isystem include -O3 -march=pentium4 -pipe -D__dietlibc__ -fno-stack-protector-all -fno-stack-protector -c i386/start
.S -o bin-i386/start.o
gcc -I. -isystem include -O3 -march=pentium4 -pipe -D__dietlibc__ -fno-stack-protector-all -fno-stack-protector -c dyn_start.
c -o bin-i386/dyn_start.o
cc1: error: unrecognized command line option "-fno-stack-protector-all"
cc1: error: unrecognized command line option "-fno-stack-protector-all"
make: *** [bin-i386/start.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [bin-i386/dyn_start.o] Error 1

!!! ERROR: dev-libs/dietlibc-0.28 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  dietlibc-0.28.ebuild, line 42:   Called die

My portage tree was synced yesterday (September 1). My `emerge --info', just after the big emerge came to a halt, was:

>>> 8 config file updates found, please run "cfg-update -u"
Gentoo Base System version 1.12.4
Portage 2.1-r2 (default-linux/x86/2005.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
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="-O3 -march=pentium4 -pipe"
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/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="-O3 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://ftp.du.se/pub/os/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.du.se/pub/os/gentoo ftp://trumpetti.atm.tut.fi/gentoo/ http://mirror.gentoo.no/ http://trumpetti.atm.tut.fi/gentoo/"
LINGUAS="sv en en_GB"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cli crypt cups curl dlloader dri dvd eds emacs emboss encode foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib isdnlog java jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl seamonkey session spell spl ssl tcpd truetype truetype-fonts type1-fonts vorbis win32codecs xml2 xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_sv linguas_en linguas_en_GB userland_GNU video_cards_radeon video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

As can be seen I had -O3. I tried rebuilding dietlibc-0.28 with -O2, but I still get the same failure.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-02 01:15:40 UTC

*** This bug has been marked as a duplicate of 140905 ***