Trouble building example from manual
First my environment. Mac OS 10.5.1 (Darwin 9.1.0) gcc version 4.0.1 (Apple Inc. build 5465) readline-5.1 gnump-4.2.1 cln-1.1.9 GiNaC-1.4.1 I get a coredump when I run the first example from section 2.1 of the GiNaC 1.4.1 Tutorial, revision 5 September 2007. Here is the stack trace. Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000002 0x00000002 in ?? () (gdb) bt #0 0x00000002 in ?? () #1 0x006d6480 in cl_module__cl_prin_globals__firstglobalfun () at output/cl_prin_globals.cc:6 Cannot access memory at address 0x6 I built my program like this: g++ -I/usr/local/include -L/usr/local/lib src/tut.cpp -lginac I also tried adding -lcln -lgmp and -lreadline to the link but the result was the same. This same error happens when I attempt to run ginsh. I was concerned during the build when configure said: === The following minor problems have been detected by configure. === Please check the messages below before running "make". === (see the section 'Common Problems' in the INSTALL file) == Unsupported version of libreadline. == I could not run a test of libreadline (needed for building ginsh). Configuration of GiNaC 1.4.1 done. Now type "make". I ignored this and built anyway since I don't plan to use ginsh, just the library. Perhaps the issues are unrelated. Please help me to get started with building and running the tutorial examples. Ken Smith
Hello, On Mon, Nov 26, 2007 at 10:51:05PM -0800, Ken Smith wrote:
First my environment.
Mac OS 10.5.1 (Darwin 9.1.0) gcc version 4.0.1 (Apple Inc. build 5465) readline-5.1 gnump-4.2.1 cln-1.1.9
As far as I remember, this version of CLN has some problems with Darwin, see http://www.ginac.de/pipermail/ginac-list/2005-October/000749.html Please check if you can compile and run CLN examples. If not -- upgrade to more recent version and recompile GiNaC.
I built my program like this: g++ -I/usr/local/include -L/usr/local/lib src/tut.cpp -lginac I also tried adding -lcln -lgmp and -lreadline to the link but the result was the same.
GiNaC (the library) does not use libreadline, so -lreadline is not necessary (but still it's harmless).
== I could not run a test of libreadline (needed for building ginsh). Configuration of GiNaC 1.4.1 done. Now type "make". I ignored this and built anyway since I don't plan to use ginsh, just the library.
That's OK. Best regards, Alexei -- All science is either physics or stamp collecting.
On Nov 27, 2007 2:10 AM, Alexei Sheplyakov <varg@theor.jinr.ru> wrote:
Please check if you can compile and run CLN examples. If not -- upgrade to more recent version and recompile GiNaC.
That did the trick. In the ftp listing, I saw 1.1.9 and thought it was most recent even though the CLN page clearly lists 1.1.13 as the latest. That will teach me to be in a hurry. Thank you for your help. (Incidentally, I had to upgrade to gmp-4.2.2 to build CLN-1.1.13.) Ken Smith
participants (2)
-
Alexei Sheplyakov
-
Ken Smith