Skip to content

Not able to compile on intel based Mac #315

Open
@Ykid

Description

@Ykid

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions