After installing libstc++-arm-none-eabi-newlib (4.8.2-16+1) I'm getting:
fatal error: cstddef: No such file or directory
The reason is a mismatch between the compiler looking in
/usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/include/c++/4.8.2
and that the libstc++ package installed the files in
/usr/include/newlib/c++/4.8
That looks totally off but it is only 4.8 that should have been 4.8.2
After installing libstc+ +-arm-none- eabi-newlib (4.8.2-16+1) I'm getting:
fatal error: cstddef: No such file or directory
The reason is a mismatch between the compiler looking in lib/gcc/ arm-none- eabi/4. 8.2/../ ../../arm- none-eabi/ include/ c++/4.8. 2 include/ newlib/ c++/4.8
/usr/
and that the libstc++ package installed the files in
/usr/
That looks totally off but it is only 4.8 that should have been 4.8.2
For the curious among us.
$ ls -l /usr/lib/ gcc/arm- none-eabi/ 4.8.2/. ./../.. /arm-none- eabi/include gcc/arm- none-eabi/ 4.8.2/. ./../.. /arm-none- eabi/include -> /etc/alternativ es/gcc- arm-none- eabi-include
lrwxrwxrwx 1 root root 43 Apr 21 22:54 /usr/lib/
$ ls -l /etc/alternativ es/gcc- arm-none- eabi-include es/gcc- arm-none- eabi-include -> /usr/include/newlib
lrwxrwxrwx 1 root root 19 Apr 21 22:54 /etc/alternativ
$ ls -l /usr/include/ newlib/ c++
total 4
drwxr-xr-x 12 root root 4096 Apr 27 22:17 4.8
As a quick workaround I created a symlink
# ln -s 4.8 /usr/include/ newlib/ c++/4.8. 2
Which of the two packages is configured incorrectly? gcc-arm-none-eabi or libstdc+ +-arm-none- eabi-newlib?