-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
crossbuild on mac arm host with zigbuild to target aarch64-unknown-linux-musl fail #26
Comments
Hey, sorry—afraid we're not able to offer support for cross compiling issues in general, and in particular Lines 36 to 37 in 19f8473
Perhaps |
Thanks for reply and the hint, it does set the Metadata { host: "aarch64-apple-darwin", target: "aarch64-unknown-linux-musl", build_dir: "/Users/gen/rust-krb5-src/target/aarch64-unknown-linux-musl/debug/build/krb5-src-66a2027f1b8020ae/out/build", install_dir: "/Users/gen/rust-krb5-src/target/aarch64-unknown-linux-musl/debug/build/krb5-src-66a2027f1b8020ae/out/install" } I tried comment out following lines in // If we're cross-compiling, let configure know.
if metadata.host != metadata.target {
configure_args.push(format!("--host={}", metadata.target));
} Instead of comment out, I also tried just change the configre args push line into configure_args.push(format!("--host={}", metadata.host)); this also worked for both before this change neither commmands worked, created a PR for this |
Host: macos arm64
Target: aarch64-unknown-linux-musl
when using zigbuild,
cargo zigbuild --target aarch64-unknown-linux-musl
for project that dependes onrdkafka
, so indirectly useskrb5
, the build fails with following error:that looks like it can't find
#include "kcmrpc.h"
, while this#include
is defined__APPLE__
section, which should be off when compiling target islinux-musl
Is this an issue in
krb5
build/configure ?The text was updated successfully, but these errors were encountered: