[Buildroot] [PATCH v2 3/6] toolchain: introduce BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100
giulio.benetti at benettiengineering.com
Wed Mar 17 16:57:07 UTC 2021
On 3/14/21 11:05 PM, Thomas Petazzoni wrote:
> On Wed, 10 Mar 2021 10:14:50 +0100
> Giulio Benetti <giulio.benetti at benettiengineering.com> wrote:
>> On OpenRisc binutils it still present ld bug 27100 leading to a package
>> openal to fail building:
>> The bug was already reported and it's been updated:
> How do you know it is this bug? The "final link failed: bad value"
> message is pretty generic.
You're right, that is not the entire message, it's:
CMakeFiles/OpenAL.dir/al/source.cpp.o: pc-relative relocation against
dynamic symbol alSourcePlayv
final link failed: bad value
and that a package's issue. I think I've added by mistake openal failure
as a test-case but it's not.
>Did you actually check that those issues no
> longer appear with binutils 2.36 ?
>> +# https://sourceware.org/bugzilla/show_bug.cgi?id=27100
>> +# Affect toolchains built with binutils 2.33.1 (fixed in binutils 2.36)
>> +config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27100
>> + bool
>> + default y if BR2_or1k && !BR2_BINUTILS_VERSION_2_36_X
> Obviously, an annoying problem is that the BR2_BINUTILS_VERSION_2_36_X
> part of the condition does not take into account external toolchains.
> So for external toolchains that have binutils >= 2.36, we still won't
> be able to build those packages.
> But oh well, for something like OpenRISC, this is perhaps an acceptable
Benetti Engineering sas
More information about the buildroot