Skip to content

Conversation

@jimwang118
Copy link
Contributor

Fixes #36031

ld: error: undefined symbol: cabsf
>>> referenced by c_cblat2c.c:3566 (/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/openblas/src/v0.3.25-dc6d649124.clean/ctest/c_cblat2c.c:3566)
>>>               ctest/CMakeFiles/xccblat2.dir/c_cblat2c.c.o:(cmvch_)
  • Changes comply with the maintainer guide
  • SHA512s are updated for each updated download
  • The "supports" clause reflects platforms that may be fixed by this new version
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

Usage test pass with following triplets:

x64-windows
x64-osx

@jimwang118 jimwang118 added category:port-bug The issue is with a library, which is something the port should already support info:internal labels Jan 8, 2024
Copy link
Contributor

@dg0yt dg0yt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR: The port doesn't correctly acquire git (if needed at all) and sed.

Comment on lines 35 to +36
if(VCPKG_TARGET_IS_OSX)
list(APPEND COMMON_OPTIONS -DONLY_CBLAS=1)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this change also make it work for android?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added option separately for Android.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added option separately for Android.

Did you test it? Android is skipped in ci.baseline.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dg0yt When I test on local Android, the following error occurs. My local environment is an Android environment built under Linux.
When cross compiling, a TARGET is required.
@bmanga Can you help with testing on your Android environment?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you were adding untested changes...
I prefer to start with logs from vcpkg CI before spending local build time.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conclusion is wrong. Only arm64 and arm are detected. For others, you are asked to define TARGET.
And I only ask that the android shall be tested before merged. If possible, by removing the ci.baseline entries.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible targets are found here:
https://github.com/OpenMathLib/OpenBLAS/blob/d6a5174e9c50b9f68db96d7d7818f92cdfb4e7ec/TargetList.txt
The (Android x64) task is to make a reasonable choice in the portfile. And the user may even override in the triplet file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I queried the CPU model of the device, but it was not in the support list provided by xxx and therefore could not be tested.
16 AMD EPYC 7452 32-Core Processor

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jimwang118 this PR works for me, thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for testing.

@jimwang118 jimwang118 marked this pull request as ready for review January 11, 2024 02:05
@jimwang118 jimwang118 marked this pull request as draft January 11, 2024 08:52
@jimwang118
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bmanga
Copy link

bmanga commented Feb 16, 2024

Any updates on this?

@jimwang118 jimwang118 marked this pull request as ready for review February 20, 2024 07:05
@Cheney-W Cheney-W added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Feb 26, 2024
@vicroms vicroms merged commit 3dd44b9 into microsoft:master Feb 27, 2024
vicroms pushed a commit that referenced this pull request Mar 1, 2024
Passing on
https://dev.azure.com/vcpkg/public/_build/results?buildId=99959&view=results.

Added `openblas` to ci.baseline.txt by
#29406, which has been fixed by
#36072:
```
PASSING, REMOVE FROM FAIL LIST: openblas:arm-neon-android
PASSING, REMOVE FROM FAIL LIST: openblas:arm64-android
```

Add the following ports to the ci.baseline.txt because they are
direct/indirect downstream of `openblas`:
```
REGRESSION: blas:arm-neon-android failed with BUILD_FAILED. If expected, add blas:arm-neon-android=fail to /vcpkg/scripts/azure-pipelines/../ci.baseline.txt.
REGRESSION: lapack-reference:arm64-android failed with BUILD_FAILED. If expected, add lapack-reference:arm64-android=fail to /vcpkg/scripts/azure-pipelines/../ci.baseline.txt.
REGRESSION: clapack:arm64-android failed with BUILD_FAILED. If expected, add clapack:arm64-android=fail to /vcpkg/scripts/azure-pipelines/../ci.baseline.txt.
REGRESSION: shogun:arm64-android failed with BUILD_FAILED. If expected, add shogun:arm64-android=fail to /vcpkg/scripts/azure-pipelines/../ci.baseline.txt.
```


- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] ~SHA512s are updated for each updated download.~
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [ ] ~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~
- [ ] ~Any patches that are no longer applied are deleted from the
port's directory.~
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.

---------

Co-authored-by: Monica <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-bug The issue is with a library, which is something the port should already support info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[openblas] Build error on arm64-android

5 participants