in particular "make toolchain" readies
pkg-config .pc files for blas, lapack, etc.
(on a modern Linux system with most recommended packages installed it does not do much more)
numpy has a very old and a bit insane way to check for its dependencies (basically, compilers and (c)blas/lapack)
So somehow it manages to get itself confused on your machine, when we build it as Sage package.
Your logs say
Traceback (most recent call last):
File "../lapack_conf.py", line 7, in <module>
pc_blas = pkgconfig.parse('cblas blas')
File "/home/brett/Projects/SAGE/sage/local/lib/python3.8/site-packages/pkgconfig/pkgconfig.py", line 248, in parse
_raise_if_not_exists(package)
File "/home/brett/Projects/SAGE/sage/local/lib/python3.8/site-packages/pkgconfig/pkgconfig.py", line 103, in _raise_if_not_exists
raise PackageNotFoundError(package)
pkgconfig.pkgconfig.PackageNotFoundError: cblas not found
which indicate that said pkg-config files are not present (at least one for cblas). They are recreated by the "make toolchain",
so that's why it all works after this. Your config.log indicates that cblas capabilities are available in your openblas,
so it boils down to .pc file not bein set up.
The reason you see netlib Blas is due to your openblas not recognised to have lapack capabilities,
as far as I can see from your config.log.
Maybe an Ubuntu "feature", as it's perfectly possible to have openblas-optimised lapack included in libopenblas, maybe Ubuntu, unlike e.g. Debian, does not do it.
Maybe it's a bug in our tests, which are admittedly a hack, introduced in
This hack is something that should go once we al last deside that we should not bother with packaging compilers
in Sage (FFS, this moment cannot be too soon, it should have happen years ago!), as this hack is meant to cover the case of no Fortran compiler available on the system (but I start ranting here, sorry :-)).
To test is your Sage is OK, you can run
make ptest
to run the standard Sage tests, to see if nothing is broken (takes 2-3 hours on a modern PC)
Cheers
Dima