iPXE discussion forum
compilation error - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: compilation error (/showthread.php?tid=2839)



compilation error - johnjore - 2012-03-20 13:27

Minor issue during compilation on a Fedora release 14 (Laughlin) box.

"make everything" fails with:

[HOSTCC] util/elf2efi32
util/elf2efi.c:29:17: fatal error: bfd.h: No such file or directory
compilation terminated.
make[2]: *** [util/elf2efi32] Error 1
make[1]: *** [bin-i386-efi/ipxe.efi] Error 2
make: *** [everything] Error 2


can't find the bfd.h file anywhere on the box. Am i missing a pre-req?

Btw, found this thread from 1999, http://lkml.indiana.edu/hypermail/linux/kernel/9902.1/0024.html
but, yum shows this:
Package binutils-2.20.51.0.7-8.fc14.i686 already installed and latest version

Help appreciated.

JJ


RE: compilation error - mcb30 - 2012-03-24 03:44

(2012-03-20 13:27)johnjore Wrote:  Minor issue during compilation on a Fedora release 14 (Laughlin) box.

"make everything" fails with:

[HOSTCC] util/elf2efi32
util/elf2efi.c:29:17: fatal error: bfd.h: No such file or directory
compilation terminated.
make[2]: *** [util/elf2efi32] Error 1
make[1]: *** [bin-i386-efi/ipxe.efi] Error 2
make: *** [everything] Error 2


can't find the bfd.h file anywhere on the box. Am i missing a pre-req?

Btw, found this thread from 1999, http://lkml.indiana.edu/hypermail/linux/kernel/9902.1/0024.html
but, yum shows this:
Package binutils-2.20.51.0.7-8.fc14.i686 already installed and latest version

You need the binutils development files, almost certainly in the binutils-devel package.

Michael


RE: compilation error - johnjore - 2012-03-24 09:14

Thanks for that, it fixed the issue. Now I just need the x64 components:

[BUILD] bin-x86_64-efi/__udivdi3.o
libgcc/__udivdi3.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [bin-x86_64-efi/__udivdi3.o] Error 1
make[1]: *** [bin-x86_64-efi/ipxe.efi] Error 2
make: *** [everything] Error 2

JJ


RE: compilation error - mcb30 - 2012-03-24 12:08

(2012-03-24 09:14)johnjore Wrote:  Thanks for that, it fixed the issue. Now I just need the x64 components:

[BUILD] bin-x86_64-efi/__udivdi3.o
libgcc/__udivdi3.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [bin-x86_64-efi/__udivdi3.o] Error 1
make[1]: *** [bin-x86_64-efi/ipxe.efi] Error 2
make: *** [everything] Error 2

It looks as though you're building on a 32-bit system that is not capable of building 64-bit binaries. If that's the case, you won't be able to build the 64-bit targets.

Michael