lilo (22.7.1, 22.7.2, 22.7.2-r1) compilation/emerge fails with the following errormessage: ------------------------------------- mount -t msdos -o loop=/dev/loop5 bootdiagnostic.b /tmp/liloboot ACCESS DENIED open_wr: /dev/loop5 /dev/loop5: Permission denied make[2]: *** [bootdiagnostic.b.gz] Error 32 make[2]: Leaving directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2/diagnose' make[1]: *** [diagnose/test4.com] Error 2 make[1]: Leaving directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2' make[1]: Entering directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2' make -C dos -e CFLAGS="`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 -DDEVMAPPER; fi ) | sed 's/-D/-DLCF_/g'`" lilo.com make[2]: Entering directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2/dos' gcc -ansi -I.. -I/usr/lib/bcc/include -c -O -DHAS_VERSION_H -DLILO=0x7179bbbd -DLCF_BDATA -DLCF_DSECS=3 -DLCF_EVMS -DLCF_IGNORECASE -DLCF_LVM -DLCF_NOKEYBOARD -DLCF_ONE_SHOT -DLCF_PASS160 -DLCF_REISERFS -DLCF_REWRITE_TABLE -DLCF_SOLO_CHAIN -DLCF_VERSION -DLCF_VIRTUAL -DLCF_ATARAID -DLCF_MDPRAID -DLCF_DEVMAPPER -o lilo.o ../lilo.c In file included from ../lilo.c:26: ../config.h:19:3: warning: #warning "glibc version 2.1 or later is recommended" ../lilo.c: In function 'show_other': ../lilo.c:64: warning: passing argument 2 of 'read' from incompatible pointer type ../lilo.c: In function 'show_images': ../lilo.c:315: warning: passing argument 2 of 'read' from incompatible pointer type ../lilo.c:357: warning: incompatible implicit declaration of built-in function 'exit' ../lilo.c: In function 'usage': ../lilo.c:399: warning: incompatible implicit declaration of built-in function 'exit' ../lilo.c: In function 'main': ../lilo.c:436: error: 'sync' undeclared (first use in this function) ../lilo.c:436: error: (Each undeclared identifier is reported only once ../lilo.c:436: error: for each function it appears in.) ../lilo.c:761: error: '__GLIBC__' undeclared (first use in this function) ../lilo.c:761: error: '__GLIBC_MINOR__' undeclared (first use in this function) ../lilo.c:766: warning: right shift count >= width of type ../lilo.c:784: warning: incompatible implicit declaration of built-in function 'exit' ../lilo.c:920: warning: incompatible implicit declaration of built-in function 'exit' make[2]: *** [lilo.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2/dos' make[1]: *** [dos/lilo.com] Error 2 make[1]: Leaving directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2' make: *** [all] Error 2 !!! ERROR: sys-boot/lilo-22.7.2-r1 failed. Call stack: ebuild.sh, line 1545: Called dyn_install ebuild.sh, line 1019: Called src_install lilo-22.7.2-r1.ebuild, line 81: Called die !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-sys-boot_-_lilo-22.7.2-r1-2243.log" open_wr: /dev/loop5 (symlink to /dev/loop/5) -------------------------------------------------------------------------------- ---------------------------------- emerge --info: ---------------------------------- Portage 2.1.1_pre3-r5 (default-linux/x86/2006.0, gcc-4.0.3/vanilla, glibc-2.4-r3, 2.6.17.6 i686) ================================================================= System uname: 2.6.17.6 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.12.1 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.2.3-r6, 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: 0.4.2-r1 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 -mtune=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/revdep-rebuild/ /opt/openjms/config /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/bind /var/spool/fax/etc /var/www/localhost/" 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 -mtune=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks loadpolicy metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://cs.ubishops.ca/pub/gentoo" LANG="de_DE@euro" LINGUAS="de" MAKEOPTS="-j4" PKGDIR="/var/cache/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="/my-ebuilds /usr/local/overlays/java-experimental" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X a52 aac acl acpi alsa apache2 apm arts asf avi bcmath berkdb bitmap-fonts bzip2 calendar caps cgi cli crypt cups curl dba devmap dga dlloader doc dri drm dvd eds emboss encode esd flatfile foomaticdb fortran freetype gd gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal iconv imagemagick imap imlib ipv6 isdnlog java jpeg kde kerberos ldap libg++ libwww mad maildir mhash mikmod mmx motif mp3 mpeg mysql ncurses nls nptl objc offensive ogg opengl oss pam pcre pdflib pear perl png pppd python qt qt3 qt4 quicktime readline reflection scanner sdl session soap sockets socks5 spell spl sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev usb vcd vhosts vorbis win32codecs x264 xine xml xml2 xmms xorg xsl xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_de userland_GNU video_cards_ati video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS ------------------------------------- I've reemerged sandbox. revdep-rebuild is up to date. etc-update also. I've absolutely no idea why this software won't compile. I'm getting the same error for almost every lilo-version I've commented out the whole USE, MAKEOPTS, FEATURES crap in make.conf. Nothing worked. Any idea, what more I could do? Maybe it's a lilo-issue, because I'm also unable to compile it manually.
Uhm, it doesn't compile first of all, so the sandbox violation is not much of a problem at this point. :)
The ebuild tries to keep LILO from building its DOS modules, this seems to fail on your specific configuration. Do you have anything mounted on /dev/loopX? Is there an MS-DOS/VFAT partition mounted? I need to be able to replicate the failure on my system so I can see what part of DOS support is not being disabled properly.
> Do you have anything mounted on /dev/loopX? No. cruncher ~ # losetup -a cruncher ~ # >Is there an MS-DOS/VFAT partition mounted? Also: no. VFAT partitions are available and they also have an entry in fstab, but they are not mounted (noauto). > I need to be able to replicate the failure on my system so I can see what part > of DOS support is not being disabled properly. I see the problem. On my other gentoo-machine it works properly (also ~x86). So it's really weird and I've no idea, what the problem could be. Is there any posibility to disable the dos-crap in Makefile?
(In reply to comment #3) > I see the problem. On my other gentoo-machine it works properly (also ~x86). So > it's really weird and I've no idea, what the problem could be. We're going to have to nail down the exact difference, as this has not been reported before. > Is there any posibility to disable the dos-crap in Makefile? It already does this (the comment was even phrased like that before, but I changed it): # Do not build with DOS support sed -i -e 's|^all:.*$|all: lilo|' ${S}/Makefile sed -i -e 's|DOS_DIR=/dosC/boot||' ${S}/Makefile
> We're going to have to nail down the exact difference, as this has not been reported before. O.k., please tell me, which informations you need and I'll give it to you. > sed -i -e 's|^all:.*$|all: lilo|' ${S}/Makefile > sed -i -e 's|DOS_DIR=/dosC/boot||' ${S}/Makefile I'v patched a vanilla lilo. Same error. I've removed line 161 and changed line 160 this way: 158 all: lilo 159 if [ -x /usr/bin/bcc -o -x /usr/local/bin/bcc ]; then \ 160 make diagnostic; \ 161 make dosexe; fi 158 all: lilo 159 if [ -x /usr/bin/bcc -o -x /usr/local/bin/bcc ]; then \ 160 make diagnostic; fi After that I was able to compile vanilla-lilo. I've removed the line in /var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2-r1/Makefile, added "keepwork" to FEATURES, patched checkit and emerged again. Now I'm getting this error: --------------------------- mount -t msdos -o loop=/dev/loop5 bootdiagnostic.b /tmp/liloboot ACCESS DENIED open_wr: /dev/loop5 /dev/loop5: Permission denied make[2]: *** [bootdiagnostic.b.gz] Error 32 make[2]: Leaving directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2/diagnose' make[1]: *** [diagnose/test4.com] Error 2 make[1]: Leaving directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2' make: *** [all] Error 2 rm os2_d.o chain.img mbr2.o os2_d.img bitmap.img second.img mbr.o first.img third.img !!! ERROR: sys-boot/lilo-22.7.2-r1 failed. Call stack: ebuild.sh, line 1545: Called dyn_install ebuild.sh, line 1019: Called src_install lilo-22.7.2-r1.ebuild, line 81: Called die !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-sys-boot_-_lilo-22.7.2-r1-11608.log" open_wr: /dev/loop5 (symlink to /dev/loop/5) -------------------------------------------------------------------------------- -------------------------- I've changed to /var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2, typed "make all" and the lilo compiled fine. I did "emerge lilo" again (with keepwork set) and lilo is installed now. Are there any problems I've to expect if I want to use ntfs or fat32-partitions with "this" lilo? But this cannot be to solution till the end time. So let's examine, what the problem could be. Ask me whatever you want ;-)
I am having exactly the same problem ... that is: mount -t msdos -o loop=/dev/loop5 bootdiagnostic.b /tmp/liloboot ACCESS DENIED open_wr: /dev/loop5 ...... emerge --info Portage 2.1.1_pre4 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 i686) ================================================================= System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.12.1 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.1.3-r1, 2.3.5-r2, 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=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /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 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/ " 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 apache2 apm arts avi berkdb bitmap-fonts cli cpdflib crypt cups dlloader doc dri dvd eds emboss encode esd f77 foomaticdb fortran gcj gd-external gdbm gif gnomedb gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde libg++ libwww mad maildir mbox mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl php png ppds pppd python qt qt3 qt4 quicktime readline reflection scanner sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev usb vorbis xml xmlrpc xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_radeon video_cards_ati video_cards_vesa video_cards_fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS (In reply to comment #0) > lilo (22.7.1, 22.7.2, 22.7.2-r1) compilation/emerge fails with the following > errormessage: > ------------------------------------- > mount -t msdos -o loop=/dev/loop5 bootdiagnostic.b /tmp/liloboot > ACCESS DENIED open_wr: /dev/loop5 > /dev/loop5: Permission denied > make[2]: *** [bootdiagnostic.b.gz] Error 32 > make[2]: Leaving directory > `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2/diagnose' > make[1]: *** [diagnose/test4.com] Error 2 > make[1]: Leaving directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2' > make[1]: Entering directory `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2' > make -C dos -e CFLAGS="`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 -DDEVMAPPER; fi ) | sed > 's/-D/-DLCF_/g'`" lilo.com > make[2]: Entering directory > `/var/tmp/portage/lilo-22.7.2-r1/work/lilo-22.7.2/dos' > gcc -ansi -I.. -I/usr/lib/bcc/include -c -O -DHAS_VERSION_H -DLILO=0x7179bbbd > -DLCF_BDATA -DLCF_DSECS=3 -DLCF_EVMS -DLCF_IGNORECASE -DLCF_LVM > -DLCF_NOKEYBOARD -DLCF_ONE_SHOT -DLCF_PASS160 -DLCF_REISERFS > -DLCF_REWRITE_TABLE -DLCF_SOLO_CHAIN -DLCF_VERSION -DLCF_VIRTUAL -DLCF_ATARAID > -DLCF_MDPRAID -DLCF_DEVMAPPER -o lilo.o ../lilo.c > In file included from ../lilo.c:26: > ../config.h:19:3: warning: #warning "glibc version 2.1 or later is recommended" > ../lilo.c: In function 'show_other': > ../lilo.c:64: warning: passing argument 2 of 'read' from incompatible pointer > type > ../lilo.c: In function 'show_images': > ../lilo.c:315: warning: passing argument 2 of 'read' from incompatible
Michael, thanks for narrowing this down to the BCC detection. The offending if-statement is now patched out in lilo-22.7.2-r2 ebuild. I apologize for the delay in handling your bug report, but I wanted to accumulate at least two patches and test a new dolilo version before bumping the revision.
*** Bug 146381 has been marked as a duplicate of this bug. ***