Problems compiling: givaro, examples

24 views
Skip to first unread message

Laurent Bartholdi

unread,
Aug 31, 2023, 4:48:24 PM8/31/23
to linbox-use
I just pulled the latest sources from github, and run into a bunch of problems:

-- building givaro. It used to work well (4.0.5), but with the new 4.2.0 I get

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src/kernel/memory -I../../../src/kernel/system -I../../../src/kernel/recint -I/opt/homebrew/opt/llvm/include -std=gnu++11 -I/opt/homebrew/include -O2 -mcpu=native -Wall -DNDEBUG -UDEBUG -MT gmp++_int_misc.lo -MD -MP -MF .deps/gmp++_int_misc.Tpo -c gmp++_int_misc.C  -fno-common -DPIC -o .libs/gmp++_int_misc.o
gmp++_int_misc.C:177:47: error: 'gmp_rep' is a protected member of 'Givaro::Integer'
        return mpz_kronecker ((mpz_srcptr)&(u.gmp_rep),(mpz_srcptr)&(v.gmp_rep)) ;
                                              ^
/usr/local/include/gmp++/gmp++_int.h:1726:7: note: declared protected here
                Rep gmp_rep;//!< @internal rep
                    ^
gmp++_int_misc.C:177:72: error: 'gmp_rep' is a protected member of 'Givaro::Integer'
        return mpz_kronecker ((mpz_srcptr)&(u.gmp_rep),(mpz_srcptr)&(v.gmp_rep)) ;
                                                                       ^
/usr/local/include/gmp++/gmp++_int.h:1726:7: note: declared protected here
                Rep gmp_rep;//!< @internal rep

------------------------------------------------------------------------------

-- compiling some examples in linbox:

% (cd tests; make la-block-lanczos)
.... lots of errors...
In file included from test-la-block-lanczos.C:49:
In file included from ../linbox/algorithms/la-block-lanczos.h:42:
../linbox/algorithms/eliminator.h:83:3: error: constructor for 'LinBox::Eliminator<Givaro::Modular<unsigned char>, LinBox::BlasMatrix<Givaro::Modular<unsigned char>, std::vector<unsigned char>>>' must explicitly initialize the member '_tmp' which does not have a default constructor
                Eliminator (const Field &F, unsigned int N);
                ^
../linbox/algorithms/eliminator.h:237:30: note: member is declared here
                mutable BlasMatrix<Field>  _tmp;
                                           ^
../linbox/matrix/densematrix/blas-matrix.h:160:8: note: 'LinBox::BlasMatrix<Givaro::Modular<unsigned char>, std::vector<unsigned char>>' declared here
        class BlasMatrix {
              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

I'm happy to send the log of compilation, but somehow google groups doesn't let me attach a file.
Reply all
Reply to author
Forward
0 new messages