Blockstream / green_qt

Blockstream Green App
GNU General Public License v3.0
203 stars 32 forks source link

Linux build fails with rust error #58

Open cd2357 opened 3 years ago

cd2357 commented 3 years ago

Description

Trying to build static release on Debian 10 using command from BUILD.md

docker run -v $PWD:/ga greenaddress/ci@sha256:c8f7bf686098af9e34b87f064e4fd29481d29f1a920b99e2ef485baf4ae774e0 /bin/sh -c "cd /ga && ./tools/buildgreen.sh linux && cp /docker_bld_root/build-linux-gcc/Green /ga/Green"

fails with

...
   Compiling num-traits v0.1.43
   Compiling sha2 v0.8.2
   Compiling regex v1.5.4
   Compiling polyval v0.5.3
error[E0658]: unions with non-`Copy` fields are unstable
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/polyval-0.5.3/src/backend/autodetect.rs:26:1
   |
26 | / union Inner {
27 | |     intrinsics: ManuallyDrop<intrinsics::Polyval>,
28 | |     soft: ManuallyDrop<soft::Polyval>,
29 | | }
   | |_^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/55149

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `polyval`.
warning: build failed, waiting for other jobs to finish...
error: build failed
[17/32] Compiling C++ object src/libgreenaddress.so.p/network_parameters.cpp.o
[18/32] Compiling C++ object src/libgreenaddress.so.p/session.cpp.o
[19/32] Compiling C++ object src/libgreenaddress.so.p/ga_session.cpp.o
[20/32] Compiling C++ object src/libgreenaddress.so.p/session_impl.cpp.o
[21/32] Compiling C++ object src/libgreenaddress.so.p/signer.cpp.o
[22/32] Compiling C object src/libgreenaddress.so.p/sqlite3_sqlite3.c.o
[23/32] Compiling C++ object src/libgreenaddress.so.p/socks_client.cpp.o
ninja: build stopped: subcommand failed.

Version

https://github.com/Blockstream/green_qt/commit/49edaf6414135719b4c99ddee81621420e5e2b70 (latest master)

Steps to reproduce

Expected behaviour

Build succeeds

Actual behaviour

Build fails

Device or machine

Latest Debian 10 8 cores, 16 GB RAM