contiki-ng / contiki-ng

Contiki-NG: The OS for Next Generation IoT Devices
https://www.contiki-ng.org/
BSD 3-Clause "New" or "Revised" License
1.3k stars 698 forks source link

Cannot build hello-world for CC26x2R1. #1128

Closed chenek closed 4 years ago

chenek commented 4 years ago

I git to develop branch and try to build hello-world for CC26x2R1 with "make TARGET=simplelink BOARD=launchpad/cc26x2r1". However, I get the following build error.

$ make TARGET=simplelink BOARD=launchpad/cc26x2r1 MKDIR build/simplelink/launchpad/cc26x2r1/obj CC /cygdrive/c/contiki-ng/arch/cpu/simplelink-cc13xx-cc26xx/./ccfg-conf.c arm-none-eabi-gcc.exe: error: /cygdrive/c/contiki-ng/arch/cpu/simplelink-cc13xx-cc26xx/./ccfg-conf.c: No such file or directory arm-none-eabi-gcc.exe: fatal error: no input files compilation terminated. make: *** [/cygdrive/c/contiki-ng/arch/cpu/simplelink-cc13xx-cc26xx/Makefile.cc13xx-cc26xx:138: build/simplelink/launchpad/cc26x2r1/obj/ccfg-conf.o] Error 1

What am I doing wrong and how to fix this?

ahmedmibrahim commented 4 years ago

Did you correctly clone to contiki-ng latest repository and ran: sudo git submodule update --init --recursive?

chenek commented 4 years ago

Yes, I did it and still see the problem.

andak commented 4 years ago

You're probably observing this bug; the arm-none-eabi toolchain does not understand cygwin-paths. As an alternative to cygwin, MinGW is supposed to work according to the comments in the link.

chenek commented 4 years ago

@andak Thanks for your reply. I agree with you this might be toolchain issue since I can use Ubuntu to set up build environment to build the example successfully with the same make command.