-
Notifications
You must be signed in to change notification settings - Fork 202
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
nativesdk-clang build fails with DEBUG_BUILD enabled #932
Comments
hmm it seems to be a bug in LLVM build. Can you see why it happens with nativesdk alone ? |
I just verified that clang builds perfectly fine with I don't see an obvious reason, why nativesdk specifically fails. I may need to take a closer look into the do_compile logs. With mickledore the issue with nativesdk-clang wasn't there. |
log.do_compile-nativesdkclang.txt Here are the logs with |
if |
Yeah, these 2 options are set in both the nativesdk-clang and clang when taking a look at the |
That is in the log.do_configure of nativesdk-clang |
that might be the right direction to look into. Find out why cmake test for fPIC support detection is failing ? |
The test only fails for nativesdk with debug enabled. Thanks for your help so far, I will take a closer look next week why cmake thinks that the compiler does not support the |
I got further into it. The problem are the
warnings in the nativesdk-clang log (but strangely they appear only with Taking a look at https://github.com/llvm/llvm-project/blob/main/llvm/cmake/modules/HandleLLVMOptions.cmake#L336 one can see that the I have no idea yet why clang does not use the compilation flag under those specific circumstances. Taking a look into poky |
Perhaps try adding |
Yes, I added
and the nativesdk can be built successfully. |
This ensures that nativesdk compiler can be built when DEBUG_BUILD = "1" Fixes kraj#932 Signed-off-by: Khem Raj <raj.khem@gmail.com>
We are using the
nanbield
branch of meta-clang. The following behaviour can also be observed with the newestscarthgap
commit.We are building nativesdk-clang. The build is successful, however, with
DEBUG_BUILD = "1"
set in local.conf the build fails with following error:This error can be fixed by setting
in a clang_%.bbappend.
The question:
Would it be useful to always set the
-fPIC
flag for nativesdk in the clang_git.bb recipe? Or maybe conditionally, depending on theDEBUG_BUILD
flag?The text was updated successfully, but these errors were encountered: