lms-ts

Results 7 comments of lms-ts

I just verified that clang builds perfectly fine with `DEBUG_BUILD` enabled. I don't see an obvious reason, why nativesdk specifically fails. I may need to take a closer look into...

[log.do_compile-nativesdkclang.txt](https://github.com/kraj/meta-clang/files/14792402/log.do_compile-nativesdkclang.txt) [log.do_compile-clang.txt](https://github.com/kraj/meta-clang/files/14792404/log.do_compile-clang.txt) Here are the logs with `DEBUG_BUILD = "1"` for `bitbake clang` and the failing `bitbake nativesdk-clang` (without -fPIC added to the `CXXFLAGS`).

Yeah, these 2 options are set in both the nativesdk-clang and clang when taking a look at the `EXTRA_OECMAKE` variable, but only clang itself seems to set the `-fPIC` option...

``` -- LLVM default target triple: x86_64-unknown-linux-gnu -- Performing Test C_SUPPORTS_FPIC -- Performing Test C_SUPPORTS_FPIC - Failed -- Performing Test CXX_SUPPORTS_FPIC -- Performing Test CXX_SUPPORTS_FPIC - Failed CMake Warning at...

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...

I got further into it. The problem are the ``` x86_64-oesdk-linux-clang++: warning: argument unused during compilation: '-feliminate-unused-debug-types' [-Wunused-command-line-argument] ``` warnings in the nativesdk-clang log (but strangely they appear only with...

Yes, `BUILDSDK_CPPFLAGS` seems to be the better variable which is meant for the nativesdk context specifically: https://docs.yoctoproject.org/ref-manual/variables.html#term-BUILDSDK_CPPFLAGS I added ``` BUILDSDK_CPPFLAGS:append:class-nativesdk = " -Wno-error=unused-command-line-argument" ``` and the nativesdk can be...