Hello, I’m new to mbed cli. I am trying to compile the mbed-os-example-blinky with mbed-cli, and I got a an error. My error message is just below
$mbed compile
[mbed] Working path “/home/hoge/mfsat/test/mbed-test” (program)
Building project mbed-test (NUCLEO_L476RG, GCC_ARM)
Scan: mbed-test
Compile [ 48.1%]: ws_pae_time.c
[Error] ws_pae_time.c@173,103: expected ‘)’ before ‘PRIi64’
[Warning] ws_pae_time.c@173,22: spurious trailing ‘%’ in format [-Wformat=]
[ERROR] In file included from ./mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from ./mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_time.c:22:
./mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_time.c: In function ‘ws_pae_current_time_set’:
./mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_time.c:173:103: error: expected ‘)’ before ‘PRIi64’
173 | tr_error("FATAL: system time less than reference time or more than 12 months in future: %“PRIi64” reference time: %"PRIi64, system_time, current_time);
| ^~~~~~
./mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:143:79: note: in definition of macro ‘tr_error’
143 | #define tr_error(…) mbed_tracef(TRACE_LEVEL_ERROR, TRACE_GROUP, VA_ARGS) //!< Print Error Message
| ^~~~~~~~~~~
./mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_time.c:173:22: warning: spurious trailing ‘%’ in format [-Wformat=]
173 | tr_error("FATAL: system time less than reference time or more than 12 months in future: %“PRIi64” reference time: %"PRIi64, system_time, current_time);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:143:79: note: in definition of macro ‘tr_error’
143 | #define tr_error(…) mbed_tracef(TRACE_LEVEL_ERROR, TRACE_GROUP, VA_ARGS) //!< Print Error Message
| ^~~~~~~~~~~
./mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_time.c:173:101: note: format string is defined here
173 | tr_error("FATAL: system time less than reference time or more than 12 months in future: %“PRIi64” reference time: %"PRIi64, system_time, current_time);
| ^
[mbed] ERROR: “/usr/bin/python2” returned error.
Code: 1
Path: “/home/hoge/mfsat/test/mbed-test”
Command: “/usr/bin/python2 -u /home/hoge/mfsat/test/mbed-test/mbed-os/tools/make.py -t GCC_ARM -m NUCLEO_L476RG --source . --build ./BUILD/NUCLEO_L476RG/GCC_ARM”
Tip: You could retry the last command with “-v” flag for verbose output
I have not been able to find any information to help me solve this problem. I would like to get your help. I’m sorry for my poor english.
- Ubuntu 20.04
- python 2.7.18
- GCC ARM version : 15:9-2019-q4-0ubuntu1
- target : NUCLEO_L476RG