Skip to content
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

crosspile in arm #70

Open
fengtuo58 opened this issue Jan 4, 2024 · 2 comments
Open

crosspile in arm #70

fengtuo58 opened this issue Jan 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@fengtuo58
Copy link

/code/rust-trail/iceoryx2$ cargo build
Compiling iceoryx2-pal-posix v0.1.1 (~/code/rust-trail/iceoryx2/iceoryx2-pal/posix)
error: failed to run custom build command for iceoryx2-pal-posix v0.1.1 (~/code/rust-trail/iceoryx2/iceoryx2-pal/posix)

Caused by:
process didn't exit successfully: ~/code/rust-trail/iceoryx2/target/debug/build/iceoryx2-pal-posix-187ccb108511064a/build-script-build (exit status: 101)
--- stdout
cargo:rustc-link-lib=pthread
cargo:rerun-if-changed=src/c/posix.h
cargo:rerun-if-env-changed=TARGET
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_arm-unknown-linux-gnueabi
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_arm_unknown_linux_gnueabi
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS

--- stderr
/usr/include/bits/socket.h:390:10: fatal error: 'asm/socket.h' file not found
thread 'main' panicked at iceoryx2-pal/posix/build.rs:45:18:
Unable to generate bindings: ClangDiagnostic("/usr/include/bits/socket.h:390:10: fatal error: 'asm/socket.h' file not found\n")
stack backtrace:
0: rust_begin_unwind
at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/panicking.rs:597:5
1: core::panicking::panic_fmt
at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/panicking.rs:72:14
2: core::result::unwrap_failed
at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/result.rs:1652:5
3: core::result::Result<T,E>::expect
at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/result.rs:1034:23
4: build_script_build::main
at ./build.rs:41:13
5: core::ops::function::FnOnce::call_once
at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

@fengtuo58 fengtuo58 added the enhancement New feature or request label Jan 4, 2024
@elBoberido
Copy link
Member

Cross compiling iceoryx2 would be great. Maybe some inspiration could be taken from eclipse-iceoryx/iceoryx-rs#74.

Do you intend to create a patch for this issue?

@elfenpiff
Copy link
Contributor

@elBoberido @fengtuo58 I did some research and it seems that this is maybe related to the open issue in bindgen: rust-lang/rust-bindgen#1229

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants