Reputation: 3
I usually work with cooja within Contiki. However, I wanted to test RPL with Contiki-ng.
I successfully installed Contiki-ng on my machine (macOS v10.15 (Catalina)). When I build the examples in the terminal, they build successfully and I can implement then as a native target. However, when I try to compile them to run a cooja simulation I get these errors:
[java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - > make hello-world.sky TARGET=sky
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - MKDIR build/sky/obj
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - CC ../../os/contiki-main.c
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - In file included from ../../arch/cpu/msp430/./msp430-def.h:46:0,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/platform/sky/./contiki-conf.h:12,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki.h:37,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki-main.c:43:
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./legacymsp430.h:62:0: error: "_EINT" redefined
> [-Werror]
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - In file included from
> /usr/local/Cellar/gcc-msp430/4.7.0-20120911_2/lib/gcc/msp430/4.7.0/../../../../msp430/include/in430.h:4:0,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from
> /usr/local/Cellar/gcc-msp430/4.7.0-20120911_2/lib/gcc/msp430/4.7.0/../../../../msp430/include/msp430f1611.h:122,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from
> /usr/local/Cellar/gcc-msp430/4.7.0-20120911_2/lib/gcc/msp430/4.7.0/../../../../msp430/include/msp430.h:165,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/cpu/msp430/./msp430-def.h:45,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/platform/sky/./contiki-conf.h:12,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki.h:37,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki-main.c:43:
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - /usr/local/Cellar/gcc-msp430/4.7.0-20120911_2/lib/gcc/msp430/4.7.0/../../../../msp430/include/intrinsics.h:162:0: note: this is the location of the previous definition
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - In file included from ../../arch/cpu/msp430/./msp430-def.h:46:0,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/platform/sky/./contiki-conf.h:12,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki.h:37,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki-main.c:43:
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./legacymsp430.h:63:0: error: "_DINT" redefined
> [-Werror]
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - In file included from
> /usr/local/Cellar/gcc-msp430/4.7.0-20120911_2/lib/gcc/msp430/4.7.0/../../../../msp430/include/in430.h:4:0,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from
> /usr/local/Cellar/gcc-msp430/4.7.0-20120911_2/lib/gcc/msp430/4.7.0/../../../../msp430/include/msp430f1611.h:122,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from
> /usr/local/Cellar/gcc-msp430/4.7.0-20120911_2/lib/gcc/msp430/4.7.0/../../../../msp430/include/msp430.h:165,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/cpu/msp430/./msp430-def.h:45,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/platform/sky/./contiki-conf.h:12,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki.h:37,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki-main.c:43:
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - /usr/local/Cellar/gcc-msp430/4.7.0-20120911_2/lib/gcc/msp430/4.7.0/../../../../msp430/include/intrinsics.h:163:0: note: this is the location of the previous definition
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - In file included from ../../arch/cpu/msp430/./msp430-def.h:66:0,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/platform/sky/./contiki-conf.h:12,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki.h:37,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki-main.c:43:
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:7:1: error: expected identifier or
> '(' before '<' token
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - In file included from ../../arch/cpu/msp430/./msp430-def.h:66:0,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/platform/sky/./contiki-conf.h:12,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki.h:37,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki-main.c:43:
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:32:3: error: stray '\302' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:32:3: error: stray '\267' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - In file included from ../../arch/cpu/msp430/./msp430-def.h:66:0,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/platform/sky/./contiki-conf.h:12,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki.h:37,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki-main.c:43:
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:154:10: error: missing terminating '
> character [-Werror]
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:154:5: error: missing terminating '
> character
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:200:7: error: stray '\342' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:200:7: error: stray '\206' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:200:7: error: stray '\265' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:205:7: error: stray '\342' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:205:7: error: stray '\206' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:205:7: error: stray '\265' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:241:7: error: stray '\342' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:241:7: error: stray '\206' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:241:7: error: stray '\265' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:246:7: error: stray '\342' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:246:7: error: stray '\206' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:246:7: error: stray '\265' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:273:7: error: stray '\342' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:273:7: error: stray '\206' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:273:7: error: stray '\265' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:278:7: error: stray '\342' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:278:7: error: stray '\206' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:278:7: error: stray '\265' in program
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:321:10: error: missing terminating '
> character [-Werror]
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:321:5: error: missing terminating '
> character
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:408:12: error: missing terminating "
> character [-Werror]
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:408:1: error: missing terminating "
> character
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:411:3: error: missing terminating "
> character [-Werror]
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:411:3: error: missing terminating "
> character
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - In file included from ../../arch/cpu/msp430/./msp430-def.h:66:0,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/platform/sky/./contiki-conf.h:12,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki.h:37,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../os/contiki-main.c:43:
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:416:20: error: missing terminating "
> character [-Werror]
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:416:9: error: missing terminating "
> character
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:420:1: error: missing terminating "
> character [-Werror]
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - ../../arch/cpu/msp430/./stdint.h:420:1: error: missing terminating "
> character
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - In file included from ../../arch/cpu/msp430/./msp430-def.h:66:0,
> [java] INFO [AWT-EventQueue-0] (MessageListUI.java:261) - from ../../arch/platform/sky/./contiki-conf.h:12,
I assume the problem is with msp430, but I successfully installed and I don’t know where the issue is.
I also tried to run the Docker image, but as I'm quite new to Docker. I couldn't run it as I don't understand these steps "prepare contiker function, run contiker: $ contiker bash"
How can I fix it?
Upvotes: 0
Views: 671