https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64486
Bug ID: 64486 Summary: Failure building cross compiler for arm-eabi (system.ads) Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: simon at pushface dot org Both GCC 4.9.1 and GNAT GPL 2014 fail to build a cross-compiler to arm-eabi based on gcc-5-20141228. gcc -c -g -O2 -gnatpg -gnata -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -I../../gcc-5-20141228/gcc/ada -I../../gcc-5-20141228/gcc/ada/gcc-interface ../../gcc-5-20141228/gcc/ada/system.ads -o ada/system.o system.ads:53:11: warning: unrecognized pragma "No_Elaboration_Code_All" make[2]: *** [ada/system.o] Error 1 The configuration command was $ ../gcc-5-20141228/configure --build=x86_64-apple-darwin13 --target=arm-eabi --prefix=/Users/simon/local-arm --with-stage1-libs=no --with-stage1-ldflags=no --with-cpu=cortex-m4 --with-fpu=fpv4-sp-d16 --with-float=hard --with-mode=thumb --enable-interwork --enable-multilib --enable-languages=c,c++,ada --with-system-zlib --with-newlib --with-libgloss --disable-shared --disable-nls --disable-libada --with-gnu-as --with-gnu-ld --with-bugurl=URL:mailto:si...@pushface.org I worked round by wrapping the offending line in pragma Warnings (Off), pragma Warnings (On).