trouble building fflas-ffpack

28 views
Skip to first unread message

Paul Gunnells

unread,
Feb 8, 2019, 4:49:25 AM2/8/19
to ffpack-devel
hi,

i'm sorry to bother the developers with this simple question, but i didn't find an answer anywhere else.

i'm eventually trying to build linbox-1.5.2, but i seem to be stuck at fflas-ffpack.  i successfully built givaro and openblas, and have installed them with prefix $HOME.  but the configuration for fflas-ffpack can't seem to find libopenblas:

$ export PKG_CONFIG_PATH=/home/gunnells/lib/pkgconfig:$PKG_CONFIG_PATH; ./configure --prefix=/home/gunnells --with-blas-libs="-L/home/gunnells/lib -lopenblas"

eventually produces

...
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GIVARO... yes
checking for use of MKL... no
checking for BLAS... problem

*******************************************************************************
 ERROR: BLAS not found!

 BLAS routines are required for this library to compile. Please
 make sure BLAS are installed and specify its location with the option
 --with-blas-libs=<libs> and if necessary --with-blas-cflags=<cflags>
 when running configure.

in /home/gunnells/lib i definitely have libopenblas there:

lrwxrwxrwx 1 gunnells gunnells       33 Feb  7 17:05 libopenblas.a -> libopenblas_haswellp-r0.3.6.dev.a
-rw-r--r-- 1 gunnells gunnells 29624002 Feb  7 16:52 libopenblas_haswellp-r0.3.6.dev.a
-rwxr-xr-x 1 gunnells gunnells 14408768 Feb  7 16:52 libopenblas_haswellp-r0.3.6.dev.so
lrwxrwxrwx 1 gunnells gunnells       34 Feb  7 17:05 libopenblas.so -> libopenblas_haswellp-r0.3.6.dev.so
lrwxrwxrwx 1 gunnells gunnells       34 Feb  7 17:05 libopenblas.so.0 -> libopenblas_haswellp-r0.3.6.dev.so

thank you for any advice.  this collection of software looks like it will be very helpful for me.

-Paul

Clement Pernet

unread,
Feb 8, 2019, 4:54:56 AM2/8/19
to ffpack...@googlegroups.com, Paul Gunnells
Dear Paul,

I suspect that your problem is that the dynamic linker can not find the libopenblas.so.

You can try 2 options:

export LD_LIBRARY_PATH=/home/gunnells/lib:$LD_LIBRARY_PATH

or alternatively pass
--with-blas-libs="-L/home/gunnells/lib -lopenblas -Wl,-rpath,/home/gunnells/lib"
to the configure script.

If this does not fix your problem, could you then please attach (or copy) the content of the file
config.log ?

Best.
Clément
> --
> You received this message because you are subscribed to the Google Groups "ffpack-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ffpack-devel...@googlegroups.com <mailto:ffpack-devel...@googlegroups.com>.
> To post to this group, send email to ffpack...@googlegroups.com
> <mailto:ffpack...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/ffpack-devel.
> For more options, visit https://groups.google.com/d/optout.

Alexand...@uni.lu

unread,
Feb 8, 2019, 7:09:57 AM2/8/19
to ffpack-devel
Dear Paul,

I did also have a lot of trouble with BLAS during my LinBox installations. It seems to be installed already, but then it does not get accepted by fflas-ffpack. On Linux Fedora 29,

yum install openblas

produces the reply

"Package openblas-0.3.5-1.fc29.x86_64 is already installed."

But the installation of fflas-ffpack only works once that you have installed the development version:

yum install openblas-devel.x86_64

I have never got LinBox to run on other distributions (having tried Linux Ubuntu and Linux Debian), but as in your report, there is no hint that you have installed openblas-devel rather than just openblas, installing openblas-devel might possibly help on your machine as well.

Best wishes,

Alexander

Alexand...@uni.lu

unread,
Feb 8, 2019, 7:09:57 AM2/8/19
to ffpack-devel
Dear Paul,

I did also have a lot of trouble with BLAS during my LinBox installations. It seems to be installed already, but then it does not get accepted by fflas-ffpack. On Linux Fedora 29,

yum install openblas

produces the reply

"Package openblas-0.3.5-1.fc29.x86_64 is already installed."

But the installation of fflas-ffpack only works once that you have installed the development version:

yum install openblas-devel.x86_64

I have never got LinBox to run on other distributions (having tried Linux Ubuntu and Linux Debian), but as in your report, there is no hint that you have installed openblas-devel rather than just openblas, installing openblas-devel might possibly help on your machine as well.

Best wishes,

Alexander


Am Freitag, 8. Februar 2019 10:49:25 UTC+1 schrieb Paul Gunnells:

Alexand...@uni.lu

unread,
Feb 8, 2019, 7:09:57 AM2/8/19
to ffpack-devel
Dear Paul,

I did also have a lot of trouble with BLAS during my LinBox installations. It seems to be installed already, but then it does not get accepted by fflas-ffpack. On Linux Fedora 29,

yum install openblas

produces the reply

"Package openblas-0.3.5-1.fc29.x86_64 is already installed."

But the installation of fflas-ffpack only works once that you have installed the development version:

yum install openblas-devel.x86_64

I have never got LinBox to run on other distributions (having tried Linux Ubuntu and Linux Debian), but as in your report, there is no hint that you have installed openblas-devel rather than just openblas, installing openblas-devel might possibly help on your machine as well.

Best wishes,

Alexander


Am Freitag, 8. Februar 2019 10:49:25 UTC+1 schrieb Paul Gunnells:

Paul Gunnells

unread,
Feb 8, 2019, 12:50:52 PM2/8/19
to Clement Pernet, ffpack...@googlegroups.com
Thank you for your message.  I reran configure with your suggestions.  This time it didn't complain and built the makefiles.  However something must still be amiss because when I tried running make nothing gets compiled (make just jumps down into all the subdirectories, says that nothing is to be done, and jumps back up).  I've attached the config.log.

Thank you,
-Paul
--
Paul Gunnells
config.log

Clement Pernet

unread,
Feb 11, 2019, 4:31:24 AM2/11/19
to ffpack...@googlegroups.com, Paul Gunnells
Hi,

There is no problem then: fflas-ffpack is not compiled by default, it is a source library relying
heavily on template programming. You can check if the library is ready to be used by compiling and
running the test suite:
type "make check"

and/or compiling the benchmark suite
"make benchmarks" then cd benchmarks and execute the benchmark binary of your choice.

If your end-goal is to use LinBox, you simply need to "make install" and LinBox will find the
sources of fflas-ffpack in the directory you specified with the --prefix option (or /usr/local by
default).

Best.
Clément
> <http://libopenblas_haswellp-r0.3.6.dev.so>
> > lrwxrwxrwx 1 gunnells gunnells       34 Feb  7 17:05 libopenblas.so ->
> > libopenblas_haswellp-r0.3.6.dev.so <http://libopenblas_haswellp-r0.3.6.dev.so>
> > lrwxrwxrwx 1 gunnells gunnells       34 Feb  7 17:05 libopenblas.so.0 ->
> > libopenblas_haswellp-r0.3.6.dev.so <http://libopenblas_haswellp-r0.3.6.dev.so>
> >
> > thank you for any advice.  this collection of software looks like it will be very helpful for me.
> >
> > -Paul
> >
> > --
> > You received this message because you are subscribed to the Google Groups "ffpack-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to
> > ffpack-devel...@googlegroups.com
> <mailto:ffpack-devel%2Bunsu...@googlegroups.com>
> <mailto:ffpack-devel...@googlegroups.com
> <mailto:ffpack-devel%2Bunsu...@googlegroups.com>>.
> > To post to this group, send email to ffpack...@googlegroups.com
> <mailto:ffpack...@googlegroups.com>
> > <mailto:ffpack...@googlegroups.com <mailto:ffpack...@googlegroups.com>>.

Paul Gunnells

unread,
Feb 11, 2019, 3:41:46 PM2/11/19
to Clement Pernet, ffpack...@googlegroups.com
ok thank you!  didn't realize that.  i will proceed to linbox building ...

-pg

--
Paul Gunnells
Reply all
Reply to author
Forward
0 new messages