Comment 4 for bug 1293024

Revision history for this message
Kees Bakker (keestux) wrote :

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

For the curious among us.

$ ls -l /usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/include
lrwxrwxrwx 1 root root 43 Apr 21 22:54 /usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/include -> /etc/alternatives/gcc-arm-none-eabi-include

$ ls -l /etc/alternatives/gcc-arm-none-eabi-include
lrwxrwxrwx 1 root root 19 Apr 21 22:54 /etc/alternatives/gcc-arm-none-eabi-include -> /usr/include/newlib

$ 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?