LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make errors trying to install lidia 2.2.0 (http://www.linuxquestions.org/questions/linux-newbie-8/make-errors-trying-to-install-lidia-2-2-0-a-779654/)

verthex 01-04-2010 12:34 AM

make errors trying to install lidia 2.2.0
 
Hello

I'm trying to compile lidia 2.2.0 and I'm getting this error.
I also ran make check afterwards to get more info.

[root@localhost lidia-2.2.0]# make
cd library && make all
make[1]: Entering directory `/home/c/Desktop/lidia-2.2.0/library'
Making all in base
make[2]: Entering directory `/home/c/Desktop/lidia-2.2.0/library/base'
if g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT bytes_to_int_flag_generator.o -MD -MP -MF ".deps/bytes_to_int_flag_generator.Tpo" -c -o bytes_to_int_flag_generator.o `test -f '../../src/portability/bytes_to_int_flag_generator.cc' || echo './'`../../src/portability/bytes_to_int_flag_generator.cc; \
then mv -f ".deps/bytes_to_int_flag_generator.Tpo" ".deps/bytes_to_int_flag_generator.Po"; else rm -f ".deps/bytes_to_int_flag_generator.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CXX --mode=link g++ -O2 -o bytes_to_int_flag_generator bytes_to_int_flag_generator.o
mkdir .libs
g++ -O2 -o bytes_to_int_flag_generator bytes_to_int_flag_generator.o
./bytes_to_int_flag_generator > ../../include/bytes_to_int_flag.h
make all-am
make[3]: Entering directory `/home/c/Desktop/lidia-2.2.0/library/base'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT sf_check_gcd.lo -MD -MP -MF ".deps/sf_check_gcd.Tpo" -c -o sf_check_gcd.lo `test -f '../../src/base/factorization/bigint/sf_check_gcd.cc' || echo './'`../../src/base/factorization/bigint/sf_check_gcd.cc; \
then mv -f ".deps/sf_check_gcd.Tpo" ".deps/sf_check_gcd.Plo"; else rm -f ".deps/sf_check_gcd.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT sf_check_gcd.lo -MD -MP -MF .deps/sf_check_gcd.Tpo -c ../../src/base/factorization/bigint/sf_check_gcd.cc -o sf_check_gcd.o
In file included from ../../src/base/factorization/bigint/sf_check_gcd.cc:24:
../../src/base/include/LiDIA/bigmod.h:62: error: declaration of 'static LiDIA::residue_class<LiDIA::bigint>* LiDIA::bigmod::residue_class()'
../../src/base/include/LiDIA/base/residue_class_list.h:39: error: changes meaning of 'residue_class' from 'class LiDIA::residue_class<LiDIA::bigint>'
make[3]: *** [sf_check_gcd.lo] Error 1
make[3]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library/base'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library/base'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library'
make: *** [all-subdirs] Error 2







this is the make check error
[root@localhost lidia-2.2.0]# make check
cd library && make check # updates the lib
make[1]: Entering directory `/home/c/Desktop/lidia-2.2.0/library'
Making check in base
make[2]: Entering directory `/home/c/Desktop/lidia-2.2.0/library/base'
make check-am
make[3]: Entering directory `/home/c/Desktop/lidia-2.2.0/library/base'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT sf_check_gcd.lo -MD -MP -MF ".deps/sf_check_gcd.Tpo" -c -o sf_check_gcd.lo `test -f '../../src/base/factorization/bigint/sf_check_gcd.cc' || echo './'`../../src/base/factorization/bigint/sf_check_gcd.cc; \
then mv -f ".deps/sf_check_gcd.Tpo" ".deps/sf_check_gcd.Plo"; else rm -f ".deps/sf_check_gcd.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I../../include -I../../src/base/include -I./../../src/base/include -O2 -MT sf_check_gcd.lo -MD -MP -MF .deps/sf_check_gcd.Tpo -c ../../src/base/factorization/bigint/sf_check_gcd.cc -o sf_check_gcd.o
In file included from ../../src/base/factorization/bigint/sf_check_gcd.cc:24:
../../src/base/include/LiDIA/bigmod.h:62: error: declaration of 'static LiDIA::residue_class<LiDIA::bigint>* LiDIA::bigmod::residue_class()'
../../src/base/include/LiDIA/base/residue_class_list.h:39: error: changes meaning of 'residue_class' from 'class LiDIA::residue_class<LiDIA::bigint>'
make[3]: *** [sf_check_gcd.lo] Error 1
make[3]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library/base'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library/base'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/c/Desktop/lidia-2.2.0/library'
make: *** [check-subdirs] Error 2

verthex 01-04-2010 12:58 AM

addendum:

I did find this but I'm not sure what directory it goes into

http://www.cdc.informatik.tu-darmsta...st/001228.html

evo2 01-04-2010 01:37 AM

Hi,

I had a quick look. Here is what I did:

Code:

mkdir foo
cd foo
wget http://www.cdc.informatik.tu-darmstadt.de/TI/LiDIA/ftp/LiDIA/current/lidia-2.2.0.tar.gz
wget http://www.cdc.informatik.tu-darmstadt.de/pipermail/lidia/attachments/20080806/a1b6daac/attachment.bin
mv attachment.bin lidia2.2.0-gcc4.3.patch.gz
gunzip lidia2.2.0-gcc4.3.patch.gz
tar xzf lidia-2.2.0.tar.gz
cd lidia-2.2.0
patch -p2 < ../lidia2.2.0-gcc4.3.patch
./configure
make

It is currently compiling with g++ 4.4.2 ...

Cheers,

Evo2.

PS. I did all the above in my normal user account. You should too.

knudfl 01-04-2010 03:06 AM

The OP is double posting .. 2 x 'lidia' ..

http://www.linuxquestions.org/questi...9/#post3813240

Apparently the lidia-2.2.0-gcc-4.4.0.diff patch works too,
at least with gcc-4.4.1 .

evo2 01-04-2010 03:17 AM

Quote:

Originally Posted by knudfl (Post 3813333)
The OP is double posting .. 2 x 'lidia' ..
http://www.linuxquestions.org/questi...9/#post3813240

The OPs other thread was about configure errors. Once he got the required libs sorted, he started a new thread here about the g++ 4.x problems.

verthex: Can you please mark your other thread as "solved".

Quote:

Originally Posted by knudfl (Post 3813333)
Apparently the lidia-2.2.0-gcc-4.4.0.diff patch works too,
at least with gcc-4.4.1 .

Ohh, probably better to use the newer patch that you found.

Cheers,

Evo2.

verthex 01-04-2010 05:42 PM

Quote:

Can you please mark your other thread as "solved".

wheres the button for it?

oops, nevermind found it.


All times are GMT -5. The time now is 06:27 PM.