[cfe-dev] Cross-compiling with Clang and LLD fails trying to call GCC

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Thu Aug 16 05:13:01 PDT 2018


On Wed, Aug 15, 2018 at 01:57:55PM -0400, waddlesplash via cfe-dev wrote:
> The Linux box I've been attempting this on does not have any GCC
> installed at all, neither Ubuntu's GCC nor our cross-tools GCC. But
> when I get to the first link that uses Clang instead of LLD directly
> (most kernel-related things invoke the linker directly), this happens:
> 
> clang: error: unable to execute command: Executable "gcc" doesn't exist!
> clang: error: linker (via gcc) command failed with exit code 1 (use -v
> to see invocation)

There is a fallback toolchain implementation that depends on GCC for
linking. You are very likely hitting that one.

Joerg



More information about the cfe-dev mailing list