https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85289
Bug ID: 85289 Summary: Fails to build libgcc.a multilib for v8-m.base/nofp Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: simon at pushface dot org Target Milestone: --- Host: x86_64-apple-darwin15 Target: arm-eabi Build: x86_64-apple-darwin15 This is with r258387 (20180309); updated to today, r259222, same problem. Was OK at 20180207. I’m wondering whether the change at r257904 could be the reason? I’ve filed this as a target issue, was that right? it does stop the compiler build. Configured with --build=x86_64-apple-darwin15 \ --disable-libada \ --disable-libcc1 \ --disable-libcilkrts \ --disable-libffi \ --disable-libgomp \ --disable-libmudflap \ --disable-libquadmath \ --disable-libsanitizer \ --disable-libssp \ --disable-libstdcxx-pch \ --disable-lto \ --disable-nls \ --disable-shared \ --disable-threads \ --disable-tls \ --enable-languages=c,ada \ --prefix=/Volumes/Miscellaneous/arm/gcc-8.0.0 \ --target=arm-eabi \ --with-gnu-as \ --with-gnu-ld \ --with-libgloss \ --with-newlib \ --with-stage1-ldflags='-static-libstdc++ -static-libgcc -Wl,-headerpad_max_install_names' \ --with-system-zlib \ --without-libiconv-prefix \ --with-multilib-list=rmprofile and failed with /Volumes/Miscellaneous/tmp/arm/gcc/./gcc/xgcc -B/Volumes/Miscellaneous/tmp/arm/gcc/./gcc/ -B/Volumes/Miscellaneous/arm/gcc-8.0.0/arm-eabi/bin/ -B/Volumes/Miscellaneous/arm/gcc-8.0.0/arm-eabi/lib/ -isystem /Volumes/Miscellaneous/arm/gcc-8.0.0/arm-eabi/include -isystem /Volumes/Miscellaneous/arm/gcc-8.0.0/arm-eabi/sys-include -g -O2 -mthumb -march=armv8-m.base -mfloat-abi=soft -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fno-inline -I. -I. -I../../../../.././gcc -I/Volumes/Miscellaneous/tmp/gcc/libgcc -I/Volumes/Miscellaneous/tmp/gcc/libgcc/. -I/Volumes/Miscellaneous/tmp/gcc/libgcc/../gcc -I/Volumes/Miscellaneous/tmp/gcc/libgcc/../include -o _thumb1_case_shi.o -MT _thumb1_case_shi.o -MD -MP -MF _thumb1_case_shi.dep -DL_thumb1_case_shi -xassembler-with-cpp -c /Volumes/Miscellaneous/tmp/gcc/libgcc/config/arm/lib1funcs.S -include _thumb1_case_shi.vis In file included from /Volumes/Miscellaneous/tmp/arm/gcc/gcc/include/arm_cmse.h:38, from /Volumes/Miscellaneous/tmp/gcc/libgcc/config/arm/cmse.c:27: /Volumes/Miscellaneous/tmp/arm/gcc/gcc/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory # include_next <stdint.h> ^~~~~~~~~~ compilation terminated. which means that __STDC_HOSTED__ was defined to 1. This can’t be the case for all multilibs, because the following were built: ./arm-eabi/arm/v5te/hard/libgcc/libgcc.a ./arm-eabi/arm/v5te/softfp/libgcc/libgcc.a ./arm-eabi/libgcc/libgcc.a ./arm-eabi/thumb/nofp/libgcc/libgcc.a ./arm-eabi/thumb/v6-m/nofp/libgcc/libgcc.a ./arm-eabi/thumb/v7/nofp/libgcc/libgcc.a ./arm-eabi/thumb/v7+fp/hard/libgcc/libgcc.a ./arm-eabi/thumb/v7+fp/softfp/libgcc/libgcc.a ./arm-eabi/thumb/v7-m/nofp/libgcc/libgcc.a ./arm-eabi/thumb/v7e-m/nofp/libgcc/libgcc.a ./arm-eabi/thumb/v7e-m+dp/hard/libgcc/libgcc.a ./arm-eabi/thumb/v7e-m+dp/softfp/libgcc/libgcc.a ./arm-eabi/thumb/v7e-m+fp/hard/libgcc/libgcc.a ./arm-eabi/thumb/v7e-m+fp/softfp/libgcc/libgcc.a ./gcc/arm/v5te/hard/libgcc.a ./gcc/arm/v5te/softfp/libgcc.a ./gcc/thumb/nofp/libgcc.a ./gcc/thumb/v6-m/nofp/libgcc.a ./gcc/thumb/v7/nofp/libgcc.a ./gcc/thumb/v7+fp/hard/libgcc.a ./gcc/thumb/v7+fp/softfp/libgcc.a ./gcc/thumb/v7-m/nofp/libgcc.a ./gcc/thumb/v7e-m/nofp/libgcc.a ./gcc/thumb/v7e-m+dp/hard/libgcc.a ./gcc/thumb/v7e-m+dp/softfp/libgcc.a ./gcc/thumb/v7e-m+fp/hard/libgcc.a ./gcc/thumb/v7e-m+fp/softfp/libgcc.a