fail to build fflas_ffpack on 9.1. beta1

53 views
Skip to first unread message

Vincent Delecroix

unread,
Jan 22, 2020, 7:27:29 AM1/22/20
to sage-devel
Dear all,

I am experiencing trouble compiling fflas_ffpack (in the sage
compilation process). It is the same error appearing multiple
times related to openblas_set_num_threads being not declared.

Note that I am running archlinux.

Best
Vincent
fflas_ffpack-2.4.3.log
config.log

Dima Pasechnik

unread,
Jan 22, 2020, 7:46:47 AM1/22/20
to sage-devel
there was a thread
https://groups.google.com/d/msg/sage-devel/pIOnFyFJMtM/_FbzM2OxCQAJ
just on this 10 days ago.

the system's openblas on Arch is broken, so you'd need to build with
---without-system-openblas

and also it might be related to
https://trac.sagemath.org/ticket/27444#comment:34

On Wed, Jan 22, 2020 at 12:27 PM 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/6d203341-930b-c660-ca0e-c743cda11a56%40gmail.com.

Vincent Delecroix

unread,
Jan 22, 2020, 9:16:46 AM1/22/20
to sage-...@googlegroups.com
With the option --without-system-openblas, the compilation fails at
openblas with

getarch.c:96: warning: "NO_AVX512" redefined
96 | #define NO_AVX512

(see also attachment)

Vincent
config.log
openblas-0.3.6.p0.log

Vincent Delecroix

unread,
Jan 22, 2020, 9:17:21 AM1/22/20
to sage-...@googlegroups.com
This was not the error (just a warning). Problem is

cp: cannot create regular file
'/opt/sage/local/./lib/pkgconfig/blas.pc': Permission denied
cp: cannot create regular file
'/opt/sage/local/./lib/pkgconfig/cblas.pc': Permission denied
cp: cannot create regular file
'/opt/sage/local/./lib/pkgconfig/lapack.pc': Permission denied

Vincent Delecroix

unread,
Jan 22, 2020, 9:20:32 AM1/22/20
to sage-...@googlegroups.com
The reason for the error seems to be that the pkgconfig
are pointing to my system pkgconfig (which are of not writable)

$ ls -l /opt/sage/local/lib/pkgconfig/
total 52
lrwxrwxrwx 1 vincent vincent 30 22 janv. 15:59 blas.pc ->
/usr/lib/pkgconfig/openblas.pc
lrwxrwxrwx 1 vincent vincent 30 22 janv. 15:59 cblas.pc ->
/usr/lib/pkgconfig/openblas.pc
lrwxrwxrwx 1 vincent vincent 30 22 janv. 15:59 lapack.pc ->
/usr/lib/pkgconfig/openblas.pc
-rw-r--r-- 1 vincent vincent 517 22 janv. 16:07 openblas.pc
lrwxrwxrwx 1 vincent vincent 13 22 janv. 16:02 python-3.7m.pc ->
python-3.7.pc
lrwxrwxrwx 1 vincent vincent 13 22 janv. 16:02 python3.pc -> python-3.7.pc

Dima Pasechnik

unread,
Jan 24, 2020, 6:27:27 AM1/24/20
to sage-devel
On Wed, Jan 22, 2020 at 2:20 PM Vincent Delecroix
<20100.d...@gmail.com> wrote:
>
> The reason for the error seems to be that the pkgconfig
> are pointing to my system pkgconfig (which are of not writable)


I fail to understand how this can happen, unless you modified what we
do with pkg-config.
Since https://trac.sagemath.org/ticket/27827 (already in Sage 8.9)
we prepend SAGE_PKG_CONFIG_PATH, set to SAGE_LOCAL/lib/pkgconfig/ if
if system pkg-config is detected ,
to PKG_CONFIG_PATH and that's where *blas.pc should be installed if
you install OpenBLAS in Sage.

By the way, I hope the problem that you reported is fixed by
https://trac.sagemath.org/ticket/29071
- please test this branch on Arch if you can.

Dima
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/889cec2d-cd6e-afce-5ad5-303d6263f05c%40gmail.com.

Isuru Fernando

unread,
Jan 24, 2020, 7:20:25 AM1/24/20
to sage-devel
Permission issue is a different issue. This happens when configure is run the second time.

For example, the following fails

touch foo.pc
chmod -w foo.pc
cp foo.pc bar.pc
cp foo.pc bar.pc

Isuru


Dima Pasechnik

unread,
Jan 24, 2020, 7:42:14 AM1/24/20
to sage-devel
On Fri, Jan 24, 2020 at 12:20 PM Isuru Fernando <isu...@gmail.com> wrote:
>
> Permission issue is a different issue. This happens when configure is run the second time.

right, sorry. I mislead these `/./lib/` as `/.lib/` and thought: "hmm,
this is wrong"...
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CA%2B01voNdgsdyj-G_ogWwnnPpxU0_2F1d%3DFikyptYSVL2D44u4w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages