Open Victccmc opened 11 months ago
I'm cross compiling to musl just fine. How are you compiling?
I must manually use this file( https://github.com/DelSkayn/rquickjs/blob/master/sys/src/bindings/aarch64-unknown-linux-musl.rs )Replace the banding.rs file under the project I compiled, And then I compiled it successfully,otherwise the compilation will report the error I submitted last time
Hi @Victccmc , i have the similar issue when trying to compile rquickjs for my platform .
see the log below, any suggestion?
Running `rustc --crate-name backend --edition=2018 backend/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 -C metadata=f682443cb5cfa0fd -C extra-filename=-f682443cb5cfa0fd --out-dir /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps --target aarch64-poky-linux -C linker=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/wrapper/target-rust-ccld -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/release/deps --extern aes_kw=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libaes_kw-0270cefa9d7358f1.rmeta --extern anyhow=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libanyhow-036885c31a0c1da4.rmeta --extern chrono=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libchrono-197a2f5b4df5429e.rmeta --extern hex=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libhex-45a1d4f71a6fd595.rmeta --extern rand=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/librand-17d80c8eec048abf.rmeta --extern reqwest=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libreqwest-124606632c082d85.rmeta --extern serde=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libserde-6578e0a449d923e8.rmeta --extern serde_json=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libserde_json-a68c16d4e056fb44.rmeta --extern thiserror=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libthiserror-8498ecb37774860e.rmeta --extern tokio=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libtokio-f78d32cccae84fe7.rmeta --extern tracing=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libtracing-32e2f535f408765c.rmeta -L /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0=/usr/src/debug/chirpstack/4.3.0-r0 -L native=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/build/ring-b321fb594a4f9ad1/out -L native=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/recipe-sysroot/usr/lib`
| Running `rustc --crate-name rdkafka --edition=2018 /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/cargo_home/bitbake/rdkafka-0.29.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="cmake-build"' --cfg 'feature="default"' --cfg 'feature="libz"' --cfg 'feature="tokio"' -C metadata=0ee9d7a2564e4b6e -C extra-filename=-0ee9d7a2564e4b6e --out-dir /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps --target aarch64-poky-linux -C linker=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/wrapper/target-rust-ccld -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/release/deps --extern futures_channel=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libfutures_channel-2d7ef125dd49cfae.rmeta --extern futures_util=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libfutures_util-52f018fa9a51826a.rmeta --extern libc=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/liblibc-111dca3113b507da.rmeta --extern log=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/liblog-73ee0d3a17e6b517.rmeta --extern rdkafka_sys=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/librdkafka_sys-a44b9b70bbb7506e.rmeta --extern serde=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libserde-6578e0a449d923e8.rmeta --extern serde_derive=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/release/deps/libserde_derive-931c6fd2acda09fd.so --extern serde_json=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libserde_json-a68c16d4e056fb44.rmeta --extern slab=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libslab-5a145eb32b99f8a1.rmeta --extern tokio=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps/libtokio-f78d32cccae84fe7.rmeta --cap-lints allow -L /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0=/usr/src/debug/chirpstack/4.3.0-r0 -L native=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/build/rdkafka-sys-ab20be26b14a39a7/out/lib -L native=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/build/libz-sys-ae463835402bf958/out/lib -L native=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/build/libz-sys-ae463835402bf958/out/lib`
| warning: target json file contains unused fields: has-elf-tls
|
| error[E0422]: cannot find struct, variant or union type `JSValueUnion` in this scope
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:34:12
| |
| 34 | u: JSValueUnion { int32: val },
| | ^^^^^^^^^^^^ not found in this scope
|
| error[E0422]: cannot find struct, variant or union type `JSValueUnion` in this scope
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:42:12
| |
| 42 | u: JSValueUnion { ptr },
| | ^^^^^^^^^^^^ not found in this scope
|
| error[E0422]: cannot find struct, variant or union type `JSValueUnion` in this scope
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:54:8
| |
| 54 | u: JSValueUnion { float64: f64::NAN },
| | ^^^^^^^^^^^^ not found in this scope
|
| error[E0422]: cannot find struct, variant or union type `JSValueUnion` in this scope
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:61:12
| |
| 61 | u: JSValueUnion { float64: d },
| | ^^^^^^^^^^^^ not found in this scope
|
| error[E0071]: expected struct, variant or union type, found `u64`
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:52:29
| |
| 52 | pub const JS_NAN: JSValue = JSValue {
| | ^^^^^^^ not a struct
|
| error[E0610]: `u64` is a primitive type and therefore doesn't have fields
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:3:7
| |
| 3 | v.tag as _
| | ^^^
|
| error[E0610]: `u64` is a primitive type and therefore doesn't have fields
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:13:7
| |
| 13 | v.u.int32
| | ^
|
| error[E0610]: `u64` is a primitive type and therefore doesn't have fields
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:18:7
| |
| 18 | v.u.int32 != 0
| | ^
|
| error[E0610]: `u64` is a primitive type and therefore doesn't have fields
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:23:7
| |
| 23 | v.u.float64
| | ^
|
| error[E0610]: `u64` is a primitive type and therefore doesn't have fields
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:28:7
| |
| 28 | v.u.ptr
| | ^
|
| error[E0071]: expected struct, variant or union type, found `u64`
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:33:5
| |
| 33 | JSValue {
| | ^^^^^^^ not a struct
|
| error[E0071]: expected struct, variant or union type, found `u64`
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:41:5
| |
| 41 | JSValue {
| | ^^^^^^^ not a struct
|
| error[E0071]: expected struct, variant or union type, found `u64`
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:59:5
| |
| 59 | JSValue {
| | ^^^^^^^ not a struct
|
| error[E0610]: `u64` is a primitive type and therefore doesn't have fields
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:71:10
| |
| 71 | if v.tag != JS_TAG_FLOAT64 as _ {
| | ^^^
|
| error[E0610]: `u64` is a primitive type and therefore doesn't have fields
| --> /usr/src/debug/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/inlines/ptr_64.rs:74:22
| |
| 74 | let u = U { d: v.u.float64 };
| | ^
|
| Some errors have detailed explanations: E0071, E0422, E0610.
| For more information about an error, try `rustc --explain E0071`.
| warning: `rquickjs-sys` (lib) generated 2 warnings (1 duplicate)
| error: could not compile `rquickjs-sys` due to 15 previous errors; 2 warnings emitted
|
| Caused by:
| process didn't exit successfully: `rustc --crate-name rquickjs_sys --edition=2018 /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/cargo_home/bitbake/rquickjs-sys-0.1.7/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="bindgen"' --cfg 'feature="bindgen-rs"' --cfg 'feature="exports"' -C metadata=aa5ec6dcb8aaaa94 -C extra-filename=-aa5ec6dcb8aaaa94 --out-dir /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps --target aarch64-poky-linux -C linker=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/wrapper/target-rust-ccld -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/deps -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/release/deps --cap-lints allow -L /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0=/usr/src/debug/chirpstack/4.3.0-r0 -L native=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.3.0-r0/build/target/aarch64-poky-linux/release/build/rquickjs-sys-1215552d7a5b6e30/out -l static=quickjs` (exit status: 1)
| warning: build failed, waiting for other jobs to finish...
| Building [=======================> ] 560/577: backend, chirpstack_api(b...
| warning: `chirpstack_api` (build script) generated 2 warnings (2 duplicates)
| Building [=======================> ] 561/577: backend, rdkafka
| warning: `backend` (lib) generated 2 warnings (2 duplicates)
| Building [=======================> ] 562/577: rdkafka
| warning: `rdkafka` (lib) generated 2 warnings (2 duplicates)
| WARNING: exit code 101 from a shell command.
ERROR: Task (/home/patrickyuan/tv4000/poky/build/../../meta-innerrange/meta-ir-chirpstack/recipes-chirpstack/chirpstack/chirpstack_4.3.0.bb:do_compile) failed with exit code '1'
The error message is as follows: