simple-crypto / SCALib

Side-Channel Analysis Library
GNU Affero General Public License v3.0
74 stars 19 forks source link

Install issue from GitHub #137

Closed JulienBeg closed 9 months ago

JulienBeg commented 9 months ago

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

× Building wheel for scalib (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [258 lines of output] Build config: noflags=False portable=False use_avx2=False rustflags=' -C target-cpu=native'. running bdist_wheel running build running build_py copying src/scalib/init.py -> build/lib.linux-x86_64-cpython-310/scalib copying src/scalib/build_config.py -> build/lib.linux-x86_64-cpython-310/scalib copying src/scalib/version.py -> build/lib.linux-x86_64-cpython-310/scalib copying src/scalib/tools.py -> build/lib.linux-x86_64-cpython-310/scalib copying src/scalib/utils.py -> build/lib.linux-x86_64-cpython-310/scalib copying src/scalib/config/init.py -> build/lib.linux-x86_64-cpython-310/scalib/config copying src/scalib/config/threading.py -> build/lib.linux-x86_64-cpython-310/scalib/config copying src/scalib/metrics/snr.py -> build/lib.linux-x86_64-cpython-310/scalib/metrics copying src/scalib/metrics/init.py -> build/lib.linux-x86_64-cpython-310/scalib/metrics copying src/scalib/metrics/ttest.py -> build/lib.linux-x86_64-cpython-310/scalib/metrics copying src/scalib/metrics/information.py -> build/lib.linux-x86_64-cpython-310/scalib/metrics copying src/scalib/postprocessing/init.py -> build/lib.linux-x86_64-cpython-310/scalib/postprocessing copying src/scalib/postprocessing/rankestimation.py -> build/lib.linux-x86_64-cpython-310/scalib/postprocessing copying src/scalib/attacks/init.py -> build/lib.linux-x86_64-cpython-310/scalib/attacks copying src/scalib/attacks/sascagraph.py -> build/lib.linux-x86_64-cpython-310/scalib/attacks copying src/scalib/attacks/factor_graph.py -> build/lib.linux-x86_64-cpython-310/scalib/attacks copying src/scalib/modeling/init.py -> build/lib.linux-x86_64-cpython-310/scalib/modeling copying src/scalib/modeling/rldaclassifier.py -> build/lib.linux-x86_64-cpython-310/scalib/modeling copying src/scalib/modeling/ldaclassifier.py -> build/lib.linux-x86_64-cpython-310/scalib/modeling running build_ext running build_rust cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/scalib_ext/scalib-py/Cargo.toml --release -v --features pyo3/extension-module blis pyo3/abi3 --crate-type cdylib -- Fresh autocfg v1.1.0 Fresh unicode-ident v1.0.6 Fresh version_check v0.9.4 Fresh cc v1.0.79 Fresh glob v0.3.1 Fresh scopeguard v1.1.0 Fresh cfg-if v1.0.0 Fresh regex-syntax v0.6.28 Fresh termcolor v1.2.0 Fresh bitflags v1.3.2 Fresh peeking_take_while v0.1.2 Fresh shlex v1.1.0 Fresh lazycell v1.3.0 Fresh once_cell v1.17.0 Fresh rawpointer v0.2.1 Fresh bytemuck v1.13.1 Fresh vec_map v0.8.2 Fresh minimal-lexical v0.2.1 Fresh humantime v2.1.0 Fresh cxxbridge-flags v1.0.89 Fresh strength_reduce v0.2.4 Fresh strsim v0.8.0 Fresh ansi_term v0.12.1 Fresh either v1.8.1 Fresh smallvec v1.10.0 Fresh lazy_static v1.4.0 Fresh color_quant v1.1.0 Fresh byteorder v1.4.3 Fresh unicode-width v0.1.10 Fresh yansi v0.5.1 Fresh fixedbitset v0.4.2 Fresh unindent v0.1.11 Fresh number_prefix v0.4.0 Fresh indoc v1.0.9 Fresh rustc-hash v1.1.0 Fresh libloading v0.7.4 Fresh textwrap v0.11.0 Fresh matrixmultiply v0.3.2 Fresh codespan-reporting v0.11.1 Fresh safe_arch v0.6.0 Fresh thread_local v1.1.6 Fresh itertools v0.10.5 Fresh ariadne v0.1.5 Fresh proc-macro2 v1.0.51 Fresh memchr v2.5.0 Fresh libc v0.2.139 Fresh crossbeam-utils v0.8.14 Fresh log v0.4.17 Fresh target-lexicon v0.12.5 Fresh wide v0.7.8 Fresh quote v1.0.23 Fresh num-traits v0.2.15 Fresh aho-corasick v0.7.20 Fresh memoffset v0.7.1 Fresh num_cpus v1.15.0 Fresh getrandom v0.2.8 Fresh nom v7.1.3 Fresh scratch v1.0.3 Fresh paste v1.0.11 Fresh parking_lot_core v0.9.7 Fresh typenum v1.16.0 Fresh portable-atomic v0.3.19 Fresh console v0.15.5 Fresh blis-src v0.2.1 Fresh clang-sys v1.4.0 Fresh crossbeam-channel v0.5.6 Fresh atty v0.2.14 Fresh nom v5.1.2 Fresh which v3.1.1 Fresh which v4.4.0 Fresh link-cplusplus v1.0.8 Fresh lock_api v0.4.9 Fresh psm v0.1.21 Fresh atomic v0.5.1 Fresh memoffset v0.8.0 Fresh syn v1.0.107 Fresh num-integer v0.1.45 Fresh num-complex v0.4.3 Fresh regex v1.7.1 Fresh crossbeam-epoch v0.9.13 Fresh ahash v0.7.6 Fresh approx v0.4.0 Fresh cexpr v0.6.0 Fresh approx v0.5.1 Fresh indicatif v0.17.3 Fresh clap v2.34.0 Fresh cexpr v0.4.0 Fresh parking_lot v0.12.1 Fresh stacker v0.1.15 Fresh serde_derive v1.0.152 Fresh crossbeam-deque v0.8.2 Fresh pyo3-build-config v0.18.1 Fresh transpose v0.2.2 Fresh primal-check v0.3.3 Fresh env_logger v0.8.4 Fresh cxx-build v1.0.89 Fresh num-rational v0.4.1 Fresh hashbrown v0.12.3 Fresh nalgebra-macros v0.1.0 Fresh thiserror-impl v1.0.38 Fresh bindgen v0.64.0 Fresh cxxbridge-macro v1.0.89 Fresh simba v0.7.3 Fresh pyo3-macros-backend v0.18.1 Fresh serde v1.0.152 Fresh rayon-core v1.11.0 Fresh bindgen v0.58.1 Fresh rustfft v6.1.0 Fresh image v0.24.5 Fresh pyo3-macros v0.18.1 Fresh nalgebra v0.30.1 Fresh thiserror v1.0.38 Fresh cxx v1.0.89 Fresh chumsky v0.9.2 Fresh rayon v1.7.0 Fresh indexmap v1.9.2 Fresh kdtree v0.5.1 Fresh realfft v3.2.0 Fresh index_vec v0.1.3 Fresh realfft v2.0.1 Fresh bincode v1.3.3 warning: In file included from /home/julienb/Projects/SCALib/src/scalib_ext/geigen/include/Eigen/Core:503, warning: from /home/julienb/Projects/SCALib/src/scalib_ext/geigen/include/Eigen/Eigenvalues:11, warning: from src/geigen.cpp:3: 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::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false>; Lhs = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false>; int LhsMode = 17; Rhs = Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, -1, 1> >, const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>, -1, 1, false> >]’: 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 internal::selfadjoint_matrix_vector_product<Scalar, Index, (internal::traits::Flags&RowMajorBit) ? RowMajor : ColMajor, warning: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: 226 int(LhsUpLo), bool(LhsBlasTraits::NeedToConjugate), bool(RhsBlasTraits::NeedToConjugate)>::run warning: ~~~~~~~~~~~~~~~~~~~~~~ warning: 227 ( warning: ^ warning: 228 lhs.rows(), // size warning: ~~~~~~~~~~~ warning: 229 &lhs.coeffRef(0,0), lhs.outerStride(), // lhs info warning: ~~~~~~~~~~~ warning: 230 actualRhsPtr, // rhs info warning: ~~~~~~~~~~~ warning: 231 actualDestPtr, // result info warning: ~~~~~~~~~~~~~~ warning: 232 actualAlpha // scale factor warning: ~~~~~~~~~~~ warning: 233 ); warning: ~ warning: /home/julienb/Projects/SCALib/src/scalib_ext/geigen/include/Eigen/src/Core/products/SelfadjointMatrixVector.h:39:24: note: by argument 4 of type ‘const double’ to ‘static void Eigen::internal::selfadjoint_matrix_vector_product<Scalar, Index, StorageOrder, UpLo, ConjugateLhs, ConjugateRhs, Version>::run(Index, const Scalar, Index, const Scalar, Scalar, Scalar) [with Scalar = double; Index = long int; int StorageOrder = 0; int UpLo = 1; bool ConjugateLhs = false; bool ConjugateRhs = false; int Version = 0]’ declared here warning: 39 EIGEN_DONT_INLINE void selfadjoint_matrix_vector_product<Scalar,Index,StorageOrder,UpLo,ConjugateLhs,ConjugateRhs,Version>::run( warning: ^~~~~~~~~~~~~~~~~~~~~~~ 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 internal::selfadjoint_matrix_vector_product<Scalar, Index, (internal::traits::Flags&RowMajorBit) ? RowMajor : ColMajor, warning: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: 226 int(LhsUpLo), bool(LhsBlasTraits::NeedToConjugate), bool(RhsBlasTraits::NeedToConjugate)>::run warning: ~~~~~~~~~~~~~~~~~~~~~~ warning: 227 ( warning: ^ warning: 228 lhs.rows(), // size warning: ~~~~~~~~~~~ warning: 229 &lhs.coeffRef(0,0), lhs.outerStride(), // lhs info warning: ~~~~~~~~~~~ warning: 230 actualRhsPtr, // rhs info warning: ~~~~~~~~~~~ warning: 231 actualDestPtr, // result info warning: ~~~~~~~~~~~~~~ warning: 232 actualAlpha // scale factor warning: ~~~~~~~~~~~ warning: 233 ); warning: ~ warning: /home/julienb/Projects/SCALib/src/scalib_ext/geigen/include/Eigen/src/Core/products/SelfadjointMatrixVector.h:39:24: note: by argument 4 of type ‘const double’ to ‘static void Eigen::internal::selfadjoint_matrix_vector_product<Scalar, Index, StorageOrder, UpLo, ConjugateLhs, ConjugateRhs, Version>::run(Index, const Scalar, Index, const Scalar, Scalar, Scalar) [with Scalar = double; Index = long int; int StorageOrder = 0; int UpLo = 1; bool ConjugateLhs = false; bool ConjugateRhs = false; int Version = 0]’ declared here warning: 39 EIGEN_DONT_INLINE void selfadjoint_matrix_vector_product<Scalar,Index,StorageOrder,UpLo,ConjugateLhs,ConjugateRhs,Version>::run( warning: ^~~~~~~~~~~~~~~~~~~~~~~ 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 Running rustc --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:5
432 / let FactorKind::Assign {
433 expr: ExprFactor::AND { vars_neg },
434 has_res,
435 } = &factor.kind
436 else {
437 unreachable!()
438 };
__^
      = note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information

  error[E0658]: `let...else` statements are unstable
     --> scalib/src/sasca/belief_propagation.rs:886:5
      |
  886 | /     let fg::FactorKind::GenFactor { operands, .. } = &factor.kind else {
  887 | |         unreachable!()
  888 | |     };
      | |______^
      |
      = note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information

  error[E0658]: `let...else` statements are unstable
     --> scalib/src/sasca/bp_compute.rs:241:17
      |
  241 | /                 let DistrRepr::Full(ref mut rp) = &mut running_product.value else {
  242 | |                     unreachable!()
  243 | |                 };
      | |__________________^
      |
      = note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information

  error[E0658]: `let...else` statements are unstable
     --> scalib/src/sasca/bp_compute.rs:263:13
      |
  263 | /             let DistrRepr::Full(ref mut rv) = &mut self.value else {
  264 | |                 unreachable!()
  265 | |             };
      | |______________^
      |
      = note: see issue #87335 <https://github.com/rust-lang/rust/issues/87335> for more information

  For more information about this error, try `rustc --explain E0658`.
  error: could not compile `scalib` due to 4 previous errors

  Caused by:
    process didn't exit successfully: `rustc --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` (exit status: 1)
  error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/scalib_ext/scalib-py/Cargo.toml --release -v --features 'pyo3/extension-module blis pyo3/abi3' --crate-type cdylib --` failed with code 101
  [end of output]

note: 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):

rishubn commented 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?

JulienBeg commented 9 months ago

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 !