-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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] update to 0.3.15 version and add dynamic arch feature #15238
[openblas] update to 0.3.15 version and add dynamic arch feature #15238
Conversation
Have you tested the feature |
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
@NancyLi1013 before PR I build with dynamic-arch feature for x64-linux, today I try to build for arm64-android and version 0.3.10 would not build. I also update version. |
Oh, how to debug failed tests? |
For the failure on osx, there is no error log generated. I have rerun it and let's see the new test result. For the feature test, you can test x86-windows and x64-windows. |
The failures are like this:
|
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
The same error on x64-osx |
Related PR #14760 |
Problem here is: |
@martin-frbg thank you! |
up |
LGTM now, thanks for your patience and contribution @xandox. Also thanks everyone here. |
ports/openblas/portfile.cmake
Outdated
|
||
if(VCPKG_TARGET_IS_OSX) | ||
if("dynamic-arch" IN_LIST FEATURES) | ||
set(VCPKG_LIBRARY_LINKAGE dynamic) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally should not change library linkage if a feature is enabled. If a feature does not support a linkage type, we should output message(FATAL_ERROR)
. Does the dynamic-arch
feature work for other platforms? We should also output an error if this feature is enabled on platforms that are not supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There actually a issue not with openblas
directly but in ninja.
https://gitlab.kitware.com/cmake/cmake/-/issues/16731
rsp-file contains 7001 lines of other libraries.
Can you suggest some other ways to resolve it without message(FATAL_ERROR)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
plus a message about why this is happening.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@xandox |
done, once again |
LGTM now, thanks for your PR. @xandox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM once merge conflicts have been solved
…blas_dynamic_arch_feature # Conflicts: # ports/openblas/vcpkg.json # versions/baseline.json # versions/o-/openblas.json
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Add dynamic arch feature to OpenBLAS ports
What does your PR fix? Fixes # Add new feature
Which triplets are supported/not supported? Have you updated the CI baseline? Same
Does your PR follow the maintainer guide? yes