Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
3 years, 10 months ago.
Faced the problem to build the mbedos jerryscript for NRF52840 target
Build fail log:
/repel/mbed-js-repl-example$ gulp -target=NRF52840_DK [10:47:46] Using gulpfile /repel/mbed-js-repl-example/Gulpfile.js [10:47:46] Starting 'make-build-dir'... [10:47:46] Finished 'make-build-dir' after 134 μs [10:47:46] Starting 'makefile'... [10:47:46] Starting 'bundle'... [10:47:46] Starting 'ignorefile'... [10:47:46] Finished 'makefile' after 43 ms [10:47:46] Starting 'get-jerryscript'... [10:47:46] Finished 'get-jerryscript' after 132 μs [10:47:46] Starting 'getlibs'... [10:47:47] Finished 'ignorefile' after 37 ms [10:47:47] Finished 'getlibs' after 63 ms $ make getlibs make: Nothing to be done for 'getlibs'. [10:47:47] Finished 'bundle' after 99 ms [10:47:47] Starting 'cppify'... [10:47:47] Finished 'cppify' after 83 ms [10:47:47] Starting 'build'... [10:47:48] Found native packages: mbed-js-repl $ make BOARD=undefined EXTRAS=/home/kaynes/repel/mbed-js-repl-example/node_modules/mbed-js-repl/. [10:47:48] build/make [10:47:48] Finished 'build' after 1.68 s [10:47:48] Starting 'default'... [10:47:48] Finished 'default' after 26 μs cd jerryscript/targets/mbedos5 && pip install -r tools/requirements.txt && rm -f source/js_encoded.cpp && rm -f source/pins.cpp && rm -f source/main.cpp && make BOARD=undefined EXTRA_SRC="/home/kaynes/repel/mbed-js-repl-example/node_modules/mbed-js-repl/.:../../../source" EXTERN_BUILD_DIR=../../../out/undefined NO_JS=1 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. Requirement already satisfied: pycparser<=2.17 in /usr/local/lib/python2.7/dist-packages (from -r tools/requirements.txt (line 1)) (2.17) Requirement already satisfied: simpleeval in /usr/local/lib/python2.7/dist-packages (from -r tools/requirements.txt (line 2)) (0.9.8) Requirement already satisfied: pycparserext in /usr/local/lib/python2.7/dist-packages (from -r tools/requirements.txt (line 3)) (2016.2) Requirement already satisfied: ply>=3.4 in /usr/local/lib/python2.7/dist-packages (from pycparserext->-r tools/requirements.txt (line 3)) (3.11) make: Entering directory '/home/kaynes/repel/mbed-js-repl-example/build/jerryscript/targets/mbedos5' python tools/generate_pins.py undefined Traceback (most recent call last): File "tools/generate_pins.py", line 37, in <module> from tools.targets import Target ImportError: No module named tools.targets Makefile:72: recipe for target 'source/pins.cpp' failed make: Leaving directory '/home/kaynes/repel/mbed-js-repl-example/build/jerryscript/targets/mbedos5' make: * [source/pins.cpp] Error 1 Makefile:14: recipe for target 'all' failed make: * [all] Error 2 events.js:183 throw er; Unhandled 'error' event ^
Error: Command `make BOARD=undefined EXTRAS=/home/kaynes/repel/mbed-js-repl-example/node_modules/mbed-js-repl/.` exited with code 2 at ChildProcess.handleSubShellExit (/home/kaynes/repel/mbed-js-repl-example/node_modules/gulp-run/command.js:166:13) at Object.onceWrapper (events.js:317:30) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
Could support us to resolve this issue