-
Notifications
You must be signed in to change notification settings - Fork 190
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
Build error for innernet binary on AlpineLinux #107
Comments
Whoa, that looks like a compiler crash. You may be the first person to try building with must libc. I'm not sure if that's supposed to work (I know building on static musl libc had limitations with proc macros), but it it hopefully shouldn't crash. General hint is to run with |
Already tried that, but -v only gives the above error message. |
It looks like the following rust issues are related to this: |
Looks more like rust-lang/rust/issues/82193 ... |
Ok, if I add
error[E0609]: no field __in6_u on type wgctrl_sys::in6_addr error[E0609]: no field __in6_u on type wgctrl_sys::in6_addr error[E0560]: union in6_addr__bindgen_ty_1 has no field named __u6_addr8 error[E0560]: struct error: aborting due to 5 previous errors Some errors have detailed explanations: E0560, E0609. Caused by: |
The bindings to the WireGuard embeddable C Library are the problem, I think. There seems to be a problem with IPv6. |
The binary works as expected, as long as you do not need IPv6. |
Innernet no longer uses the WireGuard FFI and builds just fine on Alpine :). |
I tried to build the innernet client binary on Alpine Linux with stable-x86_64-unknown-linux-musl as the default toolchain for Rust.
There is an error while building wgctrl-sys I cannot solve:
$ cargo build --release --bin innernet
Compiling serde v1.0.126
Compiling wgctrl-sys v1.4.0-beta.3 (/home/sysadmin/tmp/innernet-1.4.0-beta.3/wgctrl-sys)
error: failed to run custom build command for
wgctrl-sys v1.4.0-beta.3 (/home/sysadmin/tmp/innernet-1.4.0-beta.3/wgctrl-sys)
Caused by:
process didn't exit successfully:
/home/sysadmin/tmp/innernet-1.4.0-beta.3/target/release/build/wgctrl-sys-4aed27b106087c18/build-script-build
(signal: 11, SIGSEGV: invalid memory reference)warning: build failed, waiting for other jobs to finish...
error: build failed
Any hint where to search?
Thanks, fuller
The text was updated successfully, but these errors were encountered: