>>> 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"
if your gcc doesnt support "-fno-stack-protector", then you probably need to re-emerge it
Has this something to do with the hardened use flag?
changed the ebuild to run `test_flag -fno-stack-protector` first ... however, your toolchain looks broken, you should fix that :P
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
Can somebody please explain me, what the -fno-stack-protector Flag means? I removed it from the makefile, and now it compiles fine. Johnny
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.
That means, if I disable boundschecking, then everything compiles fine?
I had problem with wine. It worked for me :) Go ahead, try it.
I had problem with wine. It worked for me :) Go ahead, try it. Could xou please tell me, what you really mean?
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?
all our gcc's have stub funcs now, and newer versions support both htb and ssp at the same time