Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] error creating .efirom
2012-04-10, 18:25 (This post was last modified: 2012-04-11 12:02 by kralizeck.)
Post: #1
[Solved] error creating .efirom
Hi.
When I try to make a i386 or x86_64 efirom I get this error:
Code:
make bin-i386-efi/11ab436a.efirom
  [HOSTCC] util/elf2efi32
util/elf2efi.c:29:17: fatal error: bfd.h: No such file or directory
compilation terminated.
make: *** [util/elf2efi32] Error 1


make bin-x86_64-efi/11ab436a.efirom
  [HOSTCC] util/elf2efi64
util/elf2efi.c:29:17: fatal error: bfd.h: No such file or directory
compilation terminated.
make: *** [util/elf2efi64] Error 1

I'm using late git code

Thanks.
Find all posts by this user
Quote this message in a reply
2012-04-10, 18:37
Post: #2
RE: error creating .efirom
(2012-04-10 18:25)kralizeck Wrote:  When I try to make a i386 or x86_64 efirom I get this error:
Code:
make bin-i386-efi/11ab436a.efirom
  [HOSTCC] util/elf2efi32
util/elf2efi.c:29:17: fatal error: bfd.h: No such file or directory
compilation terminated.
make: *** [util/elf2efi32] Error 1

make bin-x86_64-efi/11ab436a.efirom
  [HOSTCC] util/elf2efi64
util/elf2efi.c:29:17: fatal error: bfd.h: No such file or directory
compilation terminated.
make: *** [util/elf2efi64] Error 1

You need to install the libbfd headers, which are probably in a package called "bfd-devel", "libbfd-devel", or similar.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
2012-04-10, 18:49
Post: #3
RE: error creating .efirom
(2012-04-10 18:37)mcb30 Wrote:  You need to install the libbfd headers, which are probably in a package called "bfd-devel", "libbfd-devel", or similar.

Thanks.
I install binutils-dev ("apt-cache search libbfd" gave me that result), but i get a new error:

Code:
make bin-i386-efi/11ab436a.efirom
  [HOSTCC] util/elf2efi32
util/elf2efi.c: In function ‘write_pe_file’:
util/elf2efi.c:640:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘UINT32’ [-Wformat]
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [util/elf2efi32] Error 1

Thanks again.
Find all posts by this user
Quote this message in a reply
2012-04-10, 19:40
Post: #4
RE: error creating .efirom
(2012-04-10 18:49)kralizeck Wrote:  Thanks.
I install binutils-dev ("apt-cache search libbfd" gave me that result), but i get a new error:

Code:
make bin-i386-efi/11ab436a.efirom
  [HOSTCC] util/elf2efi32
util/elf2efi.c: In function ‘write_pe_file’:
util/elf2efi.c:640:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘UINT32’ [-Wformat]
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [util/elf2efi32] Error 1

It looks as though you also need zlib-dev (or libz-dev, or similar).

Michael

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
2012-04-10, 20:04
Post: #5
RE: error creating .efirom
Most likely you haven't installed build-essential, which gives you a complete C toolchain. Please also see the main ipxe.org website for the specific build requirements.
Visit this user's website Find all posts by this user
Quote this message in a reply
2012-04-11, 12:02
Post: #6
RE: error creating .efirom
Finally I used ubuntu 10.04 (using latest desktop version I've all those problems) server on a virtual machine and, installing what you suggested me, it's all ok.

Thanks.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)