2009/9/5 Minh Nguyen <[email protected]>: > > Hi John, > > On Sat, Sep 5, 2009 at 1:31 AM, John Cremona<[email protected]> wrote: > > <SNIP> > >> Now, (1) the installed version of gmp is 4.2.1: >> j...@selmer%grep GMP_VERSION /usr/include/gmp.h >> #define GMP_VERSION "4.2.1" > > One way (at least for me) to debug this problem is to compile Sage > 4.1.1 and 4.1.2.alpha0 on the same machine without GMP installed > system-wide. The system-wide installation of GMP might be done > through, say, a Linux distribution's package manager. After that, > remove the system-wide GMP and proceed with compiling the above two > versions of Sage. I'll try this approach on the Ubuntu 9.04 machine in > my office, and report the results later. >
I'll have a go, though this would involve disabling/hiding the system gmp, and doesn't gcc use that? This machine is owned by me & Bill Hart (so I would have to ask him before doing that). Here's what happened, in order: 1. Machine installed late July, with ubuntu and gcc-4.3.3. 2. Sage 4.1.1 builds fine with that. 3. Bill finds that 4.3.3 is broken, in that it compilies his correct source code into something which does not run properly (for details, ask Bill). 4. Bill obtains source for gcc-4.4.1, but finds it does not build owing to gmp not being recent enough. 5. John installs latest gmp. 6. Bill successfully builds gcc-4.4.1, which is now the machine's default. 7. John fails to build sage-4.1.2.alpha0. At some point I also installed mpir on this machine. So now we have the following confusing situation: /usr/include/gmp.h is actually mpir 1.2.2 (aliasing gmp 4.2.1) /usr/local/include/gmp.h is gmp 4.3.1 I don't know where the original system gmp is (or even if there was one) since the only other files o nthe system called gmp.h are in sage-*/local directories. And of course there are various versions of the library in /usr/lib and /usr/local/lib. John --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
