<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 4, 2021 at 10:04 AM Hubert Tong <<a href="mailto:hubert.reinterpretcast@gmail.com">hubert.reinterpretcast@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote">Also, <span style="font-family:monospace">--prefix</span> doesn't help to pick up the GCC header and library paths</div></div></blockquote><div><br></div><div>Seems that it might do the library paths, but not the header paths:</div><div><span style="font-family:monospace">$ clang++ -fuse-ld=ld --prefix=/opt/rh/devtoolset-7/root -xc - -fno-integrated-as <<<'#include <stdio.h>'$'\n''int main(void) { printf("Hello, world!\n"); }' -###<br>clang version 13.0.0<br>Target: powerpc64le-unknown-linux-gnu<br>Thread model: posix<br>InstalledDir: /data1/hstong.local/wybuild/./build/bootstrap/stage1/build/bin<br> "/data1/hstong.local/wybuild/build/bootstrap/stage1/build/bin/clang-12" "-cc1" "-triple" "powerpc64le-unknown-linux-gnu" "-S" "-disable-free" "-main-file-name" "-" "-mrelocation-model" "static" "-mframe-pointer=all" "-fmath-errno" "-fno-rounding-math" "-no-integrated-as" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "ppc64le" "-mfloat-abi" "hard" "-target-abi" "elfv2" "-fno-split-dwarf-inlining" "-debugger-tuning=gdb" "-fcoverage-compilation-dir=/data1/hstong.local/wybuild" "-resource-dir" "/data1/hstong.local/wybuild/build/bootstrap/stage1/build/lib/clang/13.0.0" "-internal-isystem" "/data1/hstong.local/wybuild/build/bootstrap/stage1/build/lib/clang/13.0.0/include/ppc_wrappers" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/data1/hstong.local/wybuild/build/bootstrap/stage1/build/lib/clang/13.0.0/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir=/data1/hstong.local/wybuild" "-ferror-limit" "19" "-fno-signed-char" "-fgnuc-version=4.2.1" "-fcolor-diagnostics" "-o" "/tmp/--dbf5fb.s" "-x" "c" "-"<br> "/opt/rh/devtoolset-7/root/lib/gcc/ppc64le-redhat-linux/7/../../../../bin/as" "-a64" "-mppc64" "-mlittle-endian" "-mpower8" "-o" "/tmp/--d53b10.o" "/tmp/--dbf5fb.s"<br> "/opt/rh/devtoolset-7/root/lib/gcc/ppc64le-redhat-linux/7/../../../../bin/ld" "--hash-style=gnu" "--eh-frame-hdr" "-m" "elf64lppc" "-dynamic-linker" "/lib64/ld64.so.2" "-o" "a.out" "/lib/../lib64/crt1.o" "/lib/../lib64/crti.o" "/opt/rh/devtoolset-7/root/lib/gcc/ppc64le-redhat-linux/7/crtbegin.o" "-L/opt/rh/devtoolset-7/root/lib/gcc/ppc64le-redhat-linux/7" "-L/opt/rh/devtoolset-7/root/lib/gcc/ppc64le-redhat-linux/7/../../../../lib64" "-L/lib/powerpc64le-linux-gnu" "-L/lib/../lib64" "-L/usr/lib/powerpc64le-linux-gnu" "-L/usr/lib/../lib64" "-L/opt/rh/devtoolset-7/root/lib/gcc/ppc64le-redhat-linux/7/../../.." "-L/data1/hstong.local/wybuild/build/bootstrap/stage1/build/bin/../lib" "-L/lib" "-L/usr/lib" "/tmp/--d53b10.o" "-lstdc++" "-lm" "-lgcc_s" "-lgcc" "-lc" "-lgcc_s" "-lgcc" "/opt/rh/devtoolset-7/root/lib/gcc/ppc64le-redhat-linux/7/crtend.o" "/lib/../lib64/crtn.o"</span></div><div><br></div></div></div>