[Buildroot] [PATCH] fdk-aac: fix build with GCC 6
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun May 1 20:35:20 UTC 2016
Hello,
On Sun, 1 May 2016 11:18:08 +0200, Jörg Krause wrote:
> GCC 6 defaults to -std=gnu++14 instead of -std=gnu++98. The C++11 standard does
> not allow "narrowing conversions" which is why building fdk-aac with GCC 6
> fails:
>
> libAACenc/src/aacEnc_rom.cpp:661:1: error: narrowing conversion of '2180108801u' from 'unsigned int' to 'FIXP_DBL {aka long int}' inside { } [-Wnarrowing]
>
> Use '-std=gnu++98' as suggested by "Porting to GCC 6" [1].
>
> [1] https://gcc.gnu.org/gcc-6/porting_to.html
>
> Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> ---
> package/fdk-aac/fdk-aac.mk | 3 +++
> 1 file changed, 3 insertions(+)
Applied to master, but please report the bug upstream so that they fix
in their source code or build system. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list