Closed rchard2scout closed 4 years ago
@rchard2scout it might be that LTO is causing it for you. Perhaps you can try removing it
from recipes-devtools/clang/clang_git.bb
PACKAGECONFIG_class-nativesdk = "rtti eh libedit thin-lto"
remove thin-lto
from above line
Thanks, that fixed it! Do you want to take it, or should I keep it in a local bbappend? Or do we need to figure out what the root cause is here (a bug in upstream clang perhaps)?
it seems it happens on some hosts not all so i would like to see if its a clang bug before disabling lto
Thanks for the tip. Disabling LTO fixedthe segfault on my machines. I'd tried Centos 7 and Centos 8 as the build host with the same seg fault.
should be fixed now
Describe the bug A segfault occurs during the linking of bin/llvm-tblgen
When trying to build an SDK, nativesdk-clang is compiled using the just previously compiled clang-native. During the linking of bin/llvm-tblgen, a segfault occurs here.
Additional context I'm using latest zeus (commit 4a8b6e8) and Poky version yocto-3.0. The complete command invocation from log.do_compile (with some proprietary names and long paths substituted, and all arguments put on their own lines for readability):