LD86 version 0.16.10 or later is required i686-pc-linux-gnu-gcc -fno-pic -nopie -c -Os -Wall -g `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` -DLILO=0x7179bbbd `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DATARAID -DMDPRAID; fi ) | sed 's/-D/-DLCF_/g'` raid.c i686-pc-linux-gnu-gcc: nicht erkannte Option
LD86 version 0.16.10 or later is required i686-pc-linux-gnu-gcc -fno-pic -nopie -c -Os -Wall -g `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` -DLILO=0x7179bbbd `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DATARAID -DMDPRAID; fi ) | sed 's/-D/-DLCF_/g'` raid.c i686-pc-linux-gnu-gcc: nicht erkannte Option »-nopie« ld86 version 0.16.17 OKAY BCC version 0.16.10 or later is recommended i686-pc-linux-gnu-gcc -fno-pic -nopie -c -Os -Wall -g `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` -DLILO=0x7179bbbd `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DATARAID -DMDPRAID; fi ) | sed 's/-D/-DLCF_/g'` map.c bcc is not present You will not be able to make floppy2, diag2.img, or lilo.com make: *** [test.img] Fehler 1 make: *** Warte auf noch nicht beendete Prozesse... i686-pc-linux-gnu-gcc: nicht erkannte Option »-nopie« !!! ERROR: sys-boot/lilo-22.7.2 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile lilo-22.7.2.ebuild, line 74: Called die !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. magratea aaron # emerge info *** Deprecated use of action 'info', use '--info' instead Portage 2.1.1_pre2-r8 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9 i686) ================================================================= System Settings ================================================================= System uname: 2.6.16-gentoo-r9 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.12.1 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.3.4-r1, 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.18.1 sys-devel/autoconf: 2.13, 2.60 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.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/jetty/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/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict" GENTOO_MIRRORS="ftp://ftp.nyx.hu/gentoo http://gentoo.inode.at/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LINGUAS="de" 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.de.gentoo.org/gentoo-portage" USE="x86 16bit 3dnow 3dnowext X acpi alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib c++ cairo cdio cjk cli cpudetection crypt ctype cups curl dba dbus dlloader doc dri dvd dvdr eds emboss encode esd expat fam fbcon fbdev firefox flac font-server fontconfig foomaticdb fortran freetype gd gif gmp gpm gstreamer gtk gtk2 hal iconv idn imagemagick imap imlib ipv6 isdnlog java javascript jpeg junit kde kdehiddenvisibility ldap libg++ libwww logitech-mouse mad mhash mikmod mime mmx mmxext motif mozilla mp3 mpeg musicbrainz mysql ncurses nis nls no-seamonkey nptl nptlonly nsplugin nvidia ogg opengl oss pam pcre pdf pdflib pear perl php pic pie png ppds pppd python qt qt3 qt4 quicktime readline real reflection sasl sdl session speedo spell spl sqlite sse ssl stencil-buffer svga tcpd tidy tiff truetype truetype-fonts type1 type1-fonts udev unicode urandom usb userlocales vorbis win32codecs xine xml xml2 xorg xsl xslt xv zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_de userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Set your locales to C when reporting bugs, please.
The error messages are unreadable to me. Please include the output of emerge -puDv lilo in your report. When this information is provided, feel free to reopen the bug.
GCC version 2.91 or later is required i686-pc-linux-gnu-gcc: unrecognized option '-nopie' gcc version 4.1.1 OKAY AS86 version 0.16.10 or later is required as86 is not present LD86 version 0.16.10 or later is required ld86 is not present BCC version 0.16.10 or later is recommended bcc is not present You will not be able to make floppy2, diag2.img, or lilo.com make: *** [test.img] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-boot/lilo-22.7.2 failed. It depends on >=sys-devel/bin86-0.15.5, but at least 0.16.10 is needed. The bcc thing is not fatal, and no idea what provides it.
as requested: magratea aaron # emerge -puDv lilo These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] sys-boot/lilo-22.7.2 [22.7.1] USE="-devmap -minimal -pxeserial -static" 0 kB ./checkit GCC version 2.91 or later is required i686-pc-linux-gnu-gcc -fno-pic -nopie -Os -Wall -g `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` -DLILO=0x7179bbbd `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DATARAID -DMDPRAID; fi ) | sed 's/-D/-DLCF_/g'` -DSHS_MAIN -o version common.c i686-pc-linux-gnu-gcc: unrecognized option
as requested: magratea aaron # emerge -puDv lilo These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] sys-boot/lilo-22.7.2 [22.7.1] USE="-devmap -minimal -pxeserial -static" 0 kB ./checkit GCC version 2.91 or later is required i686-pc-linux-gnu-gcc -fno-pic -nopie -Os -Wall -g `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` -DLILO=0x7179bbbd `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DATARAID -DMDPRAID; fi ) | sed 's/-D/-DLCF_/g'` -DSHS_MAIN -o version common.c i686-pc-linux-gnu-gcc: unrecognized option »-nopie« gcc is not present AS86 version 0.16.10 or later is required as86 version 0.16.17 OKAY LD86 version 0.16.10 or later is required i686-pc-linux-gnu-gcc -fno-pic -nopie -c -Os -Wall -g `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` -DLILO=0x7179bbbd `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DATARAID -DMDPRAID; fi ) | sed 's/-D/-DLCF_/g'` raid.c i686-pc-linux-gnu-gcc: unrecognized option »-nopie« i686-pc-linux-gnu-gcc -fno-pic -nopie -c -Os -Wall -g `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` -DLILO=0x7179bbbd `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DATARAID -DMDPRAID; fi ) | sed 's/-D/-DLCF_/g'` map.c ld86 version 0.16.17 OKAY BCC version 0.16.10 or later is recommended i686-pc-linux-gnu-gcc: unrecognized option »-nopie« bcc is not present You will not be able to make floppy2, diag2.img, or lilo.com make: *** [test.img] Error 1 make: *** Waiting for unfinished jobs... !!! ERROR: sys-boot/lilo-22.7.2 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile lilo-22.7.2.ebuild, line 74: Called die
(In reply to comment #4) > i686-pc-linux-gnu-gcc: unrecognized option
(In reply to comment #4) > i686-pc-linux-gnu-gcc: unrecognized option »-nopie« > gcc is not present Please run gcc-config and see what the story is.
magratea bin # gcc-config Usage: gcc-config [<options>] WARNING: gcc-config is deprecated and is just a frontend to the compiler eselect module. In the future, gcc-config will be removed from portage. Please see 'eselect compiler help' magratea bin # eselect compiler show i686-pc-linux-gnu-4.1.1/vanilla
Don't file bugs with a USE="vanilla" or otherwise modified toolchain. This is not the Gentoo default.
don't bitch at me for something I haven't done... as you can see neither gcc nor binutils have been emerge with USE="vanilla" ! (as my emerge --info should allready have told you) I can check any other toolchain component if you name them to me... magratea ~ # emerge -pv binutils These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-devel/binutils-2.17 USE="nls -multislot -multitarget -test -vanilla" 0 kB Total size of downloads: 0 kB magratea ~ # emerge -pvN binutils >>> --newuse implies --update... adding --update to options. These are the packages that would be merged, in order: Calculating dependencies... done! Total size of downloads: 0 kB magratea ~ # emerge -pv gcc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-devel/gcc-4.1.1 USE="doc fortran gtk nls -bootstrap -build -gcj -hardened -ip28 -ip32r10k -mudflap -multislot -nocxx -objc -objc++ -objc-gc -vanilla" 0 kB Total size of downloads: 0 kB magratea ~ # emerge -pvN gcc >>> --newuse implies --update... adding --update to options. These are the packages that would be merged, in order: Calculating dependencies... done! Total size of downloads: 0 kB so lets play the game again and tell me what is wrong...
Solar, as discussed on IRC. Something toolchain-related is being weird here. Feel free to commit the fix once you find it. But without a revbump please, I have another patch that I want to apply. Thanks.
Please test with a stable toolchain and a proper gcc-config
ok, I now downgraded to a stable toolchain (at least I hope so). if I forgot about anything relevant tell me (as far as I recall downgrading my glibc isn't an option as this would be equal to a system suicide - or am I wrong about that part?) magratea gcc # ACCEPT_KEYWORDS="-~x86" emerge -pv gcc binutils gcc-config binutils-config These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-devel/gcc-3.4.6-r1 USE="doc fortran gtk nls -bootstrap -boundschecking -build -gcj -hardened -ip28 -ip32r10k -multislot -nocxx -nopie -nossp -objc -vanilla" 0 kB [ebuild R ] sys-devel/binutils-2.16.1-r3 USE="nls -multislot -multitarget -test -vanilla" 0 kB [ebuild R ] sys-devel/gcc-config-1.3.13-r3 0 kB [ebuild R ] sys-devel/binutils-config-1.8-r7 0 kB but the result is still the same: ./checkit GCC version 2.91 or later is required i686-pc-linux-gnu-gcc -fno-pic -nopie -Os -Wall -g `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` -DLILO=0x7179bbbd `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DATARAID -DMDPRAID; fi ) | sed 's/-D/-DLCF_/g'` -DSHS_MAIN -o version common.c gcc is not present AS86 version 0.16.10 or later is required as86 version 0.16.17 OKAY LD86 version 0.16.10 or later is required i686-pc-linux-gnu-gcc -fno-pic -nopie -c -Os -Wall -g `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` -DLILO=0x7179bbbd `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DATARAID -DMDPRAID; fi ) | sed 's/-D/-DLCF_/g'` raid.c ld86 version 0.16.17 OKAY BCC version 0.16.10 or later is recommended bcc is not present You will not be able to make floppy2, diag2.img, or lilo.com make: *** [test.img] Fehler 1 make: *** Warte auf noch nicht beendete Prozesse... !!! ERROR: sys-boot/lilo-22.7.2-r1 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile lilo-22.7.2-r1.ebuild, line 72: Called die (sorry for once again german messages - I set LC_ALL="C" but it seems like this doesn't really affect the resulting error messages. if you can tell me how to fix it it would be nice. but basically its exactly the same error messages) gcc-config now tells me this: magratea gcc # gcc-config -l [1] i686-pc-linux-gnu-3.4.6 * [2] i686-pc-linux-gnu-3.4.6-hardened [3] i686-pc-linux-gnu-3.4.6-hardenednopie [4] i686-pc-linux-gnu-3.4.6-hardenednopiessp [5] i686-pc-linux-gnu-3.4.6-hardenednossp [6] i686-pc-linux-gnu-4.1.1 as soon as I update to gcc-config-2.0.0-rc1 I get this info: magratea gcc # gcc-config -l Available compilers for CTARGET i686-pc-linux-gnu [1] i686-pc-linux-gnu-3.4.6/hardened [2] i686-pc-linux-gnu-3.4.6/hardenednopie [3] i686-pc-linux-gnu-3.4.6/hardenednopiessp [4] i686-pc-linux-gnu-3.4.6/hardenednossp [5] i686-pc-linux-gnu-3.4.6/vanilla [6] i686-pc-linux-gnu-4.1.1/vanilla Activated profiles: i686-pc-linux-gnu * i686-pc-linux-gnu-4.1.1/vanilla now this is confusing... suddenly those things are vanilla ? if you need any other infos or anything else I should up- or downgrade - just let me know.
I think I found my problem... its located in the 'checkit' script that lilo uses to verify utility versions along the lines it uses something similar to: gcc -v | grep version to detect the gcc version - for some reason whatsoever "gcc -v" yields: (notice the uppercase v in "Version") magratea ~ # gcc -v Es werden eingebaute Spezifikationen verwendet. Ziel: i686-pc-linux-gnu Konfiguriert mit: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --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 --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread-Modell: posix gcc-Version 4.1.1 (Gentoo 4.1.1) patch soon to follow....
Created attachment 91880 [details, diff] checkit.patch
yet another comment... as you can see, this "bug" seems to be locale-dependant... dependant on the LC_ALL being set my gcc uses upper-/lowercase version string... magratea lilo-22.7.2 # echo "my locale is:" ${LC_ALL} && gcc -v my locale is: de_DE.utf8 Es werden eingebaute Spezifikationen verwendet. Ziel: i686-pc-linux-gnu Konfiguriert mit: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --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 --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread-Modell: posix gcc-Version 4.1.1 (Gentoo 4.1.1) magratea lilo-22.7.2 # echo "my locale is:" ${LC_ALL} && gcc -v my locale is: C Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --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 --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.1 (Gentoo 4.1.1)
Created attachment 91987 [details, diff] lilo-locale.diff ChainSaw please review
Solar, bugfix agreed. Please commit.
Olaf, Thanks for solving your problem and for providing the patch. The reason we did not commit your patch was that it would only solve the problem for your 1 locale vs all locales. By setting the locale to C we can get expected behavior for lilo all the time. Being that it's a bootloader we should leave little room for errors/mistakes as we can. Fixed in all ebuilds. Have a nice day and thanks for using Gentoo..