I’m sure that this is a case of pilot error, but… I’ve just, like 20 minutes ago, installed the local toolchain to run on my Mint 17 desktop. I’ve followed the instructions on the spark/core-firmware page on GitHub. I go into the core-firmware/build directory and invoke make. When it attempts to compile the first file, it complains about stdlib.h not being available.
If I do a find at the top of the Spark directory (two levels up from build), I don’t see stdlib.h. I’m assuming that the stdlib.h file is meant to be pulled from the toolchain include path. But, looking at the output of the make command, I don’t see an entry in the include path that is outside of the spark tree.
johnbo@k100rs ~/Projects/Spark/core-firmware/build $ make Building core-common-lib Building file: ../CC3000_Host_Driver/cc3000_common.c Invoking: ARM GCC C Compiler mkdir -p obj/CC3000_Host_Driver/ arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -I../CC3000_Host_Driver -I../SPARK_Firmware_Driver/inc -I../STM32F10x_StdPeriph_Driver/inc -I../STM32_USB-FS-Device_Driver/inc -I../CMSIS/Include -I../CMSIS/Device/ST/STM32F10x/Include -I. -ffunction-sections -Wall -Wno-switch -fmessage-length=0 -MD -MP -MF obj/CC3000_Host_Driver/cc3000_common.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -DRELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3000_common.o ../CC3000_Host_Driver/cc3000_common.c In file included from ../CC3000_Host_Driver/cc3000_common.c:46:0: ../CC3000_Host_Driver/cc3000_common.h:43:20: fatal error: stdlib.h: No such file or directory #include <stdlib.h> ^ compilation terminated. make: *** [obj/CC3000_Host_Driver/cc3000_common.o] Error 1 make: *** [check_external_deps] Error 2 johnbo@k100rs ~/Projects/Spark/core-firmware/build $
Is there a set of environment variables that I’m supposed to define to give the compiler a path to the proper stdlib.h? I’m assuming that there are different stdlih.c files for the native compiler vs the arm version of the compiler.
This is probably something really obvious, but its been a loooonnnnnggg time since I built code for anything other than a native app.
Thanks in advance,