iPXE discussion forum
iPXE EFI build fails with elf2efi64 failed - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: iPXE EFI build fails with elf2efi64 failed (/showthread.php?tid=8285)



iPXE EFI build fails with elf2efi64 failed - zerojay100 - 2017-01-06 09:06

When I try to build the ipxe.efi with latest version of ipxe

The command I am using is-----
Code:
make bin-x86_64-efi/ipxe.efi

it comes with an error-----
Code:
[HOSTCC] util/elf2efi64
/tmp/cc5uKw9w.o: In function `elf2pe':
/home/user/Desktop/ipxe/src/util/elf2efi.c:933: undefined reference to `__xpg_basename'
/usr/bin/ld: util/elf2efi64: hidden symbol `__xpg_basename' isn't defined
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile.housekeeping:1375: recipe for target 'util/elf2efi64' failed
make: *** [util/elf2efi64] Error 1



RE: iPXE EFI build fails with elf2efi64 failed - NiKiZe - 2017-01-06 09:55

What configuration changes have you made, and have you tried to compile with a clean checkout?

> undefined reference to `__xpg_basename'
Google tells me it is a libc refererence issue, which libc is used on this system?


RE: iPXE EFI build fails with elf2efi64 failed - zerojay100 - 2017-01-06 10:55

(2017-01-06 09:55)NiKiZe Wrote:  What configuration changes have you made, and have you tried to compile with a clean checkout?

> undefined reference to `__xpg_basename'
Google tells me it is a libc refererence issue, which libc is used on this system?

my OS is ubuntu 16.10 x64
ldd --version
Code:
ldd (Ubuntu GLIBC 2.24-3ubuntu2) 2.24



RE: iPXE EFI build fails with elf2efi64 failed - ndog - 2017-01-07 11:39

(2017-01-06 10:55)zerojay100 Wrote:  my OS is ubuntu 16.10 x64
ldd --version
Code:
ldd (Ubuntu GLIBC 2.24-3ubuntu2) 2.24

I had this same issue in the past with ubuntu. Since then I only use fedora (24 currently) which compiles fine


RE: iPXE EFI build fails with elf2efi64 failed - NiKiZe - 2017-01-12 19:05

Proposed fix for this is included in a Pull Request on Github, mail sent for this at: http://lists.ipxe.org/pipermail/ipxe-devel/2017-January/005402.html


RE: iPXE EFI build fails with elf2efi64 failed - zerojay100 - 2017-01-20 04:18

(2017-01-07 11:39)ndog Wrote:  
(2017-01-06 10:55)zerojay100 Wrote:  my OS is ubuntu 16.10 x64
ldd --version
Code:
ldd (Ubuntu GLIBC 2.24-3ubuntu2) 2.24

I had this same issue in the past with ubuntu. Since then I only use fedora (24 currently) which compiles fine

It is also compiles fine on fedora 25, thanks.


RE: iPXE EFI build fails with elf2efi64 failed - mcb30 - 2017-01-25 09:19

(2017-01-06 09:06)zerojay100 Wrote:  
Code:
[HOSTCC] util/elf2efi64
/tmp/cc5uKw9w.o: In function `elf2pe':
/home/user/Desktop/ipxe/src/util/elf2efi.c:933: undefined reference to `__xpg_basename'

Now fixed: http://git.ipxe.org/ipxe.git/commitdiff/941c53a.

Thanks!

Michael