Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830630 - dev-python/scipy-1.7.3 fails to compile: numpy.distutils.system_info.NotFoundError: No LAPACK libraries found
Summary: dev-python/scipy-1.7.3 fails to compile: numpy.distutils.system_info.NotFound...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-05 07:27 UTC by Agostino Sarubbo
Modified: 2022-01-06 16:31 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,63.55 KB, text/plain)
2022-01-05 07:27 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-05 07:27:38 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/scipy-1.7.3 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-05 07:27:40 UTC
Created attachment 761341 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-05 07:27:41 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/var/tmp/portage/dev-python/scipy-1.7.3/temp/environment: line 3143: type: locale: not found
numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found.
Comment 3 MaxKarlErnstPlanck 2022-01-05 18:59:18 UTC
fix is very simple -- comparing two patches:
numpy-1.21.0-no-hardcode-blasv2.patch with
numpy-1.22.0-no-hardcode-blasv2.patch shows,
that system_info.py in most fresh numpy-1.22 has no `lapack_opt` anymore
(line 56 in https://github.com/gentoo/gentoo/blob/master/dev-python/numpy/files/numpy-1.22.0-no-hardcode-blasv2.patch#L56)

I reverted numpy-1.22.0-no-hardcode-blasv2.patch to look more like
numpy-1.21.0-no-hardcode-blasv2.patch
I emerged numpy-1.22 with reverted patch and now system_info.py has `lapack_opt` again and now scipy-1.7.3 does not fail.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-06 15:50:59 UTC
(In reply to MaxKarlErnstPlanck from comment #3)
> fix is very simple -- comparing two patches:
> numpy-1.21.0-no-hardcode-blasv2.patch with
> numpy-1.22.0-no-hardcode-blasv2.patch shows,
> that system_info.py in most fresh numpy-1.22 has no `lapack_opt` anymore
> (line 56 in
> https://github.com/gentoo/gentoo/blob/master/dev-python/numpy/files/numpy-1.
> 22.0-no-hardcode-blasv2.patch#L56)
> 
> I reverted numpy-1.22.0-no-hardcode-blasv2.patch to look more like
> numpy-1.21.0-no-hardcode-blasv2.patch
> I emerged numpy-1.22 with reverted patch and now system_info.py has
> `lapack_opt` again and now scipy-1.7.3 does not fail.

ah, thanks
Comment 5 Larry the Git Cow gentoo-dev 2022-01-06 16:31:47 UTC
The bug has been closed via the following commit(s):

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

commit 23970fddef65b3360224902f232eaa6d54357ed2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-01-06 16:31:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-01-06 16:31:39 +0000

    dev-python/numpy: fix blas patch
    
    Closes: https://bugs.gentoo.org/830630
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/numpy-1.22.0-no-hardcode-blasv2.patch    | 40 ++++------------------
 ...{numpy-1.22.0.ebuild => numpy-1.22.0-r1.ebuild} |  2 +-
 2 files changed, 7 insertions(+), 35 deletions(-)