iPXE discussion forum
Hi,mcb30, robinsmidsrod. the Ipxe.efi 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: Hi,mcb30, robinsmidsrod. the Ipxe.efi compilation error (/showthread.php?tid=7508)



Hi,mcb30, robinsmidsrod. the Ipxe.efi compilation error - foxcool - 2014-10-23 16:52

root@foxwd:~/20141023/ipxe/src# make ./bin-i386-efi/ipxe.efi


[BUILD] bin-x86_64-efi/x86_string.o
[BUILD] bin-x86_64-efi/x86_tcpip.o
[BUILD] bin-x86_64-efi/efix86_nap.o
[BUILD] bin-x86_64-efi/efidrvprefix.o
[BUILD] bin-x86_64-efi/efiprefix.o
[BUILD] bin-x86_64-efi/cpuid_cmd.o
[BUILD] bin-x86_64-efi/hvm.o
[BUILD] bin-x86_64-efi/gdbstub_test.o
[AR] bin-x86_64-efi/blib.a
ar: creating bin-x86_64-efi/blib.a
[HOSTCC] util/elf2efi64
util/elf2efi.c:32:17: 致命错误: bfd.h:没有那个文件或目录
编译中断。
make: *** [util/elf2efi64] 错误 1



My computer using only UEFI, card does not support PXE function. I want to use UEFI to load the iPxe.
Hard disk partition using GPT.
How to realize the.
I downloaded the latest version of iPxe, but the compiler has been wrong.


RE: Hi,mcb30, robinsmidsrod. the Ipxe.efi compilation error - RulerOf - 2014-10-28 07:31

(2014-10-23 16:52)foxcool Wrote:  root@foxwd:~/20141023/ipxe/src# make ./bin-i386-efi/ipxe.efi

Looks like you're trying to compile a 32 bit ipxe.efi.

Most UEFI systems are capable of running a 64 bit version of iPXE. If your CPU is a 64 bit processor, try this build target instead:

Code:
root@foxwd:~/20141023/ipxe/src# make ./bin-x86_64-efi/ipxe.efi



RE: Hi,mcb30, robinsmidsrod. the Ipxe.efi compilation error - copart - 2014-10-30 19:56

Install binutils-devel and that will get you bfd.h

yum install binutils-devel on RH