sbungartz / cooja-docker

Docker container to run the Contiki Cooja simulator
https://hub.docker.com/r/sbungartz/cooja
MIT License
10 stars 1 forks source link

MSP430 compiler issue #2

Open vSecDev opened 2 years ago

vSecDev commented 2 years ago

Hi again! I've come across another issue that seems to happen only when I run the examples in cooja. When I compile and run examples from the terminal, they seem to work OK, I'm getting the expected output. Within cooja, however, I'm getting the errors below. (MSP430 GCC is installed.) I suspected it is a reference to the compiler's location and tried to fix the issue by updating the compilerpath but with no success.

`

make nullnet-unicast.sky TARGET=sky make: msp430-gcc: No such file or directory make: msp430-gcc: No such file or directory /bin/sh: 1: msp430-gcc: not found /bin/sh: 1: msp430-gcc: not found /bin/sh: 1: test: -lt: unexpected operator MKDIR build/sky/obj CC ../../os/contiki-main.c make: msp430-gcc: No such file or directory make: *** [../../Makefile.include:366: build/sky/obj/contiki-main.o] Error 127 Process returned error code 2 `

Any pointers would be much appreciated.

Thanks!

sbungartz commented 2 years ago

Hi, I have not dealt with Contiki or Cooja since 2018, so I'm a bit unsure about what's going on. Does it try to compile the code within the docker container? If so, you would probably need to install any dependencies there, by creating your own Dockerfile that either is a copy of the one in this repo or uses FROM to start from this and change it. You can look here to find out more about Dockerfiles, how to write your own and build an image from it here: https://docs.docker.com/engine/reference/builder