[Android-tools-devel] Bug#811716: android-platform-frameworks-native: FTBFS with GCC 6: redeclaration of C++ built-in type

Martin Michlmayr tbm at hpe.com
Wed Jan 20 01:38:18 UTC 2016


Package: android-platform-frameworks-native
Version: 21-3
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-redeclaration-builtin

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> g++ -O2 -fPIC -I../../include -I/usr/include/android -include /usr/include/android/arch/linux-x86/AndroidConfig.h -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c -o Looper.o Looper.cpp
> g++ -O2 -fPIC -I../../include -I/usr/include/android -include /usr/include/android/arch/linux-x86/AndroidConfig.h -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c -o PropertyMap.o PropertyMap.cpp
> In file included from ../../include/utils/String8.h:22:0,
>                  from ../../include/utils/PropertyMap.h:21,
>                  from PropertyMap.cpp:22:
> ../../include/utils/Unicode.h:25:18: error: redeclaration of C++ built-in type 'char32_t' [-fpermissive]
>  typedef uint32_t char32_t;
>                   ^~~~~~~~
> 
> ../../include/utils/Unicode.h:26:18: error: redeclaration of C++ built-in type 'char16_t' [-fpermissive]
>  typedef uint16_t char16_t;
>                   ^~~~~~~~
> 
> <builtin>: recipe for target 'PropertyMap.o' failed
> make[2]: *** [PropertyMap.o] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the Android-tools-devel mailing list