fatal error: configs/nanostack_full.cfg: No such file or directory

07 Aug 2018

Export from mbed online to eclipse -gnu make fails

"Compile: network_lib.c" In file included from ../mbed-os/features/nanostack/sal-stack-nanostack/source/6LoWPAN/Bootstraps/Generic/network_lib.c:18:0: ../mbed-os/features/nanostack/sal-stack-nanostack/source/nsconfig.h:48:32: fatal error: configs/nanostack_full.cfg: No such file or directory

  1. include ns_cfg_header(NSCONFIG) ^ compilation terminated. make[1]: * [mbed-os/features/nanostack/sal-stack-nanostack/source/6LoWPAN/Bootstraps/Generic/network_lib.o] Fel 1 make: * [all] Fel 2 <</code >>

Note:

Board: Nucleo_L476RG MBED: Latetst updated before 1 week.

07 Aug 2018

Hi Mariwan,

Can you take a look at this github issues that was raised?: https://github.com/ARMmbed/mbed-os/issues/7615

Looks like exporting the project dropped the .cfg files. Can you try manually adding the configs directory back to your exported project?:

https://github.com/ARMmbed/mbed-os/tree/master/features/nanostack/sal-stack-nanostack/source/configs

Hope this helps!

-Karen, team Mbed

09 Aug 2018

I tried to copy the hole folder .. dosen't help . Now compiling a functional code today results in the following error:

Error: Identifier "namespace" is undefined in "extras/mbed-os.lib/rtos/Kernel.h", Line: 27, Col: 2
Error: Expected a ";" in "extras/mbed-os.lib/rtos/Kernel.h", Line: 27, Col: 17
Warning: Parsing restarts here after previous syntax error in "extras/mbed-os.lib/rtos/TARGET_CORTEX/rtx4/cmsis_os.h", Line: 191, Col: 51

......

I couldn't send all error as the home site dosen't accept it.

09 Aug 2018

Hi Mariwan,

Can you post the program/libraries you are using? The namespace error is most likely due to the file extension you are using (.c vs .cpp). Make sure that your files are .cpp.

-Karen, team Mbed

10 Aug 2018

Hi Karen, You are right for the last problem it was related to the extension of the file name. The library is https://os.mbed.com/users/gertk/code/vga640x400g/ I sent to them a pull-request. How did you know?? :)

10 Aug 2018

Dear Karen, Regarding the original problem, it is still there. I exported another projects that compiles on mbed online but not in the export gnu-make.

../mbed-os/features/nanostack/sal-stack-nanostack/source/nsconfig.h:48:32: fatal error: configs/nanostack_full.cfg: No such file or directory

No one has fixed that issue.

10 Aug 2018

Hi Mariwan,

Namespace is a feature only in C++, not C. So if you try to use it in a .c file, it won't recognize that name :)

As for the exporting issue, there is another github issue that was recently raised: https://github.com/ARMmbed/mbed-os/issues/7615

There is a fix currently being worked on and is due to be fixed in the next release. I apologize for the inconvenience it has been causing.

-Karen, team Mbed

Please log in to post a reply.