riscv-forks / electron-riscv-releases

[WIP] Binary Releases of electron for riscv64
5 stars 2 forks source link

Failed to build chromedriver for electron 32 #3

Closed kxxt closed 3 weeks ago

kxxt commented 3 weeks ago

https://github.com/riscv-forks/electron-riscv-releases/actions/runs/10487081774/job/29046700011

[88/7336] RUST(MACRO) clang_x64_for_rust_host_build_tools/libserde_derive_lib.so
FAILED: clang_x64_for_rust_host_build_tools/libserde_derive_lib.so 
"python3" "../../build/rust/rustc_wrapper.py" --rustc=../../third_party/rust-toolchain/bin/rustc --depfile=clang_x64_for_rust_host_build_tools/libserde_derive_lib.so.d --rsp=clang_x64_for_rust_host_build_tools/libserde_derive_lib.so.rsp -- -Clinker="../../third_party/llvm-build/Release+Asserts/bin/clang++" --crate-name serde_derive ../../third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.204/src/lib.rs --crate-type proc-macro -Cmetadata=serde_derive-1 --edition=2015 -Cforce-unwind-tables=yes -Crelocation-model=pic -Coverflow-checks=on -Cdefault-linker-libraries -Zdep-info-omit-d-target -Zmacro-backtrace -Zremap-cwd-prefix=. --color=always --target=x86_64-unknown-linux-gnu -Cembed-bitcode=no -Clto=no --cfg cr_rustc_revision=\"3cf924b934322fd7b514600a7dc84fc517515346-3-llvmorg-19-init-14561-gecea8371\" -Copt-level=3 --extern proc_macro --cap-lints=allow -Dunsafe_op_in_unsafe_fn -Dwarnings -Aunused-imports --emit=dep-info=clang_x64_for_rust_host_build_tools/libserde_derive_lib.so.d,link -o clang_x64_for_rust_host_build_tools/libserde_derive_lib.so LDFLAGS -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id=fast -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -m64 -no-canonical-prefixes -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed -nostdlib++ --sysroot=../../build/linux/debian_bullseye_amd64-sysroot -Werror clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_abort.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject.rlib clang_x64_for_rust_host_build_tools/prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro.rlib  RUSTENV OUT_DIR=../../../../../../out/chromedriver-riscv/clang_x64_for_rust_host_build_tools/gen/third_party/rust/serde_derive/v1/lib CARGO_PKG_AUTHORS=Erick\ Tryzelaar\ \<erick.tryzelaar@gmail.com\>,\ David\ Tolnay\ \<dtolnay@gmail.com\> CARGO_PKG_VERSION=1.0.204 CARGO_PKG_NAME=serde_derive CARGO_PKG_DESCRIPTION=Macros\ 1.1\ implementation\ of\ \#\[derive\(Serialize,\ Deserialize\)\] CARGO_MANIFEST_DIR=../../third_party/rust/serde_derive/v1/lib/crate
error[E0460]: found possibly newer version of crate `std` which `proc_macro2` depends on
  --> ../../third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.204/src/lib.rs:65:1
   |
65 | extern crate proc_macro2;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: perhaps that crate needs to be recompiled?
   = note: the following crate versions were found:
           crate `std`: /home/kxxt/electron-ci/sources/electron/src/third_party/rust-toolchain/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c48c8e9fbf47a730.rlib
           crate `std`: /home/kxxt/electron-ci/sources/electron/src/third_party/rust-toolchain/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c48c8e9fbf47a730.so
           crate `proc_macro2`: /home/kxxt/electron-ci/sources/electron/src/out/chromedriver-riscv/clang_x64_for_rust_host_build_tools/obj/third_party/rust/proc_macro2/v1/lib/libproc_macro2_lib.rlib

error[E0460]: found possibly newer version of crate `std` which `quote` depends on
  --> ../../third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.204/src/lib.rs:66:1
   |
66 | extern crate quote;
   | ^^^^^^^^^^^^^^^^^^^
   |
   = note: perhaps that crate needs to be recompiled?
   = note: the following crate versions were found:
           crate `std`: /home/kxxt/electron-ci/sources/electron/src/third_party/rust-toolchain/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c48c8e9fbf47a730.rlib
           crate `std`: /home/kxxt/electron-ci/sources/electron/src/third_party/rust-toolchain/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c48c8e9fbf47a730.so
           crate `quote`: /home/kxxt/electron-ci/sources/electron/src/out/chromedriver-riscv/clang_x64_for_rust_host_build_tools/obj/third_party/rust/quote/v1/lib/libquote_lib.rlib

error[E0460]: found possibly newer version of crate `std` which `syn` depends on
  --> ../../third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.204/src/lib.rs:67:1
   |
67 | extern crate syn;
   | ^^^^^^^^^^^^^^^^^
   |
   = note: perhaps that crate needs to be recompiled?
   = note: the following crate versions were found:
           crate `std`: /home/kxxt/electron-ci/sources/electron/src/third_party/rust-toolchain/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c48c8e9fbf47a730.rlib
           crate `std`: /home/kxxt/electron-ci/sources/electron/src/third_party/rust-toolchain/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c48c8e9fbf47a730.so
           crate `syn`: /home/kxxt/electron-ci/sources/electron/src/out/chromedriver-riscv/clang_x64_for_rust_host_build_tools/obj/third_party/rust/syn/v2/lib/libsyn_lib.rlib

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0460`.

I am disabling the chromium driver build for now and focus on releasing electron 32 for riscv.

kxxt commented 3 weeks ago

Fixed in v32.0.1 by clearing out/chromedriver-riscv before build. It appears that the build system is not smart enough.