Re: emulators/qemu-user-static linker error on 13-CURRENT r358890

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Thu, 12 Mar 2020 22:03:14 +0100
On 12 Mar 2020, at 15:35, Warner Losh <imp_at_bsdimp.com> wrote:
> 
> On Thu, Mar 12, 2020 at 8:24 AM Glen Barber <gjb_at_freebsd.org> wrote:
>> 13-CURRENT aarch64 GENERIC builds failed this week due to the dependent
>> port emulators/qemu-user-static failing to build, which is used by the
>> targets that create the cloud provider images (EC2, GCE, etc.).
>> 
>> The error output from the port build is:
>> 
>> ===>  Configuring for qemu-user-static-2.11.50.g20191211_3
>> 
>> ERROR: We need to link the QEMU user mode binaries at a
>>       specific text address. Unfortunately your linker
>>       doesn't support either the -Ttext-segment option or
>>       printing the default linker script with --verbose.
>>       If you don't want the user mode binaries, pass the
>>       --disable-user option to configure.
>> 
>> The machine was upgraded yesterday from r356986 to r358890, and there
>> does not seem to be any relevant change to the port.
>> 
>> Any ideas?
> 
> Force it to use ld.bfd?  This may be lld fallout.

Indeed it is due to lld 10.0.0.  For the emulators/qemu-sbruno port,
which is the master for the qemu-user-static port, I have submitted a
fix in https://bugs.freebsd.org/244772.

Fixes for other qemu ports:

https://bugs.freebsd.org/244768 (qemu-cheri)
https://bugs.freebsd.org/244769 (qemu-devel)
https://bugs.freebsd.org/244770 (qemu)
https://bugs.freebsd.org/244771 (qemu-powernv)
https://bugs.freebsd.org/244773 (qemu30)
https://bugs.freebsd.org/244774 (qemu31)
https://bugs.freebsd.org/244775 (qemu40)

And while typing this, I see there is yet *another* qemu port, namely
qemu-user-static-devel.

-Dimitry

P.S.: WTF do we have so many qemu ports? :)


Received on Thu Mar 12 2020 - 20:03:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC