Open MaxIhlenfeldt opened 2 months ago
@kraj gentle ping
hmmm, it seems to be using vendored paths for libclang, Can you check if its using the tools from native sysroot ?
@kraj
Can you check if its using the tools from native sysroot ?
What exactly do you mean?
In #828, we had to disable crabbyavif from being built, because the bindgen invocations for it created build errors (see https://github.com/OSSystems/meta-browser/issues/827#issuecomment-2263051027).
I've been able to fix the
unsupported option '-mbranch-protection=' for target 'x86_64-unknown-linux-gnu'
part, but I'm stuck on the$HEADER file not found
part.My current solution is to get all the flags set in our toolchain BUILD.gn file and pass them through to bindgen, so it can pass them to clang. These two are new in our
args.gn
:I've also manually added these two to the extra target args:
but that didn't fix the issue.
I've searched for the header files in question in the sysroot, and this is where they seem to be located:
Adding these directories using
-isystem
might work, but seems hacky; also, theusr/include/c++/14.2.0/tr1/stdarg.h
path looks like it might not be the same across all clang versions / Yocto releases.I've also tried using bindgen from
meta-clang
instead of Chromium's by adding a dependency onbindgen-cli-native
and settingrust_bindgen_root=".../recipe-sysroot-native/usr"
inargs.gn
, but that didn't seem to change anything.@kraj do you maybe have suggestions what else I could try?