I'm building from 7.9 version of the book, I built llvm with clang but I'm not able to compile simple programs by clang.
I bieleve the problem is the default target in clang is different than my lfs target
Code:
root@lfs://usr/lib64/gcc# clang --version
clang version 3.8.1 (tags/RELEASE_381/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
However my gcc target is:
Code:
/usr/lib64/gcc/x86_64-lfs-linux/5.3.0/
I can compile simple programs by clang with:
Code:
clang --target=x86_64-lfs-linux foo.c
My question is how to compile llvm with default target name x86_64-lfs-linux
I tried -DLLVM_TARGETS_TO_BUILD="x86_64-lfs-linux;AMDGPU" but doesn't compile.
Thanks you