[cfe-dev] --gcc-toolchain (GCC_INSTALL_PREFIX) and --prefix(-B)

Hubert Tong via cfe-dev cfe-dev at lists.llvm.org
Thu Mar 4 07:21:21 PST 2021


On Thu, Mar 4, 2021 at 10:04 AM Hubert Tong <
hubert.reinterpretcast at gmail.com> wrote:

> Also, --prefix doesn't help to pick up the GCC header and library paths
>

Seems that it might do the library paths, but not the header paths:
$ 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"); }' -###
clang version 13.0.0
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /data1/hstong.local/wybuild/./build/bootstrap/stage1/build/bin
 "/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" "-"
 "/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"
 "/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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210304/d17966de/attachment.html>


More information about the cfe-dev mailing list