* Package: sys-boot/lilo-24.2 * Repository: gentoo * Maintainer: chainsaw@gentoo.org base-system@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox >>> Unpacking source... >>> Unpacking lilo-24.2.tar.gz to /var/tmp/portage/sys-boot/lilo-24.2/work >>> Unpacking dolilo-0.6.tar.bz2 to /var/tmp/portage/sys-boot/lilo-24.2/work >>> Source unpacked in /var/tmp/portage/sys-boot/lilo-24.2/work >>> Preparing source in /var/tmp/portage/sys-boot/lilo-24.2/work/lilo-24.2 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-boot/lilo-24.2/work/lilo-24.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-boot/lilo-24.2/work/lilo-24.2 ... make -j1 'CC=x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0' all ./checkit GCC version 3.3.5 or later is required gcc version 10.1.0 OKAY AS86 version 0.16.14 or later is required as86 version 0.16.21 OKAY LD86 version 0.16.14 or later is required ld86 version 0.16.21 OKAY BCC version 0.16.14 or later is recommended bcc is not present You will not be able to make floppy2, diag2.img, or lilo.com echo Tested >test.img make -C src all make[1]: Entering directory '/var/tmp/portage/sys-boot/lilo-24.2/work/lilo-24.2/src' x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -DSHS_MAIN -o version common.c echo "#define CFLAGS \"" -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` "\"" >flags.i tail -$((`wc -l _TmP_ for i in boot.c bsect.c cfg.c common.c device.c edit.c geometry.c identify.c lilo.c map.c partition.c probe.c raid.c shs2.c temp.c bdata.h bitmap.h boot.h bsect.h cfg.h common.h config.h device.h edit.h geometry.h identify.h lilo.h loader.h map.h md-int.h partition.h probe.h raid.h shs2.h temp.h version.h vesainfo.h ; do cat $i >>_TmP_ ; done echo "#define CSOURCE " `./version _TmP_` >>flags.i rm -f _TmP_ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` lilo.c lilo.c: In function 'show_images': lilo.c:458:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 458 | if (!*(unsigned int *) descrs.d.descr[image].rd_size) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lilo.c:461:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 461 | *(unsigned int *) descrs.d.descr[image].rd_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` raid.c raid.c: In function 'raid_setup': raid.c:236:10: warning: variable 'disk_fd' set but not used [-Wunused-but-set-variable] 236 | int disk_fd; | ^~~~~~~ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` map.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` geometry.c geometry.c: In function 'geo_get': geometry.c:1176:6: warning: variable 'raid_limit' set but not used [-Wunused-but-set-variable] 1176 | int raid_limit; | ^~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` boot.c boot.c: In function 'boot_image': boot.c:109:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 109 | *(unsigned int *) descr->rd_size = st.st_size; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` device.c In file included from /usr/include/string.h:495, from device.c:16: In function 'strncpy', inlined from 'pf_hard_disk_scan' at device.c:948:2: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` common.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` bsect.c bsect.c: In function 'get_image': bsect.c:988:13: warning: value computed is not used [-Wunused-value] 988 | *tmp++; | ^~~~~~ In file included from /usr/include/string.h:495, from bsect.c:26: In function 'strncpy', inlined from 'menu_do_scheme' at bsect.c:558:5, inlined from 'bsect_open' at bsect.c:910:6: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'bsect_open' at bsect.c:641:2: /usr/include/bits/string_fortified.h:34:10: warning: '__builtin_memcpy' forming offset [8, 441] is out of the bounds [0, 8] of object 'First' with type 'BUILTIN_FILE' [-Warray-bounds] 34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from bsect.c:46: bsect.c: In function 'bsect_open': loader.h:13:21: note: 'First' declared here 13 | extern BUILTIN_FILE First; | ^~~~~ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` cfg.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` partition.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` identify.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` probe.c probe.c: In function 'fetch': probe.c:194:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 194 | if (*(int*)buf.s5.checksum != crc32((unsigned char*)&buf.s5 + 4, got-4, CRC_POLY1)) | ^~~~~~~~~~~~~~~~~~~~~ probe.c: In function 'purge': probe.c:233:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 233 | *(int*)buf.s5.checksum = crc32((unsigned char*)&buf.s5 + 4, i-4, CRC_POLY1); | ^~~~~~~~~~~~~~~~~~~~~ probe.c: In function 'bios_device': probe.c:937:9: warning: variable 'mbios' set but not used [-Wunused-but-set-variable] 937 | int mbios[BD_MAX_HARD]; | ^~~~~ probe.c: In function 'do_volid': probe.c:1154:33: warning: variable 'valid' set but not used [-Wunused-but-set-variable] 1154 | int uniq[MAX_BIOS_DEVICES], valid[MAX_BIOS_DEVICES]; | ^~~~~ probe.c:1154:9: warning: variable 'uniq' set but not used [-Wunused-but-set-variable] 1154 | int uniq[MAX_BIOS_DEVICES], valid[MAX_BIOS_DEVICES]; | ^~~~ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` shs2.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` edit.c edit.c: In function 'get_std_headers': edit.c:108:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 108 | bmh->sizeImageData = *(int*)(fh->size) - *(int*)(fh->offsetToBits); | ^~~~~~~~~~~~~~~~ edit.c:108:44: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 108 | bmh->sizeImageData = *(int*)(fh->size) - *(int*)(fh->offsetToBits); | ^~~~~~~~~~~~~~~~~~~~~~~~ edit.c:128:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 128 | if (*(int*)(fh->offsetToBits) == sizeof(BITMAPFILEHEADER) + | ^~~~~~~~~~~~~~~~~~~~~~~~ edit.c:136:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 136 | *(int*)(lh->size) = size; | ^~~~~~~~~~~~~~~~ edit.c: In function 'put_std_bmpfile': edit.c:174:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 174 | *(int*)(fh->offsetToBits) = n = sizeof(BITMAPFILEHEADER) + | ^~~~~~~~~~~~~~~~~~~~~~~~ edit.c:177:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 177 | *(int*)(fh->size) = total + n; | ^~~~~~~~~~~~~~~~ edit.c: In function 'bmp_file_close': edit.c:309:9: warning: variable 'n' set but not used [-Wunused-but-set-variable] 309 | int n; | ^ edit.c: In function 'put_std_bmpfile': edit.c:159:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 159 | write(fd, fh, sizeof(*fh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:160:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 160 | write(fd, bmh, sizeof(*bmh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:161:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 161 | write(fd, palette, npalette*sizeof(palette[0])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:162:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 162 | write(fd, lh, sizeof(*lh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:179:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 179 | write(fd, fh, sizeof(*fh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:180:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 180 | write(fd, bmh, sizeof(*bmh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -DLILO_BINARY -o mkloader temp.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -E -P -ffreestanding `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -DFIRST=0x62177489 -o first.s first.S x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -E -P -ffreestanding -C -traditional -DLILO_ASM -o common.s common.h as86 -0 -a -w -l first.lis -o first.o first.s ld86 -0 -s -o first.img first.o dd if=first.img of=first.b bs=32 skip=1 16+0 records in 16+0 records out 512 bytes copied, 0.000244394 s, 2.1 MB/s x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -E -P -ffreestanding `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -DTEXT=0x9dd476ec second.S -o second.s as86 -0 -a -w -l second.lis -o second.o second.s ld86 -0 -s -o second.img second.o dd if=second.img of=second.b bs=32 skip=1 224+0 records in 224+0 records out 7168 bytes (7.2 kB, 7.0 KiB) copied, 0.000348475 s, 20.6 MB/s x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -E -P -ffreestanding `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -DMENU=0x2012a4a7 second.S -o third.s as86 -0 -a -w -l third.lis -o third.o third.s ld86 -0 -s -o third.img third.o dd if=third.img of=third.b bs=32 skip=1 288+0 records in 288+0 records out 9216 bytes (9.2 kB, 9.0 KiB) copied, 0.0004509 s, 20.4 MB/s x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -E -P -ffreestanding `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -DBITMAP=0x2ece2fbe second.S -o bitmap.s as86 -0 -a -w -l bitmap.lis -o bitmap.o bitmap.s ld86 -0 -s -o bitmap.img bitmap.o dd if=bitmap.img of=bitmap.b bs=32 skip=1 304+0 records in 304+0 records out 9728 bytes (9.7 kB, 9.5 KiB) copied, 0.000700544 s, 13.9 MB/s x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -E -P -ffreestanding -traditional `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -DMBR=0xafbbe760 \ -o mbr.s mbr.S as86 -0 -a -w -l mbr.lis -o mbr.o mbr.s ld86 -0 -s -o mbr.img mbr.o dd if=mbr.img of=mbr.b bs=32 skip=49 16+0 records in 16+0 records out 512 bytes copied, 0.000204831 s, 2.5 MB/s x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -E -P -ffreestanding `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -DCHAIN=0x536a7646 chain.S -o chain.s as86 -0 -a -w -l chain.lis -o chain.o chain.s ld86 -0 -s -o chain.img chain.o dd if=chain.img of=chain.b bs=32 skip=1 48+0 records in 48+0 records out 1536 bytes (1.5 kB, 1.5 KiB) copied, 0.000145863 s, 10.5 MB/s x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -E -P -ffreestanding -traditional `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -DMBX=0x93c00848 \ -o mbr2.s mbr.S as86 -0 -a -w -l mbr2.lis -o mbr2.o mbr2.s ld86 -0 -s -o mbr2.img mbr2.o dd if=mbr2.img of=mbr2.b bs=32 skip=49 16+0 records in 16+0 records out 512 bytes copied, 7.6894e-05 s, 6.7 MB/s ./mkloader >loader.i x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` temp.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -o lilo lilo.o raid.o map.o geometry.o boot.o device.o common.o bsect.o cfg.o partition.o identify.o probe.o shs2.o edit.o temp.o `if [ -f /usr/include/libdevmapper.h ]; then echo "-ldevmapper"; fi` /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: raid.o:(.bss+0x8): multiple definition of `do_md_install'; lilo.o:(.bss+0x20): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: raid.o:(.bss+0x0): multiple definition of `md_bios'; lilo.o:(.bss+0x18): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: raid.o:(.bss+0x4): multiple definition of `ndisk'; lilo.o:(.bss+0x1c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: geometry.o:(.bss+0x60): multiple definition of `md_bios'; lilo.o:(.bss+0x18): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: geometry.o:(.bss+0x68): multiple definition of `do_md_install'; lilo.o:(.bss+0x20): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: geometry.o:(.bss+0x64): multiple definition of `ndisk'; lilo.o:(.bss+0x1c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: common.o:(.bss+0x154): multiple definition of `do_md_install'; lilo.o:(.bss+0x20): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bsect.o:(.bss+0x0): multiple definition of `boot_dev_nr'; common.o:(.bss+0x15c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bsect.o:(.bss+0xc): multiple definition of `do_md_install'; lilo.o:(.bss+0x20): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bsect.o:(.bss+0x4): multiple definition of `md_bios'; lilo.o:(.bss+0x18): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bsect.o:(.bss+0x8): multiple definition of `ndisk'; lilo.o:(.bss+0x1c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: identify.o:(.bss+0x0): multiple definition of `identify'; common.o:(.bss+0x160): first defined here collect2: error: ld returned 1 exit status make[1]: *** [Makefile:178: lilo] Error 1 rm second.img bitmap.img mbr2.o third.img mbr.o first.img chain.img make[1]: Leaving directory '/var/tmp/portage/sys-boot/lilo-24.2/work/lilo-24.2/src' make: *** [Makefile:14: all] Error 2 * ERROR: sys-boot/lilo-24.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-boot/lilo-24.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-boot/lilo-24.2::gentoo'`. * The complete build log is located at '/var/log/portage/sys-boot:lilo-24.2:20200515-171351.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-boot/lilo-24.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-boot/lilo-24.2/temp/environment'. * Working directory: '/var/tmp/portage/sys-boot/lilo-24.2/work/lilo-24.2' * S: '/var/tmp/portage/sys-boot/lilo-24.2/work/lilo-24.2'