iPXE discussion forum

Full Version: compilation error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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/.../0024.html
but, yum shows this:
Package binutils-2.20.51.0.7-8.fc14.i686 already installed and latest version

Help appreciated.

JJ
(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/.../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
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
(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
Reference URL's