When using i686-pc-linux-gnu-4.1.1 (sys-devel/gcc-4.1.1), net-misc/mknbi won't compile. I'm using profile default-linux/x86/2006.1. Output of emerge: # emerge net-misc/mknbi Calculating dependencies... done! >>> Emerging (1 of 1) net-misc/mknbi-1.4.3 to / * mknbi-1.4.3.tar.gz MD5 ;-) ... [ ok ] * mknbi-1.4.3.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking mknbi-1.4.3.tar.gz ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking mknbi-1.4.3.tar.gz to /var/tmp/portage/mknbi-1.4.3/work * Applying mknbi-1.4.3-nossp.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/mknbi-1.4.3/work/mknbi-1.4.3 ... perl -ne 's|\@\@VERSION\@\@|1.4.3|; s|\@\@LIBDIR\@\@|/usr/lib/mknbi|; s|\@\@FDKSEG\@\@|0x60|; print $_;' mknbi.pl > mknbi cp -p disnbi.pl disnbi chmod 755 disnbi chmod 755 mknbi cp -p dismbr.pl dismbr cp -p disdosbb.pl disdosbb chmod 755 dismbr chmod 755 disdosbb cp -p nbitoelf.pl nbitoelf gcc -I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer -mcpu=i386 -fno-stack-protector -fno-stack-protector-all -fno-pie -Wall -W -Wno-format -Wno-unused -DVERSION=\"1.4.3\" -o first32.o -c first32.c chmod 755 nbitoelf gcc -I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer -mcpu=i386 -fno-stack-protector -fno-stack-protector-all -fno-pie -Wall -W -Wno-format -Wno-unused -DVERSION=\"1.4.3\" -c memsizes.c `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. cc1: error: unrecognized command line option "-fno-stack-protector-all" `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. make: *** [first32.o] Error 1 make: *** Waiting for unfinished jobs.... cc1: error: unrecognized command line option "-fno-stack-protector-all" make: *** [memsizes.o] Error 1 !!! ERROR: net-misc/mknbi-1.4.3 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile mknbi-1.4.3.ebuild, line 37: Called die !!! Compile failed !!! If you need support, post the topmost build error, and the call stack if relevant. Output of emerge --info: # emerge --info Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz Gentoo Base System version 1.12.4 Last Sync: Wed, 13 Sep 2006 19:30:05 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 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-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 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" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch" GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/" LINGUAS="nl en_US" MAKEOPTS="-j2" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac acl alsa amuled arts berkdb bitmap-fonts bzip2 cli crypt css cups curl dri dts dv dvb dvd dvdread elibc_glibc encode esd fbcon ffmpeg flac font-server fortran gdbm gif gpm gstreamer i8x0 imlib input_devices_keyboard input_devices_mouse isdnlog ithreads java jpeg kde kdeenablefinal kdehiddenvisibility kerberos kernel_linux libg++ linguas_en_US linguas_nl live lm_sensors logitech-mouse lzo mad matroska matrox mikmod mmx mp3 mp4 mpeg msn ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime rdesktop readline reflection remote samba scanner sdl session sndfile spell spl sse sse2 ssl svga tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU utf8 v4l v4l2 video_cards_mga vorbis win32codecs x264 xanim xinerama xml xmms xorg xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
The same here, gcc-4.1.1, mknbi-1.4.4 (~x86) or mknbi-1.4.3 cc1: error: unrecognized command line option "-fno-stack-protector-all"
Updated mknbi ebuild with GCC4 fix submitted: http://bugs.gentoo.org/show_bug.cgi?id=154267
*** Bug 154267 has been marked as a duplicate of this bug. ***
Created attachment 101364 [details] Updated ebuild for mknbi 1.4.4 Resubmitting from duplicate on request, all apologies. Updated ebuild, fixes gcc4 compile errors. 1) replace -mcpu with -march (fix build -mcpu is depreciated warning) 2) only apply nossp-patch if gcc-version = 3.4 (not required if in >=gcc4) 3) apply gcc4-fixes patch to solve static declaration errors, resolves" cc1: error: unrecognized command line option "-fno-stack-protector-all" The current 1.4.4 is marked ~x86, given that 1.4.3 & 1.4.4 are both broken on current gentoo profiles including the gcc4 compiler, this should probably be marked x86 stable asap.
Created attachment 101365 [details, diff] GCC4 Fixes patch for updated ebuild as supplied Trival fixes for some errant declerations
Thanks, fixed in CVS.