[cfe-dev] [clang][main] Does not detect embed gcc toolchain
Andi-Bogdan Postelnicu via cfe-dev
cfe-dev at lists.llvm.org
Thu Apr 8 06:25:36 PDT 2021
Hello,
I’m building clang main, revision b785e03612d76145c58cb31b6fd6911a5e41e8e3, and I’m adding to lib folder gcc toolchain 7.4.0, so the folder layout is:
clang/lib/gcc/x86_64-unknown-linux-gnu/7.4.0
Unfortunately when I want to build on linux debian and I do a verbose build clang doesn’t seem able to find the gcc version that I’ve shipped it with:
clang version 13.0.0 (E4V8ZoJsR3qTRv_zx8MEpA)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/someuser/clang/clang/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Selected multilib: .;@m64
Doing the same thing but building the official clang 11.0.1 I’m seeing normal results:
clang version 11.0.1 (NZ4C_ZaZTQmrQM25NeOO0Q)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/someuser/mozilla/clang/clang-11/clang/bin
Found candidate GCC installation: /home/someuser/clang/clang-11/clang/bin/../lib/gcc/x86_64-unknown-linux-gnu/7.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.2
Selected GCC installation: /home/someuser/clang/clang-11/clang/bin/../lib/gcc/x86_64-unknown-linux-gnu/7.4.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
Has anyone confronted with this lately?
Many thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210408/42528637/attachment.html>
More information about the cfe-dev
mailing list