Closed JulienBeg closed 9 months ago
What is your version of rustc
? Looks like your compiler is out of date, have you tried updating to the latest stable Rust?
I updated my rust compiler to rustc 1.76.0 (07dca489a 2024-02-04) from rustc 1.64.0 (a55dd71d5 2022-09-19) and it solved the problem indeed.
Maybe the command line "rustup update" should be added in the installation guidelines.
Thanks !
How do you install SCALib ?
Explain what steps you followed to install SCALib.
I cloned the repo and tryed to install with pip.
Please give the exact commands you run.
git clone https://github.com/simple-crypto/SCALib cd SCALib pip install .
If installing from git, what is the git commit id (
git rev-parse HEAD
) ?a0057440792a4d54926e3e915e699cc5cf8b46d3
Observed behavior
Defaulting to user installation because normal site-packages is not writeable Processing /home/julienb/Projects/SCALib Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy~=1.19 in /home/julienb/.local/lib/python3.10/site-packages (from scalib==0.5.7.dev16+ga005744) (1.23.4) Requirement already satisfied: py-cpuinfo~=9.0 in /home/julienb/.local/lib/python3.10/site-packages (from scalib==0.5.7.dev16+ga005744) (9.0.0) Building wheels for collected packages: scalib Building wheel for scalib (pyproject.toml) ... error error: subprocess-exited-with-error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: 226~~~~~~~~~~~~~~~~~~~~~~ warning: 227~~~~~~~~~~~ warning: 229~~~~~~~~~~~ warning: 230~~~~~~~~~~~ warning: 231~~~~~~~~~~~~~~ warning: 232~~~~~~~~~~~warning: 233~~~~~~~~~~~~~~~~~~~~~~ warning: /home/julienb/Projects/SCALib/src/scalib_ext/geigen/include/Eigen/src/Core/products/SelfadjointMatrixVector.h: In static member function ‘static void Eigen::internal::selfadjoint_product_impl<Lhs, LhsMode, false, Rhs, 0, true>::run(Dest&, const Lhs&, const Rhs&, const Scalar&) [with Dest = Eigen::Map<Eigen::Matrix<double, -1, 1>, 0, Eigen::Stride<0, 0> >; Lhs = const Eigen::Ref<const Eigen::Matrix<double, -1, -1>, 0, Eigen::OuterStride<> >; int LhsMode = 17; Rhs = Eigen::Map<const Eigen::Matrix<double, -1, 1>, 0, Eigen::Stride<0, 0> >]’: warning: /home/julienb/Projects/SCALib/src/scalib_ext/geigen/include/Eigen/src/Core/products/SelfadjointMatrixVector.h:227:7: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized] warning: 225~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: 226~~~~~~~~~~~~~~~~~~~~~~ warning: 227~~~~~~~~~~~ warning: 229~~~~~~~~~~~ warning: 230~~~~~~~~~~~ warning: 231~~~~~~~~~~~~~~ warning: 232~~~~~~~~~~~warning: 233~~~~~~~~~~~~~~~~~~~~~~ Fresh ndarray v0.15.6 Fresh pyo3-ffi v0.18.1 Fresh hytra v0.1.2 Fresh petgraph v0.6.3 Fresh ranklib v0.1.0 (/home/julienb/Projects/SCALib/src/scalib_ext/ranklib) Fresh blis-sys2 v0.2.1 Fresh nshare v0.9.0 Fresh pyo3 v0.18.1 Fresh geigen v0.1.0 (/home/julienb/Projects/SCALib/src/scalib_ext/geigen) Compiling scalib v0.1.0 (/home/julienb/Projects/SCALib/src/scalib_ext/scalib) Fresh numpy v0.18.0 Runningrustc --crate-name scalib --edition=2021 scalib/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="blis"' --cfg 'feature="blis-src"' --cfg 'feature="blis-sys2"' -C metadata=62a83ad9588b50da -C extra-filename=-62a83ad9588b50da --out-dir /home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps -L dependency=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps --extern ariadne=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libariadne-f43cdf381310ab90.rmeta --extern blis_src=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libblis_src-c50d39983281003d.rmeta --extern blis_sys2=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libblis_sys2-d9c0b03f1629a35a.rmeta --extern chumsky=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libchumsky-fd22ee02bc2c07bd.rmeta --extern crossbeam_utils=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libcrossbeam_utils-8959d43212e50236.rmeta --extern geigen=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libgeigen-152d3daf20562376.rmeta --extern hytra=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libhytra-0c8b87403a5039ee.rmeta --extern index_vec=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libindex_vec-771500394e0099e8.rmeta --extern indexmap=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libindexmap-ecdb996f1516c3d0.rmeta --extern indicatif=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libindicatif-994593b5f0c53f15.rmeta --extern itertools=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libitertools-158969a247d860ed.rmeta --extern kdtree=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libkdtree-eb569697783a79f3.rmeta --extern matrixmultiply=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libmatrixmultiply-8acc3bf7100cf468.rmeta --extern nalgebra=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libnalgebra-749573c968fb93ef.rmeta --extern ndarray=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libndarray-ba7a53ea58727036.rmeta --extern nshare=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libnshare-4865f777b822848d.rmeta --extern num_integer=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libnum_integer-467243a4a395632d.rmeta --extern num_traits=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libnum_traits-115d2597bf4174da.rmeta --extern petgraph=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libpetgraph-8426ddda619bc3f5.rmeta --extern rayon=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/librayon-eaafad715d867af4.rmeta --extern realfft=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/librealfft-e742c1cde0a60379.rmeta --extern serde=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libserde-6e64f05f2dd715c6.rmeta --extern thiserror=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/deps/libthiserror-a29f1b55c89fbc4f.rmeta -C target-cpu=native -L native=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/build/blis-src-942b182dcf2f9337/out/lib -L native=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/build/psm-cf6bb837b5cabf15/out -L native=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/build/geigen-0f62bc77f5e8ac1f/out -L native=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/build/cxx-e1afc98e6a483d19/out -L native=/home/julienb/Projects/SCALib/src/scalib_ext/target/release/build/link-cplusplus-671585b0dcd4530c/out
error[E0658]:let...else
statements are unstable --> scalib/src/sasca/belief_propagation.rs:432:5note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for scalib Failed to build scalib ERROR: Could not build wheels for scalib, which is required to install pyproject.toml-based projects
Provide any additional comment on the problematic behavior.
Environment (please complete the following information):