Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp build fails if toolchain is specified by MBED_GCC_ARM_PATH #2

Open
coisme opened this issue Feb 2, 2018 · 0 comments
Open

gulp build fails if toolchain is specified by MBED_GCC_ARM_PATH #2

coisme opened this issue Feb 2, 2018 · 0 comments

Comments

@coisme
Copy link

coisme commented Feb 2, 2018

The following command fails if gcc toolchain is specified only by the MBED_GCC_ARM_PATH environment variable.
gulp build --js ./source/main.js --target=K64F

Error Message:

	mbed-js-v2 user$ gulp build --js ./source/main.js --target=K64F
	[14:55:21] Using gulpfile ~/mbed/mbed-js-v2-org/gulpfile.js
	[14:55:21] Starting 'bundle'...
	[14:55:21] Starting 'pip-requirements'...
	[14:55:21] Starting 'make-build-dir'...
	[14:55:21] Finished 'make-build-dir' after 601 μs
	[14:55:21] Finished 'bundle' after 147 ms
	[14:55:22] Finished 'pip-requirements' after 827 ms
	[14:55:22] Starting 'cppify'...
	[14:55:22] Starting 'generate-pins'...
	[14:55:22] Finished 'cppify' after 171 ms
	[14:55:24] 'generate-pins' errored after 1.67 s
	[14:55:24] ChildProcessError: `python /Users/user/mbed/mbed-js-v2/mbed-js/tools/generate_pins.py K64F` failed with code 1
	    at ChildProcess.<anonymous> (/Users/user/mbed/mbed-js-v2/node_modules/child-process-promise/lib/index.js:132:23)
	    at emitTwo (events.js:126:13)
	    at ChildProcess.emit (events.js:214:7)
	    at maybeClose (internal/child_process.js:925:16)
	    at Socket.stream.socket.on (internal/child_process.js:346:11)
	    at emitOne (events.js:116:13)
	    at Socket.emit (events.js:211:7)
	    at Pipe._handle.close [as _onclose] (net.js:554:12)

To avoid the error, the gcc toolchain path should be included in the PATH environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant