rust-ndarray / ndarray-linalg

Linear algebra package for rust-ndarray using LAPACK binding
Other
376 stars 77 forks source link

Rust 1.79 failed? #377

Closed jianshu93 closed 7 months ago

jianshu93 commented 7 months ago

Hello Team,

I have the follow error when compiling on Rust nightly 1.79:

error[E0259]: the name _src is defined multiple times --> /storage/home/hcoda1/4/jzhao399/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lax-0.16.0/src/lib.rs:82:1 79 extern crate intel_mkl_src as _src; ----------------------------------- previous import of the extern crate _src here ... 82 extern crate openblas_src as _src; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _src reimported here

= note: _src must be defined only once in the type namespace of this module help: you can use as to change the binding name of the import | 82 | extern crate openblas_src as other__src;

Features is like this:

ndarray = { version = "0.15", features = ["rayon", "serde"] } ndarray-linalg = { version = "0.16", default-features = false }

intel-mkl-static = [ "ndarray/blas", "ndarray-linalg/intel-mkl-static",]

Any idea?

Thanks,

Jianshu