https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109522
Bug ID: 109522
Summary: Spurious "cc1: error: no include path in which to
search for stdc-predef.h" building a cross compiler
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: xry111 at gcc dot gnu.org
Target Milestone: ---
Build a cross compiler (with target libc not installed yet):
../gcc/configure --target=loongarch64-linux-gnu --disable-multilib
--with-system-zlib && make gcc
Then a spurious message is outputted for macro_list:
echo | /home/xry111/git-repos/gcc-la/./gcc/xgcc
-B/home/xry111/git-repos/gcc-la/./gcc/ -E -dM - | \
sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
-e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
sort -u > tmp-macro_list
cc1: error: no include path in which to search for stdc-predef.h
/bin/sh ../../gcc/gcc/../move-if-change tmp-macro_list macro_list
Though the macro_list file is created successfully, the message can lead people
to think something is wrong.