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 |
addendum:
I did find this but I'm not sure what directory it goes into http://www.cdc.informatik.tu-darmsta...st/001228.html |
Hi,
I had a quick look. Here is what I did: Code:
mkdir foo Cheers, Evo2. PS. I did all the above in my normal user account. You should too. |
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 . |
Quote:
verthex: Can you please mark your other thread as "solved". Quote:
Cheers, Evo2. |
Quote:
wheres the button for it? oops, nevermind found it. |
All times are GMT -5. The time now is 11:09 PM. |