linbox-team / fflas-ffpack

FFLAS-FFPACK - Finite Field Linear Algebra Subroutines / Package
http://linbox-team.github.io/fflas-ffpack/
GNU Lesser General Public License v2.1
57 stars 23 forks source link

Givaro library could not be used with the compiler #374

Closed txgk closed 2 years ago

txgk commented 2 years ago

Hi, I'm trying to package fflas-ffpack to Alpine Linux repository and so far l can't get over the configure problem with Givaro - it keeps yielding:

configure: error: The Givaro library could not be used with the compiler and the flags set up by the configure script

I tried passing different sets of arguments to configure script, disabling Alpine-specific CFLAGS and LDFLAGS, forcing lookup pathes for Givaro, but the error is always the same... You can view log of the build process here.

txgk commented 2 years ago

The way we build Givaro is not fancy at all - it is just ./configure --prefix=/usr --enabled-shared && make && make install. I don't understand why it could be incompatible...

ClementPernet commented 2 years ago

Could you please post the config.log file generated by your run of configure in fflas-ffpack ?

txgk commented 2 years ago

This config.log was generated on x86_64 builder for Alpine Linux (sorry for numbers in the beginning of lines).

ClementPernet commented 2 years ago

It seems that your installation of gmp does not provide the c++ wrappers gmpxx.h. This is obtained by passing the --enable-cxx option to the configure script of gmp. So I guess the solution for this issue is in changing the way you build the gmp package for Alpine Linux.

ClementPernet commented 2 years ago

For instance, the debian package libgmp-dev is compiled with the c++ bindings: https://packages.debian.org/fr/sid/libgmp-dev

txgk commented 2 years ago

Thank you for help! I originally compiled fflas-ffpack without gmp headers (in Alpine gmp is actually compiled with --enable-cxx, I just didn't add it), but after I added it to the dependencies, the build got fixed. In that case this message about Givaro is a little misleading since the problem was in the lack of gmp...