On 03/08/16 08:58, Shao Miller via Syslinux wrote:> While building on AMD64 CentOS 6, I noticed that glibc-devel.i686 was > needed for some (U)EFI stuff, but isn't in the README. I'm not sure if > other Linux flavours will have counterpart needs. - ShaoHmmm... that makes me somewhat nervous. I'm wondering if we're pulling in stuff we should not. -hpa
On 3/8/2016 12:31, H. Peter Anvin wrote:> On 03/08/16 08:58, Shao Miller via Syslinux wrote: >> While building on AMD64 CentOS 6, I noticed that glibc-devel.i686 was >> needed for some (U)EFI stuff, but isn't in the README. I'm not sure if >> other Linux flavours will have counterpart needs. - Shao > Hmmm... that makes me somewhat nervous. I'm wondering if we're pulling > in stuff we should not.The nearby stuff was:> make[5]: Leaving directory `/usr/src/syslinux/efi32/gnu-efi/lib' > mkdir -p gnuefi > make -C gnuefi -f > /usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi/Makefile > SRCDIR=/usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi ARCH=ia32 > make[5]: Entering directory `/usr/src/syslinux/efi32/gnu-efi/gnuefi' > /usr/bin/gcc -m32 -DCONFIG_ia32 -c -o crt0-efi-ia32.o > /usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi/crt0-efi-ia32.S > /usr/bin/gcc -I/usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi > -I/usr/src/syslinux/gnu-efi/gnu-efi-3.0/inc > -I/usr/src/syslinux/gnu-efi/gnu-efi-3.0/inc/ia32 > -I/usr/src/syslinux/gnu-efi/gnu-efi-3.0/inc/protocol -mno-mmx -mno-sse > -m32 -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing > -fno-merge-constants -ffreestanding -fno-stack-protector > -fno-stack-check -DCONFIG_ia32 -c > /usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi/reloc_ia32.c -o reloc_ia32.o > In file included from /usr/include/features.h:385, > from /usr/include/elf.h:24, > from > /usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi/reloc_ia32.c:39: > /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or > directory > make[5]: *** [reloc_ia32.o] Error 1 > make[5]: Leaving directory `/usr/src/syslinux/efi32/gnu-efi/gnuefi' > make[4]: *** [gnuefi] Error 2 > make[4]: Leaving directory `/usr/src/syslinux/efi32/gnu-efi' > Failed to build gnu-efi. Execute the following command for full details: > > build-gnu-efi.sh ia32 /usr/src/syslinux/efi32 > > make[3]: *** [/usr/src/syslinux/efi32/lib/libefi.a] Error 1 > make[3]: Leaving directory `/usr/src/syslinux/efi32/efi' > make[2]: *** [efi] Error 2 > make[2]: Leaving directory `/usr/src/syslinux/efi32' > make[1]: *** [efi32] Error 2 > make[1]: Leaving directory `/usr/src/syslinux' > make: *** [all] Error 2
On 03/08/16 09:41, Shao Miller wrote:> On 3/8/2016 12:31, H. Peter Anvin wrote: >> On 03/08/16 08:58, Shao Miller via Syslinux wrote: >>> While building on AMD64 CentOS 6, I noticed that glibc-devel.i686 was >>> needed for some (U)EFI stuff, but isn't in the README. I'm not sure if >>> other Linux flavours will have counterpart needs. - Shao >> Hmmm... that makes me somewhat nervous. I'm wondering if we're pulling >> in stuff we should not. > > The nearby stuff was: > >> make[5]: Leaving directory `/usr/src/syslinux/efi32/gnu-efi/lib' >> mkdir -p gnuefi >> make -C gnuefi -f >> /usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi/Makefile >> SRCDIR=/usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi ARCH=ia32 >> make[5]: Entering directory `/usr/src/syslinux/efi32/gnu-efi/gnuefi' >> /usr/bin/gcc -m32 -DCONFIG_ia32 -c -o crt0-efi-ia32.o >> /usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi/crt0-efi-ia32.S >> /usr/bin/gcc -I/usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi >> -I/usr/src/syslinux/gnu-efi/gnu-efi-3.0/inc >> -I/usr/src/syslinux/gnu-efi/gnu-efi-3.0/inc/ia32 >> -I/usr/src/syslinux/gnu-efi/gnu-efi-3.0/inc/protocol -mno-mmx -mno-sse >> -m32 -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing >> -fno-merge-constants -ffreestanding -fno-stack-protector >> -fno-stack-check -DCONFIG_ia32 -c >> /usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi/reloc_ia32.c -o reloc_ia32.o >> In file included from /usr/include/features.h:385, >> from /usr/include/elf.h:24, >> from >> /usr/src/syslinux/gnu-efi/gnu-efi-3.0/gnuefi/reloc_ia32.c:39: >> /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or >> directory >> make[5]: *** [reloc_ia32.o] Error 1 >> make[5]: Leaving directory `/usr/src/syslinux/efi32/gnu-efi/gnuefi' >> make[4]: *** [gnuefi] Error 2 >> make[4]: Leaving directory `/usr/src/syslinux/efi32/gnu-efi' >> Failed to build gnu-efi. Execute the following command for full details: >> >> build-gnu-efi.sh ia32 /usr/src/syslinux/efi32 >>I think reloc_ia32.c is probably a host program, which I guess means it is time to deal with "host" vs "target" compiler (or in autoconf terminology, "build" vs "host".) I'm suspecting that using autoconf for Syslinux is probably inevitable. -hpa