You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #828, we had to disable crabbyavif from being built, because the bindgen invocations for it created build errors (see #827 (comment)).
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:
Adding these directories using -isystem might work, but seems hacky; also, the usr/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 on bindgen-cli-native and setting rust_bindgen_root=".../recipe-sysroot-native/usr" in args.gn, but that didn't seem to change anything.
@kraj do you maybe have suggestions what else I could try?
The text was updated successfully, but these errors were encountered:
In #828, we had to disable crabbyavif from being built, because the bindgen invocations for it created build errors (see #827 (comment)).
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?
The text was updated successfully, but these errors were encountered: