[Buildroot] [PATCH 1/2] package/gmpc: needs -lm

Arnout Vandecappelle arnout at mind.be
Sun Nov 17 19:45:19 UTC 2019



On 08/11/2019 22:28, Peter Seiderer wrote:
> Hello Fabrice, Thomas,
> 
> On Fri, 8 Nov 2019 22:04:42 +0100, Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:
> 
>> On Tue, 29 Oct 2019 22:40:45 +0100
>> Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:
>>
>>> gmpc forgets to link with -lm:
>>>
>>> /home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips-linux-gnu/5.3.0/../../../../mips-linux-gnu/bin/ld: GmpcVolume.o: undefined reference to symbol 'ceil@@GLIBC_2.0'
>>> /home/buildroot/autobuild/instance-2/output-1/host/mips64el-buildroot-linux-gnu/sysroot/soft-float/el/lib64/libm.so.6: error adding symbols: DSO missing from command line
>>>
>>> Fixes:
>>>  - http://autobuild.buildroot.org/results/a79e0487135ad90530595d5c6ecc32f9c8cea7c4
>>>
>>> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
>>
>> We need to understand why this is happening now. This package has not
>> been modified since July 2017, but suddenly, on October 21, 2019, it
>> started failing like this. Why? Was there a change in one of the
>> dependencies, that is no longer linked with libm, and that causes this
>> problem ?

 It started because of RELRO, I think.

> 
> Maybe the same cause/problem as in the libv4l case regarding libatomic,
> evaluating vs. not evaluationg the *.la files (see [1])?

 And this one because of PIC_PIE.

 Regards,
 Arnout

> 
> Regards,
> Peter
> 
> [1] http://lists.busybox.net/pipermail/buildroot/2019-October/264928.html
> 
>>
>> I think I already asked this in the past: when you fix an issue, don't
>> just fix the issue, but explain why the issue is happening, especially
>> in situations like these.
>>
>> Thanks!
>>
>> Thomas
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 



More information about the buildroot mailing list