[ipxe-devel] Several build errors

brent s. bts at square-r00t.net
Sat Mar 10 17:59:40 UTC 2018


On 12/04/2017 07:40 PM, Michael Brown wrote:
> On 21/11/17 03:29, brent s. wrote:
>> for wimboot, there's a fairly large amount of these:
>>
>> main.i386.s:470: Error: 8-byte relocation cannot be applied to 4-byte
>> field
>> make: *** [Makefile:127: main.i386.x86_64.raw.o] Error 1
> 
> Does the build succeed if you do a straightforward
> 
>   git clone http://git.ipxe.org/wimboot.git
>   cd wimboot/src
>   make
> 
> I don't have an Arch system available, but the build succeeds on a clean
> Fedora 27 with gcc 7.2.1, as well as on my usual gcc 6.3.1 system.
> 
> Michael

Oh my word. I am so sorry I dropped the ball on this.

No, it doesn't build in a straightforward clone and make as outlined above.

It appears that something along these lines:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462003

may be related; I've looked at bugs in other projects[0] and they all
seem to concur that it's sometimes necessary to add --32 to the
compiler's invocation in these instances.

If it'd help any, I can provide a clean full-virt environment you can
shell into to try to replicate. If this would help, feel free to email
me off-list.


[0] "8-byte relocation cannot be applied to 4-byte field" search term in
google (incl. quotes)

-- 
brent saner
https://square-r00t.net/
GPG info: https://square-r00t.net/gpg-info

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20180310/7034a440/attachment.sig>


More information about the ipxe-devel mailing list