Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76515 - sys-apps/memtest86-3.2 cc1: error: unrecognized command line option "-fno-stack-protector"
Summary: sys-apps/memtest86-3.2 cc1: error: unrecognized command line option "-fno-sta...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-03 06:15 UTC by Hans-Christian Armingeon
Modified: 2005-05-26 13:21 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 Hans-Christian Armingeon 2005-01-03 06:15:11 UTC
>>> md5 src_uri ;-) memtest86-3.2.tar.gz
>>> Unpacking source...
>>> Unpacking memtest86-3.2.tar.gz to /var/tmp/portage/memtest86-3.2/work
 * Applying memtest86-3.2-test-pic.patch ...                              [ ok ]
>>> Source unpacked.
gcc -E -m32 -traditional head.S -o head.s
gcc -c -m32 -fPIC -Wall -O -fno-strict-aliasing reloc.c
gcc -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fPIC main.c
cc1: error: unrecognized command line option "-fno-stack-protector"
make: *** [main.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/memtest86-3.2 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Portage 2.0.51-r8 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 i686)
=================================================================
System uname: 2.6.10-gentoo-r1 i686 mobile AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 26 2004, 17:27:32)]
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.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.3, 1.8.5-r2, 1.5, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-m32 -O3 -mtune=athlon-4 -fomit-frame-pointer -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /opt/glftpd/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /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/bind /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-m32 -O3 -mtune=athlon-4 -fomit-frame-pointer -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.uni-muenster.de/pub/linux/distributions/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X X509 Xaw3d a52 aac aalib accessibility accounting acl acpi activefilter adns afs aimalsa apache2 apm arts artswrappersuid artworkextra asterisk async atm audiofile authdaemond avi bash-completion bcmathberkdb bidi bitmap-fonts blender-game bluetooth bmp bonobo bootsplash boundchecking boundschecking brltty bzip2 bzlib c++ calendar camaelon caps cddb cdparanoia cdr cgi chasen chroot clearpasswd codecs cpdflib crypt cscope ctype cups curl curlwrappers dbase dbm dbx dedicated devfs26 devmap dga dhcp dio directfb divx4linux djbfft dlloader dmx drac dts dv dvd dvdr dvdread edl eds emacs encode esd ethereal evo exif f77 faac faad fam fame fastcgi fax fb fbcon fbdev fftw filepro flac flash flatfile flexresp flood fltk fluidsynth font-server foomaticdb fortran fpx frascend freetype frlargefiles frxp ftp gb gcj gd gd-external gdbm ggi gif gimpprint glitz glut gmp gnokii gnome gnomedb gnutls gphoto2 gpm gps graphviz gsm gsnd gstreamer gtk gtk2 gtkhtml guile hal howl hub iconv icq icu idea idled ieee1394 imagemagic imagemagick imap imlib imlib2 immqt immqt-bc inetd inifile innodb insecure-drivers intl ipalias ipv6 irda isdn jabber jack jack-tmpfsjava javascript jbig jce jikes jit jks jms joystick jpeg jpeg2k junit jython kde kerberos koffice-plugin krb4 ladcca large-domain latex lcd lcms ldap leim lesstif libcaca libclamav libgda libsamplerate libwww live lm_sensors lua lynxkeymap lzo lzw-tiff mad maildir maildrop mailwrapper matroska mbox mbrola mcal mcve md5sum mecab memlimit mhash mikmod mimeming mjpeg mmap mmx mmx2 mng modelock motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mppe-mppc msn multicall multilib multislot multitarget mysql mysql41 mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses netcdf nethack network neural nis nls nntp nptl nptlonly oav objc odbc offensive oggvorbis opengl oscar oss pampcap pcmcia pcntl pcre pcsc-lite pda pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php pic plotutils png pnp portaudio posix postgres povray ppds prelude pri procmail pvm python qemu-fast qt quicktime quotas radius readline real resperl rhino rrdtool rtc ruby samba sample sasl scanner sdk sdl sendfile serial session sftplogging shaper shared sharedmem silc simplexml skey slang slp smartcard smime sndfile snmp snortsam soap sockets socks5 softmmu softquota soundtouch sox spamassassin speex spell spl sqlite sse ssl stats stencil-buffer subject-rewrite svg svga sysvipc szip tcltk tcpd tetex tga theora threads tidy tiff timidity tokenizer transcode transparent-proxy truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vda vdesktop vhosts vim-with-x virus-scan vpopmail wddx wifi winbind wmf wxwindows xanimxfs xim xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xscreensaver xsl xv xvid xvmc yahoo yaz zaptel zlib"
Comment 1 SpanKY gentoo-dev 2005-01-03 12:02:37 UTC
if your gcc doesnt support "-fno-stack-protector", then you probably need to re-emerge it
Comment 2 Hans-Christian Armingeon 2005-01-03 12:11:47 UTC
Has this something to do with the hardened use flag?
Comment 3 SpanKY gentoo-dev 2005-01-10 17:49:01 UTC
changed the ebuild to run `test_flag -fno-stack-protector` first ... however, your toolchain looks broken, you should fix that :P
Comment 4 Hans-Christian Armingeon 2005-02-25 05:09:31 UTC
I reemerged gcc to fix the toolchain.
How to fix the toolchain?

I don't have any other problems with my gcc.

# gcc-config -l
[1] i686-pc-linux-gnu-3.3.4
[2] i686-pc-linux-gnu-3.4.3-20050110 *
[3] i686-pc-linux-gnu-3.4.3-hardened
[4] i686-pc-linux-gnu-3.4.3-hardenednopie
[5] i686-pc-linux-gnu-3.4.3-hardenednossp

Johnny
Comment 5 Hans-Christian Armingeon 2005-03-01 06:54:45 UTC
Can somebody please explain me, what the -fno-stack-protector Flag means?

I removed it from the makefile, and now it compiles fine.

Johnny
Comment 6 Marek Kwasceki 2005-05-04 11:18:26 UTC
I believe that the answer is in bug #86860

USE="boundschecking" - this will DISABLE the hardened PIE+SSP patches

and lack of SSP patch (if I understood chat on 86860 correctly) is the reason of this error.

it makes problems with wine, kde parts, X... etc.
Comment 7 Hans-Christian Armingeon 2005-05-04 11:46:37 UTC
That means, if I disable boundschecking, then everything compiles fine?
Comment 8 Marek Kwasceki 2005-05-05 09:05:47 UTC
I had problem with wine.

It worked for me :)

Go ahead, try it.
Comment 9 Hans-Christian Armingeon 2005-05-08 14:28:22 UTC
I had problem with wine.

It worked for me :)

Go ahead, try it.

Could xou please tell me, what you really mean?
Comment 10 Marek Kwasceki 2005-05-08 15:09:49 UTC
i mean it worked!

i remerged gcc without boundschecking. it abled emerge to apply some patch that is  crucial...

then try merging this sys-apps/memtest86-3.2 thing. it shouldn't complain anymore.

have u read bug #86860?
Comment 11 SpanKY gentoo-dev 2005-05-26 13:21:07 UTC
all our gcc's have stub funcs now, and newer versions support both htb and ssp
at the same time