[cfe-dev] Cross compiling with clang (and sysroot support)

Stephen Kelly steveire at gmail.com
Sun May 19 12:16:30 PDT 2013

Tim Northover <t.p.northover at ...> writes:

> Unfortunately, it looks like this is odd enough that Clang won't
> detect it by itself no matter what sysroot you specify. In particular
> it doesn't know anything about "gcc-cross" as a possible location.
> Four options come to mind:
> + Fix clang so that it does try to look in gcc-cross.

I've sent a patch for that.

> + Mess around with your filesystem so that it resembles what Clang is
> searching for (e.g. symlink /usr/lib/gcc-cross/arm-linux-gnueabi to
> /usr/lib/gcc/arm-linux-gnueabi; other things may be needed too but
> there's not enough information to say yet).

This also worked. (If I create the symlinks correctly and use the correct
triple, which I didn't before)



More information about the cfe-dev mailing list