[llvm-dev] Build Clang/LLVM for AVR

Ayke van Laethem via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 25 05:15:51 PDT 2020

>   In file included from main.cpp:1:
>   In file included from /usr/local/lib/clang/11.0.0/include/stdint.h:52:
>   /usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h'
> file not found
>   #include <bits/libc-header-start.h>
>            ^~~~~~~~~~~~~~~~~~~~~~~~~~
>   1 error generated.

I had the same issue initially. The problem here is that it tries to
include /usr/include/stdint.h, which it should not because that's the
header for the host system not the AVR. To work around this you can use the
-nostdlibinc flag.

See: https://bugs.llvm.org/show_bug.cgi?id=39210
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200325/3168da7b/attachment.html>

More information about the llvm-dev mailing list