[cfe-users] C/C++ system include dirs when cross-compiling

Jeffrey Walton via cfe-users cfe-users at lists.llvm.org
Thu Mar 31 10:56:48 PDT 2016

>> We were working around the broken C++ header includes by specifically
>> calling them out with -I. See the comment "Fix C++ header paths for
>> Ubuntu" at
>> https://github.com/weidai11/cryptopp/blob/master/setenv-embedded.sh#L96.
> That's what I did as well to work around.
>> ARM's "GCC ARM Embedded Tools" works as expected. Its maintained by
>> ARM employees. Also see the PPA at
>> https://launchpad.net/gcc-arm-embedded.
> Yeah, but is the problem clang not looking into the right paths or
> gcc-toolchains having changed their layouts. Comparing older
> gcc-toolchains I had in my attic it seems that clang is not looking hard
> enough.

It sounds like a Clang bug. If you can reduce it to a minimal test
case, consider filing a bug report.


More information about the cfe-users mailing list