Dear GCC Gurus,
We are compiling a GCC using "pre-existing" GCC and we want to have control over the order of the system directories that are searched particularly we want /usr/include to be searched before others. We are not in a position to keep adding -I/usr/include to our build scripts. also -isystem /usr/include will anyway ignore it as its a part of the built-in list. Please refer to lines 15-21 in the information below: 1 $ ~/gcc/bin/cpp -v /dev/null -o /dev/null 2 Using built-in specs. 3 COLLECT_GCC=/home/builder/alpine-custom/mnt/builder/gcc/bin/cpp 4 Target: aarch64-unknown-linux-gnu 5 Configured with: ../configure --prefix=/mnt/builder/gcc --disable-bootstrap --enable-languages=c,c++ 6 Thread model: posix 7 Supported LTO compression algorithms: zlib 8 gcc version 13.2.1 20240309 (GCC) 9 COLLECT_GCC_OPTIONS='-E' '-v' '-o' '/dev/null' '-mlittle-endian' '-mabi=lp64' 10 /mnt/builder/gcc/bin/../libexec/gcc/aarch64-unknown-linux-gnu/13.2.1/cc1 -E -quiet -v -iprefix /mnt/builder/gcc/bin/../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/ /dev/null -o /dev/null -mlittle-endian -mabi=lp64 -dumpbase null 11 ignoring nonexistent directory "/mnt/builder/gcc/bin/../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/../../../../aarch64-unknown-linux-gnu/include" 12 ignoring duplicate directory "/mnt/builder/gcc/bin/../lib/gcc/../../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/include" 13 ignoring duplicate directory "/mnt/builder/gcc/bin/../lib/gcc/../../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/include-fixed" 14 ignoring nonexistent directory "/mnt/builder/gcc/bin/../lib/gcc/../../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/../../../../aarch64-unknown-linux-gnu/include" 15 #include "..." search starts here: 16 #include <...> search starts here: 17 /mnt/builder/gcc/bin/../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/include 18 /mnt/builder/gcc/bin/../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/include-fixed 19 /usr/local/include 20 /mnt/builder/gcc/bin/../lib/gcc/../../include 21 /usr/include 22 End of search list. 23 COMPILER_PATH=/mnt/builder/gcc/bin/../libexec/gcc/aarch64-unknown-linux-gnu/13.2.1/:/mnt/builder/gcc/bin/../libexec/gcc/ 24 LIBRARY_PATH=/mnt/builder/gcc/bin/../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/:/mnt/builder/gcc/bin/../lib/gcc/:/mnt/builder/gcc/bin/../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/../../../../lib64/:/mnt/builder/gcc/bin/../lib/gcc/aarch64-unknown-linux-gnu/13.2.1/../../../:/lib/:/usr/lib/ 25 COLLECT_GCC_OPTIONS='-E' '-v' '-o' '/dev/null' '-mlittle-endian' '-mabi=lp64' [PS: this is my first post here , apologies in advance for anything awkward ] Regds Rajesh Kumar Mallah. Redgrape Technologies ( https://www.redgrape.tech ) Mobile: 09811255597, Land: 011-49044122 -- Opportunities are usually disguised as hard work, so most people don't recognize them Confidentiality Notice: The information that is transmitted in this message may contain confidential or proprietary material solely belonging to Redgrape Technologies. It is intended only for the person or entity to whom it is addressed, and is not for copying or further distribution. If you have received this message in error, please contact the sender immediately and remove it from your and any other computer. Thank you.