| View previous topic :: View next topic |
| Author |
Message |
lutel Tux's lil' helper


Joined: 19 Oct 2003 Posts: 110 Location: Pomroczna
|
Posted: Tue Nov 21, 2017 7:36 am Post subject: |
|
|
cat /var/log/portage/sys-boot:lilo-24.0-r1:20171121-073440.log
| Code: |
.....
make -C src all
make[1]: Entering directory '/var/tmp/portage/sys-boot/lilo-24.0-r1/work/lilo-24.0/src'
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -fno-pic -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'` -DSHS_MAIN -o version common.c
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -fno-pic -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
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -fno-pic -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 -fno-pic -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
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -fno-pic -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
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -fno-pic -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
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -fno-pic -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 -fno-pic -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
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-boot/lilo-24.0-r1/temp/ccfgwHZp.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-boot/lilo-24.0-r1/temp/ccfgwHZp.o: warning: relocation against `readlink@@GLIBC_2.2.5' in readonly section `.text'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
map.c: In function 'map_create':
map.c:89:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned short *) buffer = DC_MGOFF;
^
map.c:108:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned short *) buffer = 0;
^
map.c: In function 'sa6_from_sa':
map.c:355:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
sector = *(unsigned int*)&(sa->sector);
^~~~~~
boot.c: In function 'boot_image':
boot.c:109:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned int *) descr->rd_size = st.st_size;
^
boot.c: In function 'boot_other':
boot.c:309:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define PART(s,n) (((struct partition *) (s)[0].par_c.ptable)[(n)])
^
boot.c:469:9: note: in expansion of macro 'PART'
PART(buff,0).boot_ind = geo.device;
^~~~
boot.c:309:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define PART(s,n) (((struct partition *) (s)[0].par_c.ptable)[(n)])
^
boot.c:470:9: note: in expansion of macro 'PART'
PART(buff,0).start_sect = geo.start; /* pseudo partition table */
^~~~
bsect.c: In function 'bsect_open':
bsect.c:662:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
stage_flags = ((BOOT_SECTOR*)(loader->data)) -> par_2.stage;
^~~~~~~~~~~
bsect.c:714:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned short *) &bsect.sector[BOOT_SIG_OFFSET] = BOOT_SIGNATURE;
^
bsect.c: In function 'get_image':
bsect.c:988:13: warning: value computed is not used [-Wunused-value]
*tmp++;
^~~~~~
raid.c: In function 'raid_setup':
raid.c:236:10: warning: variable 'disk_fd' set but not used [-Wunused-but-set-variable]
int disk_fd;
^~~~~~~
device.c: In function 'register_bios':
device.c:631:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
serial = *(int*)&buff.sector[PART_TABLE_OFFSET-6];
^~~~~~
device.c:642:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(int*)&buff.sector[PART_TABLE_OFFSET-6] = serial;
^
device.c:643:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if (*(short*)&buff.sector[PART_TABLE_OFFSET - 2] == 0)
^~
device.c:644:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned short*)&buff.sector[PART_TABLE_OFFSET - 2] = MAGIC_SERIAL;
^
geometry.c: In function 'geo_get':
geometry.c:1104:6: warning: variable 'raid_limit' set but not used [-Wunused-but-set-variable]
int raid_limit;
^~~~~~~~~~
collect2: error: ld returned 1 exit status
bsect.c: In function 'bsect_common':
bsect.c:1249:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned short *) fallback_buf = DC_MAGIC;
^
bsect.c: In function 'bsect_update':
bsect.c:1471:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(short*)&bsect_wr.sector[1] = space - 3;
^
bsect.c:1477:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(short*)&bsect_wr.sector[space+1] += len;
^
make[1]: *** [Makefile:256: version] Error 1
make[1]: *** Waiting for unfinished jobs....
bsect.c: In function 'bsect_uninstall':
bsect.c:1627:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if (*(unsigned short *) &bsect.sector[BOOT_SIG_OFFSET] != BOOT_SIGNATURE)
^~
bsect.c: In function 'bsect_raid_update':
bsect.c:1698:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned short *) &bsect.sector[BOOT_SIG_OFFSET] = BOOT_SIGNATURE;
^
make[1]: Leaving directory '/var/tmp/portage/sys-boot/lilo-24.0-r1/work/lilo-24.0/src'
make: *** [Makefile:40: all] Error 2
* ERROR: sys-boot/lilo-24.0-r1::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-boot/lilo-24.0-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-boot/lilo-24.0-r1::gentoo'`.
* The complete build log is located at '/var/log/portage/sys-boot:lilo-24.0-r1:20171121-073440.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-boot/lilo-24.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-boot/lilo-24.0-r1/temp/environment'.
* Working directory: '/var/tmp/portage/sys-boot/lilo-24.0-r1/work/lilo-24.0'
* S: '/var/tmp/portage/sys-boot/lilo-24.0-r1/work/lilo-24.0' |
|
|
| Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31097 Location: here
|
Posted: Tue Nov 21, 2017 10:01 am Post subject: |
|
|
It's a bug _________________ Questions are guaranteed in life; Answers aren't. |
|
| Back to top |
|
 |
lutel Tux's lil' helper


Joined: 19 Oct 2003 Posts: 110 Location: Pomroczna
|
Posted: Tue Nov 21, 2017 11:25 am Post subject: |
|
|
| thanks |
|
| Back to top |
|
 |
fudge Tux's lil' helper

Joined: 25 Jul 2002 Posts: 117
|
Posted: Sun Dec 03, 2017 10:09 am Post subject: |
|
|
Here's a workaround for the broken lilo build (taken from the hardened project https://wiki.gentoo.org/wiki/Hardened_Gentoo)
Create a file called /etc/portage/env/nopie and paste the following:
| Code: | CFLAGS="${CFLAGS} -no-pie"
CXXFLAGS="${CXXFLAGS} -no-pie"
LDFLAGS="${LDFLAGS} -no-pie" |
Then add the following to /etc/portage/package.env:
| Code: | | sys-boot/lilo nopie |
Until lilo is fixed properly, this will work. |
|
| Back to top |
|
 |
jhon987 Guru

Joined: 18 Nov 2013 Posts: 302
|
Posted: Wed Jan 10, 2018 11:23 pm Post subject: |
|
|
| fudge wrote: | Here's a workaround for the broken lilo build (taken from the hardened project https://wiki.gentoo.org/wiki/Hardened_Gentoo)
Create a file called /etc/portage/env/nopie and paste the following:
| Code: | CFLAGS="${CFLAGS} -no-pie"
CXXFLAGS="${CXXFLAGS} -no-pie"
LDFLAGS="${LDFLAGS} -no-pie" |
Then add the following to /etc/portage/package.env:
| Code: | | sys-boot/lilo nopie |
Until lilo is fixed properly, this will work. |
Thanks for that solution!
it also worked for me upon emerging Kodi, I would receive: final link failed: Nonrepresentable section on output [using GCC 6.4.0]
I added media-tv/kodi nopie and now it finally comiples... |
|
| Back to top |
|
 |
weiypan_us Tux's lil' helper

Joined: 25 Feb 2017 Posts: 109
|
Posted: Sat Jan 27, 2018 6:04 am Post subject: |
|
|
| fudge wrote: | Here's a workaround for the broken lilo build (taken from the hardened project https://wiki.gentoo.org/wiki/Hardened_Gentoo)
Create a file called /etc/portage/env/nopie and paste the following:
| Code: | CFLAGS="${CFLAGS} -no-pie"
CXXFLAGS="${CXXFLAGS} -no-pie"
LDFLAGS="${LDFLAGS} -no-pie" |
Then add the following to /etc/portage/package.env:
| Code: | | sys-boot/lilo nopie |
Until lilo is fixed properly, this will work. |
Thank you for the solution. I got the similar problem when I compile kodi. I created /etc/portage/env/nopie and added line '=media-tv/kodi-17.3-r1 nopie' and passed failing point. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|