Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openblas-src fails to compile on Windows #104

Open
acgetchell opened this issue Jun 13, 2023 · 2 comments
Open

Openblas-src fails to compile on Windows #104

acgetchell opened this issue Jun 13, 2023 · 2 comments
Labels

Comments

@acgetchell
Copy link

Self-contained examples:

https://github.com/acgetchell/rust-lapack/actions/runs/5255185673/jobs/9494761522#step:4:178

https://github.com/acgetchell/rust-blas/actions/runs/5251640672/jobs/9486785353#step:4:178

Error message:

 Compiling openblas-src v0.10.8
     Running `rustc --crate-name build_script_build --edition=2018 C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\openblas-src-0.10.8\build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg "feature=\"cblas\"" --cfg "feature=\"default\"" --cfg "feature=\"lapacke\"" -C metadata=7c3e534e6bdefbdc -C extra-filename=-7c3e534e6bdefbdc --out-dir D:\a\rust-blas\rust-blas\target\debug\build\openblas-src-7c3e534e6bdefbdc -L dependency=D:\a\rust-blas\rust-blas\target\debug\deps --extern dirs=D:\a\rust-blas\rust-blas\target\debug\deps\libdirs-78c0907c5cd4a510.rlib --extern openblas_build=D:\a\rust-blas\rust-blas\target\debug\deps\libopenblas_build-e342eaca75b6d864.rlib --extern vcpkg=D:\a\rust-blas\rust-blas\target\debug\deps\libvcpkg-d90afdd57114e126.rlib --cap-lints allow -L native=C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.42.2\lib -L native=C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.0\lib`
     Running `D:\a\rust-blas\rust-blas\target\debug\build\openblas-src-7c3e534e6bdefbdc\build-script-build`
error: failed to run custom build command for `openblas-src v0.10.8`

Caused by:
  process didn't exit successfully: `D:\a\rust-blas\rust-blas\target\debug\build\openblas-src-7c3e534e6bdefbdc\build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at 'Non-vcpkg builds are not supported on Windows. You must use the 'system' feature.', C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\openblas-src-0.10.8\build.rs:103:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 1.
@acgetchell
Copy link
Author

Also discussed here:

blas-lapack-rs/blas#39

@acgetchell
Copy link
Author

acgetchell commented Jun 16, 2023

My next attempt uses vcpkg to build OpenBLAS ahead of time, and then use this package with the system feature.

https://github.com/acgetchell/rust-blas/blob/main/.github/workflows/windows.yml

As suggested by:

https://github.com/acgetchell/rust-blas/actions/runs/5285947746/jobs/9564907076#step:7:133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants