help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

arm-none-eabi-toolchain: stdlib.h not found


From: Ekaitz Zarraga
Subject: arm-none-eabi-toolchain: stdlib.h not found
Date: Tue, 05 Sep 2023 18:09:49 +0000

Hi,

If I guix shell to arm-none-eabi-toolchain:

```
Ekaitz@tuxedo ~/projects/TESTS$ guix shell arm-none-eabi-toolchain
```

arm-none-eabi-toolchain can't use cstdlib because:

```
Ekaitz@tuxedo ~/projects/TESTS [env]$ cat a.c
#include <cstdlib>
void operator delete(void *p) { std::free(p); }

Ekaitz@tuxedo ~/projects/TESTS [env]$ arm-none-eabi-g++ a.c
In file included from a.c:1:0:
/gnu/store/6bq6svar4b2mkp2k3laxqqs1nsxykrvf-profile/arm-none-eabi/include/c++/cstdlib:75:15:
 fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
Ekaitz@tuxedo ~/projects/TESTS [env]$
```

But:

```
Ekaitz@tuxedo ~/projects/TESTS [env]$ ls  $CROSS_C_INCLUDE_PATH  | grep stdlib
stdlib.h
```

Ideas?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]