We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
headers are installed in $SYSROOT/include, when the compiler wants then in $SYSROOT/usr/include (and the same happens for lib).
$SYSROOT/include
$SYSROOT/usr/include
lib
If we passthrough BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_freebsd="--sysroot=/usr/local/x86_64-unknown-freebsd12 -v" we can see things like:
BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_freebsd="--sysroot=/usr/local/x86_64-unknown-freebsd12 -v"
--- stderr clang version 10.0.0-4ubuntu1 Target: x86_64-unknown-freebsd Thread model: posix InstalledDir: #include "..." search starts here: #include <...> search starts here: /usr/lib/llvm-10/lib/clang/10.0.0/include /usr/local/x86_64-unknown-freebsd12/usr/include End of search list. /usr/local/x86_64-unknown-freebsd12/usr/include/xenstore_lib.h:25:10: fatal error: 'errno.h' file not found
Workaround: start the pre-build hook with
mkdir -p /usr/local/x86_64-unknown-freebsd12/usr && ln -s ../include /usr/local/x86_64-unknown-freebsd12/usr/include && ln -s ../lib /usr/local/x86_64-unknown-freebsd12/usr/lib &&
x86_64-unknown-freebsd
cross 0.2.5 (44011c8 2023-10-23) [note: that's master not 0.2.5]
No response
The text was updated successfully, but these errors were encountered:
there is also a problem with the BINDGEN_EXTRA_CLANG_ARGS_* for other targets, will have to identify those.
BINDGEN_EXTRA_CLANG_ARGS_*
Specifically, I think targets returned by grep -L "ENV CROSS_SYSROOT=/usr/local/" --include='Dockerfile.*' -r ./docker need to be checked
grep -L "ENV CROSS_SYSROOT=/usr/local/" --include='Dockerfile.*' -r ./docker
edit: cc #1389
Sorry, something went wrong.
fixed with #1403
Successfully merging a pull request may close this issue.
Checklist
Describe your issue
headers are installed in
$SYSROOT/include
, when the compiler wants then in$SYSROOT/usr/include
(and the same happens forlib
).If we passthrough
BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_freebsd="--sysroot=/usr/local/x86_64-unknown-freebsd12 -v"
we can see things like:Workaround: start the pre-build hook with
What target(s) are you cross-compiling for?
x86_64-unknown-freebsd
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5 (44011c8 2023-10-23) [note: that's master not 0.2.5]
Example
No response
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: