[Buildroot] [PATCH v6 1/4] infra: add support for MIPS NaN

Vicente Olivert Riera Vincent.Riera at imgtec.com
Mon Jul 17 12:03:05 UTC 2017


Hello Thomas,

On 17/07/17 10:34, Thomas Petazzoni wrote:
> Hello,
> 
> On Sun, 16 Jul 2017 16:40:00 +0200, Thomas Petazzoni wrote:
> 
>> Applied to master, thanks!
> 
> This patch is causing some build failures with external toolchains:
> 
>   http://autobuild.buildroot.net/results/ca1/ca1b769709f2566789e0030221c6837af95459f3/build-end.log
> 
>   http://autobuild.buildroot.net/results/970/9700c17425c9a10e4f0b72a0932268274068e64a/build-end.log
> 
> Is it because the gcc of this external toolchain is too old ?

Yes, the -mnan= option was introduced in gcc 4.9.0 by this commit:

0bd32132d471995f3e333138363d1d928a9dde60

The gcc of that external toolchain is 4.8.2.

> What can we do about this ?

I guess we could use an option called BR2_GCC_SUPPORTS_MNAN in order to
avoid adding the -mnan option to the CFLAGS and to the tc-wrapper if the
external toolchain hasn't selected that option. For internal toolchain,
since the oldest gcc version we support is 4.9.4, then it should be
always selected.

Vincent

> 
> Best regards,
> 
> Thomas
> 



More information about the buildroot mailing list