6 years, 7 months ago.

Linux Manjaro offline compile Error

Hi,

recently I migrated from Ubuntu to Manjaro (ARCH based) and now I'm trying to get the ARM Mbed compile offline. I've installed arm-none-eabi-gcc:

arm-none-eabi-gcc (Arch Repository) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

but when I try to compile using MAKE (from online compiler I've exported like usual (ARM GCC) with all files included and updated) I get this:

[gorazd@1kAh frdm_helloworld_test]$ make
Compile: main.cpp
In file included from ../mbed/./platform/platform.h:23:0,
                 from ../mbed/./mbed.h:55,
                 from ../main.cpp:1:
/usr/arm-none-eabi/include/c++/7.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
make[1]: *** [/home/gorazd/Documents/MBED_Projects/frdm_helloworld_test/Makefile:313: main.o] Error 1
make: *** [Makefile:26: all] Error 2

Any suggestions?

RGDS

1 Answer

6 years, 7 months ago.

Hey Gorazd,

I use Archlinux on my development machine with arm-none-eabi-gcc (gcc_arm in mbed terms). I think you are missing the package `arm-none-eabi-newlib`

For reference I have the following packages installed:

arm-none-eabi-binutils 2.29-1
arm-none-eabi-gcc 7.2.0-1
arm-none-eabi-gdb 8.0.1-1
arm-none-eabi-newlib 2.5.0.20170421-1

Accepted Answer

Hi!

Reinstalling all packages using YAOURT solved the problem. Thank you very much!

Regards.

posted by Gorazd Rosbach 19 Sep 2017