numpy fails to build (sage 9.2.beta13 on archlinux)

27 views
Skip to first unread message

Vincent Delecroix

unread,
Sep 23, 2020, 4:39:15 AM9/23/20
to sage-devel
Dear all,

The build process on my machine stopped at numpy. The configure
output and the log are attached.

Best
Vincent
numpy-1.19.1.log
config.log
config.status

Dima Pasechnik

unread,
Sep 23, 2020, 7:50:38 AM9/23/20
to sage-devel
This looks like a failure by numpy to recognise openblas/cblas/lapack
provided by the system.
build/pkgs/openblas/distros/arch.txt says that you need to install
openblas, lapack, and cblas packages.
(our tests might fail to check that all of them are there)

Then it could be that pkg-config setup is broken for some reason. If you fire up
./sage --buildsh
then PKG_CONFIG_PATH should point to SAGE_LOCAL/lib/pkgconfig (and no
other entries)
and
pkg-config --modversion openblas
pkg-config --modversion cblas
pkg-config --modversion lapack

should all return meaningful values.
(Note that the business with these generated *.pc files in
SAGE_LOCAL/lib/pkgconfig is quite fragile - it could be it
got broken again by this update...)


On Wed, Sep 23, 2020 at 9:39 AM Vincent Delecroix
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/5a18877d-b7d4-cb64-7cbd-9e5d767f0ef5%40gmail.com.

Vincent Delecroix

unread,
Sep 23, 2020, 9:37:27 AM9/23/20
to sage-...@googlegroups.com
After the ./configure (and nothing compiled) I got

(sage-buildsh) $ echo ${PKG_CONFIG_PATH}
/opt/sage/local/lib/pkgconfig
(sage-buildsh) $ pkg-config --modversion openblas
0.3.10
(sage-buildsh) $ pkg-config --modversion cblas
3.9.0
(sage-buildsh) $ pkg-config --modversion lapack
3.9.0

Retrying to build after that, it now worked! I don't understand
what changed between the two attempts.

Vincent
Reply all
Reply to author
Forward
0 new messages