Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 844013 - sci-libs/openblas-0.3.20 fails to build on loong: error: unrecognized argument in option '-mabi=lp64'
Summary: sci-libs/openblas-0.3.20 fails to build on loong: error: unrecognized argumen...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Loong Linux
: Normal normal
Assignee: loong project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-05-13 08:10 UTC by WANG Xuerui
Modified: 2022-05-13 13:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WANG Xuerui gentoo-dev 2022-05-13 08:10:25 UTC
The port contributed by Loongson is only verified on old-world [1], which has different compiler flags conventions than the current spec [2]. Plus the DGEMM kernels make use of LASX which is also unavailable in the new-world/open-source compilers.

I'm working on a fix.

[1]: https://github.com/xianyi/OpenBLAS/pull/3325
[2]: https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html
Comment 1 Larry the Git Cow gentoo-dev 2022-05-13 12:58:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3426da5b81db4d54864ea17d31074e0c60d7e35

commit c3426da5b81db4d54864ea17d31074e0c60d7e35
Author:     WANG Xuerui <xen0n@gentoo.org>
AuthorDate: 2022-05-13 12:44:07 +0000
Commit:     WANG Xuerui <xen0n@gentoo.org>
CommitDate: 2022-05-13 12:57:27 +0000

    sci-libs/openblas: fix build on loong
    
    Closes: https://bugs.gentoo.org/844013
    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>

 .../openblas/files/openblas-0.3.20-fix-loong.patch | 178 +++++++++++++++++++++
 sci-libs/openblas/openblas-0.3.20.ebuild           |   1 +
 2 files changed, 179 insertions(+)