iPXE discussion forum
Compiling problem - Printable Version

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



Compiling problem - captainipxe - 2021-05-12 15:18

Hello everyone :-)

I want to compile iPXE. I created a virtual Ubuntu 20.10 64-bit machine. I installed all packs which are listed on your website. I downloaded and extracted the zip from github. I edited some configfiles to enable features.

I used the command: make bin-x86_64-efi/ipxe.efi

The process fails. I get these lines at the end. What do i have to do to fix the problem?

I have a second question. I use iPXE via chainloading in my network to have quick diagnostic, backup and other live tools at the ready. I had several new Acer Travelmate notebooks in the past weeks here. They get the ipxe efi from the server; okay so far. But then they fail cause the auto configuration / loading the script file doesnt work because iPXE finds no network interface. I guess my ipxe efi doesnt support these network cards. Is there a way to make it work? Adding the driver or so?

I appreciate your help a lot :-)
==========

[HOSTCC] util/elf2efi64
[VERSION] bin-x86_64-efi/version.ipxe.efi.o
[LD] bin-x86_64-efi/ipxe.efi.tmp
bin-x86_64-efi/blib.a(librm.o): in function `pm_esp':
(.data.pm_esp+0x0): relocation truncated to fit: R_X86_64_32 against symbol `_estack' defined in .stack section in bin-x86_64-efi/blib.a(stack.o)
bin-x86_64-efi/blib.a(librm.o): in function `real_to_prot':
(.text16.real_to_prot+0x1): relocation truncated to fit: R_X86_64_PC16 against symbol `enable_a20' defined in .text16.early section in bin-x86_64-efi/blib.a(liba20.o)
(.text16.real_to_prot+0x8): relocation truncated to fit: R_X86_64_16 against symbol `rm_ds' defined in .text16.data.rm_ds section in bin-x86_64-efi/blib.a(librm.o)
(.text16.real_to_prot+0x22): relocation truncated to fit: R_X86_64_16 against `.bss16.rm_virt_addrs'
(.text16.real_to_prot+0x2e): relocation truncated to fit: R_X86_64_16 against `.bss16.rm_virt_addrs'
(.text16.real_to_prot+0x33): relocation truncated to fit: R_X86_64_16 against `.bss16.rm_virt_addrs'
(.text16.real_to_prot+0x39): relocation truncated to fit: R_X86_64_16 against `.data16.gdt'
(.text16.real_to_prot+0x58): relocation truncated to fit: R_X86_64_32 against `.text.real_to_prot'
bin-x86_64-efi/blib.a(librm.o): in function `r2p_pmode':
(.text.real_to_prot+0x10): relocation truncated to fit: R_X86_64_32 against `.data.pm_esp'
(.text.real_to_prot+0x17): relocation truncated to fit: R_X86_64_32 against symbol `idtr32' defined in .data section in bin-x86_64-efi/blib.a(librm_mgmt.o)
(.text.real_to_prot+0x1f): additional relocation overflows omitted from the output
ld: bin-x86_64-efi/blib.a(hidemem.o): in function `hide_region':
/home/bj/ipxe/ipxe-master-second/src/arch/x86/interface/pcbios/hidemem.c:97: undefined reference to `_textdata'
ld: /home/bj/ipxe/ipxe-master-second/src/arch/x86/interface/pcbios/hidemem.c:98: undefined reference to `_etextdata'
ld: bin-x86_64-efi/blib.a(hidemem.o): in function `hide_etherboot':
/home/bj/ipxe/ipxe-master-second/src/arch/x86/interface/pcbios/hidemem.c:158: undefined reference to `_textdata'
ld: /home/bj/ipxe/ipxe-master-second/src/arch/x86/interface/pcbios/hidemem.c:172: undefined reference to `_data16_memsz'
ld: /home/bj/ipxe/ipxe-master-second/src/arch/x86/interface/pcbios/hidemem.c:171: undefined reference to `_text16_memsz'
ld: bin-x86_64-efi/blib.a(pxe_entry.o): in function `pxe_segments':
(.text16.data+0x26): undefined reference to `_data16_memsz'
ld: (.text16.data+0x2e): undefined reference to `_data16_memsz'
ld: (.text16.data+0x36): undefined reference to `_text16_memsz'
ld: (.text16.data+0x3e): undefined reference to `_text16_memsz'
ld: bin-x86_64-efi/blib.a(pxe_entry.o): in function `pxenv':
(.text16.data+0x76): undefined reference to `_data16_memsz'
ld: (.text16.data+0x82): undefined reference to `_data16_memsz'
ld: (.text16.data+0x86): undefined reference to `_text16_memsz'
ld: bin-x86_64-efi/ipxe.efi.tmp: hidden symbol `_textdata' isn't defined
ld: final link failed: bad value
make: *** [Makefile.housekeeping:1219: bin-x86_64-efi/ipxe.efi.tmp] Fehler 1
rm bin-x86_64-efi/version.ipxe.efi.o


RE: Compiling problem - mcb30 - 2021-05-12 15:24

Quote:I edited some configfiles to enable features.

You have tried to enable some BIOS-only features on your UEFI build.

Michael


RE: Compiling problem - captainipxe - 2021-05-14 08:00

Thank you for the feedback! That info helped me to find the right way.

After some hours everything works now. I compiled a new efi and kpxe file with my settings. Even the Acer notebooks are starting now.

I wanna say a big thanks to the developers here. iPXE is really awesome! Continue the great work!