https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81497
Ivan Nazarenko <ivan.nazarenko at uol dot com.br> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ivan.nazarenko at uol dot com.br Component|target |regression Known to work| |6.4.0 Known to fail| |7.1.0 --- Comment #1 from Ivan Nazarenko <ivan.nazarenko at uol dot com.br> --- The following code: ############### #include <arm_acle.h> int main() {return 0; } ############### does not cross-compile to ARM architecture on 7.1.0 and emits the following errors: $ ./arm-linux-g++ ~/teste.cpp In file included from /home/ivan/teste.cpp:1:0: /home/ivan/buildroot-git2/buildroot/output/host/lib/gcc/arm-buildroot-linux-musleabihf/7.1.0/include/arm_acle.h: In function ‘void __arm_ldc(unsigned int, unsigned int, const void*)’: /home/ivan/buildroot-git2/buildroot/output/host/lib/gcc/arm-buildroot-linux-musleabihf/7.1.0/include/arm_acle.h:48:49: error: invalid conversion from ‘const void*’ to ‘const int*’ [-fpermissive] return __builtin_arm_ldc (__coproc, __CRd, __p); ^ <built-in>: note: initializing argument 3 of ‘void __builtin_arm_ldc(unsigned int, unsigned int, const int*)’ /home/ivan/buildroot-git2/buildroot/output/host/lib/gcc/arm-buildroot-linux-musleabihf/7.1.0/include/arm_acle.h: In function ‘void __arm_ldcl(unsigned int, unsigned int, const void*)’: /home/ivan/buildroot-git2/buildroot/output/host/lib/gcc/arm-buildroot-linux-musleabihf/7.1.0/include/arm_acle.h:55:50: error: invalid conversion from ‘const void*’ to ‘const int*’ [-fpermissive] return __builtin_arm_ldcl (__coproc, __CRd, __p); ... and so on, similar errors, 8 in total. Verifying the latest arm_acle.h from git suggest that this problem is still present. as asked from the "reporting bug" procedure: $ ./arm-linux-g++ -v Using built-in specs. COLLECT_GCC=/home/ivan/buildroot-git2/buildroot/output/host/bin/arm-linux-g++.br_real COLLECT_LTO_WRAPPER=/home/ivan/buildroot-git2/buildroot/output/host/libexec/gcc/arm-buildroot-linux-musleabihf/7.1.0/lto-wrapper Target: arm-buildroot-linux-musleabihf Configured with: ./configure --prefix=/home/ivan/buildroot-git2/buildroot/output/host --sysconfdir=/home/ivan/buildroot-git2/buildroot/output/host/etc --enable-static --target=arm-buildroot-linux-musleabihf --with-sysroot=/home/ivan/buildroot-git2/buildroot/output/host/arm-buildroot-linux-musleabihf/sysroot --disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --with-gmp=/home/ivan/buildroot-git2/buildroot/output/host --with-mpc=/home/ivan/buildroot-git2/buildroot/output/host --with-mpfr=/home/ivan/buildroot-git2/buildroot/output/host --with-pkgversion='Buildroot 2017.08-git-01191-g9c542ba' --with-bugurl=http://bugs.buildroot.net/ --disable-libmpx --disable-libquadmath --disable-libsanitizer --enable-tls --enable-plugins --enable-lto --disable-libmudflap --enable-threads --without-isl --without-cloog --disable-decimal-float --with-abi=aapcs-linux --with-cpu=cortex-a53 --with-fpu=neon-vfpv4 --with-float=hard --with-mode=arm --enable-languages=c,c++,fortran --with-build-time-tools=/home/ivan/buildroot-git2/buildroot/output/host/arm-buildroot-linux-musleabihf/bin --enable-shared --enable-libgomp Thread model: posix gcc version 7.1.0 (Buildroot 2017.08-git-01191-g9c542ba)