[ipxe-devel] ipxe.efi does not compile (hidden symbol _etextdata isn't defined)

Christian Nilsson nikize at gmail.com
Tue Mar 28 18:45:21 UTC 2017


Official repo as stated on http://ipxe.org/download is via
git://git.ipxe.org/ipxe.git (which you are using even if you write
GitHub)
doing clean checkout (to empty directory) as such:
git clone git://git.ipxe.org/ipxe.git ipxetest
cd ipxetest/src
make -j16 bin-x86_64-efi/ipxe.efi

Works without any issues for me.

So back to your config issue you have local changes otherwise you
should not be able to get any such errors.
check with git status, and git diff origin/master

Also check that all your files in src/config/local is zero bytes (or
remove them since they will be recreated on build)

On Tue, Mar 28, 2017 at 8:36 PM, Jean Weisbuch <jean at phpnet.org> wrote:
> There isnt any customization as its (re)based on the GitHub HEAD just before
> the compilation.
>
> The same error happens even if i undef or define IMAGE_COMBOOT on
> config/general.h.
>
>
>
> Le 28/03/2017 à 20:03, Michael Brown a écrit :
>>
>> On 28/03/17 20:40, Jean Weisbuch wrote:
>>>
>>> While undionly.kpxe and ipxe.lkrn are compiling without any issue, i
>>> cannot compile ipxe.efi using the latest code from GitHub on a Debian
>>> Squeeze amd64 :
>>> <snip>
>>>     bin-x86_64-efi/blib.a(com32_wrapper.o): In function
>>>     `com32_farcall_wrapper':
>>>     (.text+0x1): relocation truncated to fit: R_X86_64_32 against symbol
>>
>>
>> You are trying to enable IMAGE_COMBOOT, which is conceptually impossible
>> on EFI since it's intrinsically a BIOS-only format.
>>
>>> Is there any specific parameters to set on general.h to compile the efi
>>> binary?
>>
>>
>> No.  If you check out a clean copy of the iPXE code, then a sensible set
>> of default targets (including bin-x86_64-efi/ipxe.efi) will build correctly.
>>
>> As a general rule for everyone (on pretty much any codebase): if you get a
>> build failure then the first thing you should try is removing any build
>> customisations you have made.
>>
>> Michael
>
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel



More information about the ipxe-devel mailing list