Not able to compile on intel based Mac

Abierto
#315 7 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
macos, rust
Área
build-system

Línea de trabajo

Start with the reported Cargo.toml and run the supplied minimal Rust example with cargo run on Intel macOS. Investigate the OpenBLAS and linker setup behind the __gfortran_concat_string errors; done means the example compiles and runs successfully on the reported platform.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Issue I have
= note: ld: warning: could not create compact unwind for _chseqr_: stack subq instruction is too different from dwarf stack size
          ld: warning: could not create compact unwind for _dhseqr_: stack subq instruction is too different from dwarf stack size
          ld: warning: could not create compact unwind for _shseqr_: stack subq instruction is too different from dwarf stack size
          ld: warning: could not create compact unwind for _zhseqr_: stack subq instruction is too different from dwarf stack size
          Undefined symbols for architecture x86_64:
            "__gfortran_concat_string", referenced from:
                _dormbr_ in libopenblas_src-4151971bd483fad6.rlib(dormbr.o)
                _dormlq_ in libopenblas_src-4151971bd483fad6.rlib(dormlq.o)
                _dormqr_ in libopenblas_src-4151971bd483fad6.rlib(dormqr.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Code to reproduce this issue

use ndarray::{array, Array, Ix2};
use ndarray_linalg::{LeastSquaresSvd, LeastSquaresSvdInto, LeastSquaresSvdInPlace};

fn main() {
    let array_a: Array<f64, Ix2> = array![[1.,2.]];
    let array_b: Array<f64, Ix2> = array![[1.,2.]];
    let solution = array_b.least_squares(&array_a).unwrap().solution;
    println!("{:?}", solution);
}

cargo.toml

[package]
name = "example"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
ndarray = { version = "0.15.0", features = ["approx", "blas"] }
ndarray-stats = "0.5"
ndarray-linalg = { version = "0.14.1", features = ["openblas-static"] }

just do cargo run will reproduce this issue

Version information
rustup --version
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.63.0-nightly (bb8c2f411 2022-06-19)`

rustc --version
rustc 1.63.0-nightly (bb8c2f411 2022-06-19)

cargo --version
cargo 1.63.0-nightly (8d42b0e87 2022-06-17)

MacOS 12 with Intel Chip

Any help/pointer will be appreciated!

Lenguaje dominante
Rust
Estrellas
452
Forks
95
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rust-ndarray/ndarray-linalg

Todos los issues de rust-ndarray/ndarray-linalg

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.