Compilation issues of GiNaC 1.5.1
Hi, I was trying to build GiNaC 1.5.1 with cln 1.1.8. I ran into the following two problems: configure did not substitute correctly @CPPFLAGS@: [stefanw@localhost ginac-1.5.1]$ make Making all in ginac make[1]: Entering directory `/home/stefanw/build/ginac-1.5.1/ginac' make all-am make[2]: Entering directory `/home/stefanw/build/ginac-1.5.1/ginac' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../config @CPPFLAGS -I/home/stefanw/add/cln/include -g -O2 -MT add.lo -MD -MP -MF .deps/add.Tpo -c -o add.lo add.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../config @CPPFLAGS -I/home/stefanw/add/cln/include -g -O2 -MT add.lo -MD -MP -MF .deps/add.Tpo -c add.cpp -fPIC -DPIC -o .libs/add.o g++: @CPPFLAGS: No such file or directory make[2]: *** [add.lo] Error 1 make[2]: Leaving directory `/home/stefanw/build/ginac-1.5.1/ginac' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/stefanw/build/ginac-1.5.1/ginac' make: *** [all-recursive] Error 1 Makefile: CLN_CFLAGS = @CPPFLAGS -I/home/stefanw/add/cln/include CPPFLAGS = @CPPFLAGS -I/home/stefanw/add/cln/include Makefile.in: CLN_CFLAGS = @CLN_CFLAGS@ CPPFLAGS = @CPPFLAGS@ Fixing this, I ran into the second problem: polynomial/mod_gcd.cpp: In function `void GiNaC::find_next_prime(cln::cl_I&, const cln::cl_I&)': polynomial/mod_gcd.cpp:109: error: no match for 'operator++' in '++p' polynomial/mod_gcd.cpp: In function `void GiNaC::mod_gcd(GiNaC::upoly&, GiNaC::upoly, GiNaC::upoly)': polynomial/mod_gcd.cpp:137: error: no match for 'operator<<=' in 'p <<= 1' make[2]: *** [mod_gcd.lo] Error 1 I then switched to cln-1.2.2, and everything went smooth. I would suggest to raise in configure.ac the requirement on the version number of cln (currently it's 1.1.6). Best wishes, Stefan
Hi Stefan, do I understand it correctly: with cln-1.2.2 do didn't need to fix anything else? Or, did you additionally need to change something in the Makefile.in? If yes, what? Regards, Jens Stefan Weinzierl schrieb:
Hi,
I was trying to build GiNaC 1.5.1 with cln 1.1.8. I ran into the following two problems: configure did not substitute correctly @CPPFLAGS@:
[stefanw@localhost ginac-1.5.1]$ make Making all in ginac make[1]: Entering directory `/home/stefanw/build/ginac-1.5.1/ginac' make all-am make[2]: Entering directory `/home/stefanw/build/ginac-1.5.1/ginac' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../config @CPPFLAGS -I/home/stefanw/add/cln/include -g -O2 -MT add.lo -MD -MP -MF .deps/add.Tpo -c -o add.lo add.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../config @CPPFLAGS -I/home/stefanw/add/cln/include -g -O2 -MT add.lo -MD -MP -MF .deps/add.Tpo -c add.cpp -fPIC -DPIC -o .libs/add.o g++: @CPPFLAGS: No such file or directory make[2]: *** [add.lo] Error 1 make[2]: Leaving directory `/home/stefanw/build/ginac-1.5.1/ginac' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/stefanw/build/ginac-1.5.1/ginac' make: *** [all-recursive] Error 1
Makefile: CLN_CFLAGS = @CPPFLAGS -I/home/stefanw/add/cln/include CPPFLAGS = @CPPFLAGS -I/home/stefanw/add/cln/include
Makefile.in: CLN_CFLAGS = @CLN_CFLAGS@ CPPFLAGS = @CPPFLAGS@
Fixing this, I ran into the second problem:
polynomial/mod_gcd.cpp: In function `void GiNaC::find_next_prime(cln::cl_I&, const cln::cl_I&)': polynomial/mod_gcd.cpp:109: error: no match for 'operator++' in '++p' polynomial/mod_gcd.cpp: In function `void GiNaC::mod_gcd(GiNaC::upoly&, GiNaC::upoly, GiNaC::upoly)': polynomial/mod_gcd.cpp:137: error: no match for 'operator<<=' in 'p <<= 1' make[2]: *** [mod_gcd.lo] Error 1
I then switched to cln-1.2.2, and everything went smooth. I would suggest to raise in configure.ac the requirement on the version number of cln (currently it's 1.1.6).
Best wishes,
Stefan
_______________________________________________ GiNaC-devel mailing list GiNaC-devel@ginac.de https://www.cebix.net/mailman/listinfo/ginac-devel
Hi Jens, that is correct: with cln 1.2.2 it worked out of the box. Best wishes, Stefan On Wed, 10 Jun 2009, Jens Vollinga wrote:
Hi Stefan,
do I understand it correctly: with cln-1.2.2 do didn't need to fix anything else? Or, did you additionally need to change something in the Makefile.in? If yes, what?
Regards, Jens
Hi Stefan, Stefan Weinzierl schrieb:
that is correct: with cln 1.2.2 it worked out of the box.
thanks! The changes are now checked in. A release should follow soon. A question to all the other developers: does this changed dependency requirement hurt any packagers (Debian, ...) such that we need to make a new 1.6 release instead of just a binary compatible 1.5.2?? Regards, Jens
Hi! Jens Vollinga wrote:
A question to all the other developers: does this changed dependency requirement hurt any packagers (Debian, ...) such that we need to make a new 1.6 release instead of just a binary compatible 1.5.2??
I can't imagine it can hurt. Packagers would have noticed this earlier on if they were still depending on CLN 1.1.x. It definitely doesn't hurt Debian. Cheers -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/>
Hi, On Wed, Jun 10, 2009 at 11:33:31AM +0200, Jens Vollinga wrote:
A question to all the other developers: does this changed dependency requirement hurt any packagers (Debian, ...) such that we need to make a new 1.6 release instead of just a binary compatible 1.5.2??
As far as I understand there's no need to bump the _library_ version since no symbols in libginac have been changed. Best regards, Alexei
participants (4)
-
Alexei Sheplyakov
-
Jens Vollinga
-
Richard B. Kreckel
-
Stefan Weinzierl