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

[question] Installing mlpack under clang-cl in Windows runs into openblas error #17740

Open
1 task done
onecable5781 opened this issue Feb 9, 2025 · 2 comments
Open
1 task done
Assignees

Comments

@onecable5781
Copy link

onecable5781 commented Feb 9, 2025

What is your question?

Hello,

I have a profile clang-cl:

[settings]
os=Windows
arch=x86_64
build_type=Release
compiler=clang
compiler.version=14
compiler.cppstd=gnu17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.runtime_version=v143

[buildenv]
PATH=+(path)C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/Llvm/x64/bin

[conf]
tools.cmake.cmaketoolchain:generator=Visual Studio 17

Given this, I issue command

conan install --requires="mlpack/[*]" --build=missing --profile=clang-cl

This runs for a while but eventually ends with

  lapack.vcxproj -> C:\Users\onecable\.conan2\p\b\openbaa13d223b09c6\b\build\lapack\lapack.dir\Rel
  ease\lapack.lib
  Building Custom Rule C:/Users/onecable/.conan2/p/b/openbaa13d223b09c6/b/src/CMakeLists.txt
  Building Custom Rule C:/Users/onecable/.conan2/p/b/openbaa13d223b09c6/b/src/CMakeLists.txt
  C:\Users\onecable\.conan2\p\b\openbaa13d223b09c6\b\build\kernel\kernel.dir\Release\samax_k.obj:
  no such file or directory
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.Cp
pCommon.targets(1599,5): error MSB6006: "llvm-lib.exe" exited with code 1. [C:\Users\onecable\.con
an2\p\b\openbaa13d223b09c6\b\build\openblas_static.vcxproj]

openblas/0.3.25: ERROR:
Package '045f0c02478580cb50b4828b09d921f2ce01bc2c' build failed
openblas/0.3.25: WARN: Build folder C:\Users\onecable\.conan2\p\b\openbaa13d223b09c6\b\build
ERROR: openblas/0.3.25: Error in build() method, line 235
        cmake.build()
        ConanException: Error 1 while executing

Could you please suggest a way to fix this error and whether I should pursue this with mlpack?

Thank you.

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded memsharded self-assigned this Feb 9, 2025
@memsharded
Copy link
Member

Hi @onecable5781

Thanks for your feedback.

Some quick information: recipes and packages in ConanCenter are built and tested with msvc compiler. This means that support for other compilers might vary, and there can be recipes that are not ready and will not compile with other compilers in Windows, and there can be even libraries that will fail to compile with other compilers in Windows, not because of the Conan recipe, but the library build system might have limitations too.

For reporting issues against the Conan client, it is much better to start with a default minimal project, like the one created with the template conan new cmake_lib. Please also report your Conan version (conan version output).

@onecable5781
Copy link
Author

onecable5781 commented Feb 10, 2025

Hi James,

The output of conan version is

version: 2.12.1
conan_path: C:\Users\onecable\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\Scripts\conan
python
  version: 3.13.2
  sys_version: 3.13.2 (tags/v3.13.2:4f8bb39, Feb  4 2025, 15:23:48) [MSC v.1942 64 bit (AMD64)]
  sys_executable: C:\Users\onecable\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\python.exe
  is_frozen: False
  architecture: AMD64
system
  version: 10.0.26100
  platform: Windows-11-10.0.26100-SP0
  system: Windows
  release: 11
  cpu: Intel64 Family 6 Model 183 Stepping 1, GenuineIntel

I tried:

conan new cmake_lib -d name=mlpackclang -d requires=mlpack/4.4.0 --force

followed by

conan build . --profile=clang-cl

and this gives the same error as in my original post.

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

No branches or pull requests

2 participants