Re: world linker error "can't create dynamic relocation R_AARCH64_LDST64_ABS_LO12_NC against symbol: __stderrp in readonly segment"

Greg V via freebsd-arm <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
> On 25 Nov 2021, at 04:38, Bjoern A. Zeeb <[email protected]> wrote:
> 
> Hi,
> 
> I am trying to update one machine (also across the LLVM update) and I get the below error.
> Anyone any ideas?
> 
> 
> ld: error: relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used against symbol __stderrp; recompile with -fPIC
>>>> defined in base14-251054.3ede04c78c7c726ed79a39d22c65a58d0ecc5d00/arm64.aarch64/tmp/lib/libc.so.7
>>>> referenced by assert.c
>>>>              assert.o:(libspl_assertf) in archive base14-251054.3ede04c78c7c726ed79a39d22c65a58d0ecc5d00/arm64.aarch64/tmp/usr/lib/libspl.a

That would be https://reviews.freebsd.org/D32521#739094 – this was fixed in the final version of the patch that actually was committed though.

And I’ve just checked that it all builds on aarch64 too. Works for me, and presumably for anyone else building world in the last 10 days or so. So that’s weird. Maybe some leftover /usr/obj state somehow causing issues or something?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.