Gene Cumm <gene.cumm at gmail.com> writes:
> On Sat, Jan 4, 2014 at 6:39 AM, Gene Cumm <gene.cumm at gmail.com>
wrote:
>> On Tue, Dec 17, 2013 at 8:39 AM, Ferenc Wagner <wferi at niif.hu>
wrote:
>>
>>> * make spotless still fails after working around the above:
>>> [...]
>>> make -r -C efi SRC="/home/wferi/syslinux/syslinux/efi"
OBJ="/home/wferi/syslinux/syslinux/efi32/efi" \
>>> -f /home/wferi/syslinux/syslinux/efi/Makefile
spotless
>>> In file included from /usr/include/elf.h:24:0,
>>> from reloc_ia32.c:39:
>>> /usr/include/features.h:323:26: fatal error: bits/predefs.h: No
such file or directory
>>> compilation terminated.
>>> make[4]: *** [reloc_ia32.o] Error 1
>>> make[3]: *** [gnuefi] Error 2
>>> make[3]: Entering directory
`/home/wferi/syslinux/syslinux/efi32/efi'
>>> /home/wferi/syslinux/syslinux/mk/efi.mk:27: *** Failed to build
gnu-efi for ia32. Stop.
>>> make[3]: Leaving directory
`/home/wferi/syslinux/syslinux/efi32/efi'
>>> make[2]: *** [efi] Error 2
>>> [...]
>>
>> This is a build-system bug in mk/efi.mk. I'm looking at adding a
>> condition to prevent this.
>
> Would you perhaps be building on an x86_64 OS (as shown by 'gcc
> -dumpmachine') but not have gcc-multilib installed?
Absolutely! Now I installed gcc-multilib, and make still fails with:
make[3]: Leaving directory
`/home/wferi/syslinux/syslinux-multilib/efi32/sample'
make -r -C efi SRC="/home/wferi/syslinux/syslinux-multilib/efi"
OBJ="/home/wferi/syslinux/syslinux-multilib/efi32/efi" \
-f /home/wferi/syslinux/syslinux-multilib/efi/Makefile all
remote: Counting objects: 319, done.
remote: Compressing objects: 100% (273/273), done.
remote: Total 319 (delta 132), reused 112 (delta 18)
Receiving objects: 100% (319/319), 193.41 KiB | 146 KiB/s, done.
Resolving deltas: 100% (132/132), done.
/usr/bin/ar: creating libefi.a
dpath.c: In function ?_DevPathIPv4?:
dpath.c:678:27: warning: variable ?IP? set but not used
[-Wunused-but-set-variable]
dpath.c: In function ?_DevPathIPv6?:
dpath.c:690:27: warning: variable ?IP? set but not used
[-Wunused-but-set-variable]
dpath.c: In function ?_DevPathInfiniBand?:
dpath.c:702:30: warning: variable ?InfiniBand? set but not used
[-Wunused-but-set-variable]
event.c: In function ?LibCreateProtocolNotifyEvent?:
event.c:30:29: warning: variable ?Status? set but not used
[-Wunused-but-set-variable]
hand.c: In function ?LibLocateHandleByDiskSignature?:
hand.c:120:28: warning: variable ?Start? set but not used
[-Wunused-but-set-variable]
hw.c: In function ?ReadPort?:
hw.c:79:17: warning: variable ?Status? set but not used
[-Wunused-but-set-variable]
hw.c: In function ?WritePort?:
hw.c:94:17: warning: variable ?Status? set but not used
[-Wunused-but-set-variable]
hw.c: In function ?ReadPciConfig?:
hw.c:109:17: warning: variable ?Status? set but not used
[-Wunused-but-set-variable]
hw.c: In function ?WritePciConfig?:
hw.c:124:17: warning: variable ?Status? set but not used
[-Wunused-but-set-variable]
/usr/bin/ar: creating libgnuefi.a
make[3]: Entering directory
`/home/wferi/syslinux/syslinux-multilib/efi32/efi'
/home/wferi/syslinux/syslinux-multilib/mk/efi.mk:26: *** Failed to build gnu-efi
for ia32. Stop.
make[3]: Leaving directory
`/home/wferi/syslinux/syslinux-multilib/efi32/efi'
make[2]: *** [efi] Error 2
make[2]: Leaving directory `/home/wferi/syslinux/syslinux-multilib/efi32'
make[1]: *** [efi32] Error 2
make[1]: Leaving directory `/home/wferi/syslinux/syslinux-multilib'
make: *** [all] Error 2
--
Thanks,
Feri.