DelSkayn / rquickjs

High level bindings to the quickjs javascript engine
MIT License
434 stars 59 forks source link

Cross compilation failed aarch64-poky-linux #241

Open Patrick10281988 opened 7 months ago

Patrick10281988 commented 7 months ago

when i tried to compile rquickjs , i had a bunch of missing symbol and the compilation failed:

Running `rustc --crate-name headers_core /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/cargo_home/bitbake/headers-core-0.2.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 -C metadata=e6aa78ff4a56239f -C extra-filename=-e6aa78ff4a56239f --out-dir /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-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.5.1-r0/wrapper/target-rust-ccld -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/aarch64-poky-linux/release/deps -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/release/deps --extern http=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/aarch64-poky-linux/release/deps/libhttp-54c50091fca59786.rmeta --cap-lints allow -L /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0=/usr/src/debug/chirpstack/4.5.1-r0`
| error[E0422]: cannot find struct, variant or union type `JSValueUnion` in this scope
|   --> /usr/src/debug/chirpstack/4.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/src/inlines/ptr_64.rs:61:12
|    |
| 61 |         u: JSValueUnion { float64: d },
|    |            ^^^^^^^^^^^^ not found in this scope
| 
| warning: `headers-core` (lib) generated 2 warnings (2 duplicates)
|    Compiling futures-executor v0.3.28
|     Building [===================>     ] 459/573: pkcs1, pbjson, rquickjs-s...
|      Running `rustc --crate-name futures_executor --edition=2018 /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/cargo_home/bitbake/futures-executor-0.3.28/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="std"' -C metadata=fe1f184c8e60e4dc -C extra-filename=-fe1f184c8e60e4dc --out-dir /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-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.5.1-r0/wrapper/target-rust-ccld -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/aarch64-poky-linux/release/deps -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/release/deps --extern futures_core=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/aarch64-poky-linux/release/deps/libfutures_core-f2b1c96f10147c0a.rmeta --extern futures_task=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/aarch64-poky-linux/release/deps/libfutures_task-6a16989443f12142.rmeta --extern futures_util=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/aarch64-poky-linux/release/deps/libfutures_util-a9a525786bd366b5.rmeta --cap-lints allow -L /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0=/usr/src/debug/chirpstack/4.5.1-r0`
| error[E0071]: expected struct, variant or union type, found `u64`
|   --> /usr/src/debug/chirpstack/4.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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 (2 duplicates)
| error: could not compile `rquickjs-sys` (lib) 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.5.1-r0/cargo_home/bitbake/rquickjs-sys-0.3.1/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=cfd671f13bf4a479 -C extra-filename=-cfd671f13bf4a479 --out-dir /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-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.5.1-r0/wrapper/target-rust-ccld -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/aarch64-poky-linux/release/deps -L dependency=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/release/deps --cap-lints allow -L /home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0=/usr/src/debug/chirpstack/4.5.1-r0 -L native=/home/patrickyuan/tv4000/poky/build/tmp/work/cortexa53-crypto-poky-linux/chirpstack/4.5.1-r0/build/target/aarch64-poky-linux/release/build/rquickjs-sys-2b100a11cceb464b/out -l static=quickjs` (exit status: 1)
| warning: build failed, waiting for other jobs to finish...
|     Building [===================>     ] 460/573: pkcs1, pbjson, futures-ex...
| warning: `pbjson` (lib) generated 2 warnings (2 duplicates)
|     Building [===================>     ] 461/573: pkcs1, futures-executor
| warning: `futures-executor` (lib) generated 2 warnings (2 duplicates)
|     Building [===================>     ] 462/573: pkcs1
| warning: `pkcs1` (lib) generated 2 warnings (2 duplicates)
| WARNING: exit code 101 from a shell command.