-
Notifications
You must be signed in to change notification settings - Fork 676
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
Build for nuttx problem, undefined reference to 'setjmp' and 'longjmp' #231
Comments
Which libc is used by NuttX? uClibc++ or Newlib? They definitely should have the proper implementation of Please refer to this thread http://comments.gmane.org/gmane.comp.embedded.nuttx/8523
|
@egavrin , it's default libc in nuttx. |
I've tried this in nuttx but cannot solve. Please help if someone knows how...
Changes: nuttx/configs/stm32f4discovery/src/Makefile
and configs/stm32f4discovery/src/stm32_jerry-hf.S file copied from jerry-libc
last line in jerry-libc is
is it |
According to: http://e2e.ti.com/support/microcontrollers/stellaris_arm/f/471/p/45181/160958 |
@zherczeg , thank you. with some more google search, I've got this code and compile is ok. but don't know it's working or not.
|
well, get some error.
|
@ruben-ayrapetyan , can you help with hard-float ?
I'm not good at ARM asm and can't understand the difference to jerry-libc code. |
@seanshpark, setjmp:
longjmp:
Could you, please, check the changes? |
@ruben-ayrapetyan , thank you for the code, still error with vstm/vldm when added. |
@seanshpark, what compiler options do you use for the build? What is the error message? I've successfully built the code, using arm-none-eabi-g++ v4.8.2 (
|
@ruben-ayrapetyan , thank you. I've changed something but still there is error running in nuttx + STM32F4Discovery+BB.
compile msg:
changed: CC was used for AS so changed to use CXX, in nuttx/tools/Config.mk file
BTW, can you please describe how's your build and test environment? |
@seanshpark, thank you for clarification of compiler options. Could you, please, check size of If
In pre-commit testing archive libraries are built, but linkage is not performed. So, pre-commit testing passes successfully. |
@ruben-ayrapetyan ,
How to reproduce;
p.s. I've just deleted last message. how to reproduce was not correct. |
@seanshpark, |
@ruben-ayrapetyan , I've changed it to
the sequence in jerry-libc is opposite. have you checked with target board? |
Related issue : jerryscript-project#231 JerryScript-DCO-1.0-Signed-off-by: SaeHie Park [email protected]
@seanshpark, the |
Seems that code below writes {s16 - s31} and then overwrites them with {r4, r5, r6, r7}.
|
A test that leads to call of For example:
|
@ruben-ayrapetyan
can you please fix the code so that it works ? |
@seanshpark, I would gladly do this, but before this I should finish some activities. I'll do this as soon as possible. |
@seanshpark, I think that code from #231 (comment) should work if buffer size is enough, but I haven't checked this on board yet. I'll do this as soon as possible. |
@ruben-ayrapetyan , thank you very much. I'll try with adding setjmp.h in nuttx include with the code above tomorrow morning. |
It works with #231 (comment) ! |
@seanshpark, it's great! |
Related issue : jerryscript-project#231 JerryScript-DCO-1.0-Signed-off-by: SaeHie Park [email protected]
Related issue : jerryscript-project#231 JerryScript-DCO-1.0-Signed-off-by: SaeHie Park [email protected]
I think this issue can be closed cause changes are for nuttx and added to 20150706 patch |
With latest JerryScript, cannot build for nuttx cause of
How to reproduce: with iotjs build for nuttx. Get latest iotjs source.
replace
--nuttx-home
value with your nuttx folder.Please refer https://github.com/Samsung/iotjs/wiki/Build-for-NuttX page.
The text was updated successfully, but these errors were encountered: