-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[HELP] prompts "undefined referenc to _impure_prt
"
#12907
Comments
_impure_prt
"_impure_prt
"
@superxyxiao it seems something used by newlibc reentrancy, see: https://embdev.net/topic/what-is-_impure_ptr |
mainline already fix this problem: https://github.com/apache/nuttx/blob/master/libs/libc/misc/lib_impure.c |
Thank you very much. When calling log2() in protected build mode, the User.map file does not have log2() symbols and cannot compile the elf file. But log2() works fine in app.bin, How can I solve this? gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Processors 7-2018-q2-update) |
which libm library are use using? |
Using libm from newlib |
do you add libm to the ld command line when you build user space bin? |
Description
I have to use nuttx version 8.2. Using libm in newlibc, the link prompts an "undefined referenc to
_impure_prt
" error when using the lagmma function. How can I solve this?Verification
The text was updated successfully, but these errors were encountered: