-
Notifications
You must be signed in to change notification settings - Fork 1k
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
When i use cmake to build sim:libcxxtest, it display undefined reference to `NXpthread_setspecific' #12127
Comments
you have to set CONFIG_TLS_NELEM > 0 . It's strange that this problem doesn't occur for make. |
thank you for your reply,That's a good way for me to solve the problem I found that whatever macro definition "in thread.h" encapsulates a layer of "pthread_key_", "tss_key" and other TLS-related functions. It's strange why make can exclude these functions, but cmake can't |
@xuxin930 could you check why cmake is different from make? |
sure, I'm working on it |
hi @raiden00pl @xiaoxiang781216 nuttx/arch/sim/src/nuttx-names.in Lines 99 to 112 in 62a4799
nuttx/cmake/nuttx_redefine_symbols.cmake Lines 78 to 94 in 62a4799
|
@xuxin930 good find. Another problem I have with this configuration (and with libcxx in general) is a lot of warnings during compilation. Lines 99 to 124 in 62a4799
I haven't had a chance to look for the cause of this problem yet. I'm not sure if this problem only occurs for me on arch linux |
Okay, let me check the toolchain file settings and compile otpions settings again. |
hi @raiden00pl
regarding the second one, I have implemented |
@xuxin930 great ! thanks for solving the issues |
when i use cmake -B build -DBOARD_CONFIG=sim:libcxxtest
it can not compile
but when i use make to build sim libcxxtest, it is running properly
what can i do to solve this problem, thanks
The text was updated successfully, but these errors were encountered: