gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Gcl-devel] compiling gcl on Sharp Zaurus with gcc 2.95.3 and --ena


From: Mike Thomas
Subject: RE: [Gcl-devel] compiling gcl on Sharp Zaurus with gcc 2.95.3 and --enable-gmp=no
Date: Mon, 16 Jun 2003 15:48:57 +1000

Hi Larry.

This is a fairly speculative reply.

My guess is that you will be better off building that later version og gcc.

Should you choose not to follow this course of action however:

Before GMP was used in this project, the default multi-precision (MP)
subsystem for GCL was borrowed from PARI.  The source for that old stuff
lives in the "mp" sub-directory and as far as I know, has not been used for
a considerable period of time.  If you are having trouble building GMP from
our source tree you have two choices in terms of the current build system (I
think):

1. Try  the configure argument:

   --enable-dynsysgmp

which will link against the system libgmp3 (if the Sharp Zaurus has such an
animal) overriding certain functions with patched versions from the local
source.  There may be enough of your current compiler to get away with this
option.

2. Try resurrecting/building from scratch the PARI system in "mp" for your
particular architecture.  The configuration variable MPI_FILE needs to be
set, probably in your platform specific ".defs" file.  My guess is that this
could be really difficult especially given the problems you had below.

Cheers

Mike Thomas.



| Greetings, all,
|
| Today I tried my hand at configuring and compiling gcl on the Sharp
| Zaurus, a Linux-based PDA.  I could only configure it if I said
| "--enable-gmp=no", since the only gcc I have (at least, at the moment)
| is 2.95.3.  GMP requires (at least) 2.95.4.
|
| gcl won't compile with --enable-gmp=no, even on my Debian GNU/Linux
| machine.  It crashes like so:
|
| > % make
| > (cd bin; make all)
| > /big2/usr/src/gcl-2.5.3-arm/bin
| > make[1]: Entering directory `/big2/usr/src/gcl-2.5.3-arm/bin'
| > make[1]: Nothing to be done for `all'.
| > make[1]: Leaving directory `/big2/usr/src/gcl-2.5.3-arm/bin'
| > make mpfiles
| > make[1]: Entering directory `/big2/usr/src/gcl-2.5.3-arm'
| > make[1]: *** No rule to make target `mp/@MPI_FILE@', needed by
| `mpfiles'.  Stop.
| > make[1]: Leaving directory `/big2/usr/src/gcl-2.5.3-arm'
| > make: *** [unixport/saved_gcl] Error 2
|
| So, thinks I, it would appear that the --enable-gmp=no doesn't fix the
| makefile so as to not actually require gmp.  I commented out the "make
| mpfiles" in the $(PORTDIR)/saved_gcl target, and got this:
|
| > % make
| > (cd bin; make all)
| > /big2/usr/src/gcl-2.5.3-arm/bin
| > make[1]: Entering directory `/big2/usr/src/gcl-2.5.3-arm/bin'
| > make[1]: Nothing to be done for `all'.
| > make[1]: Leaving directory `/big2/usr/src/gcl-2.5.3-arm/bin'
| > # make mpfiles
| > rm -f o/cmpinclude.h ; cp h/cmpinclude.h o
| > (cd o; make all)
| > /big2/usr/src/gcl-2.5.3-arm/o
| > make[1]: Entering directory `/big2/usr/src/gcl-2.5.3-arm/o'
| > gcc -c -Wall -DVOL=volatile -fsigned-char -fwritable-strings -pipe -O6
| > -fomit-frame-pointer -I/big2/usr/src/gcl-2.5.3-arm/o -I../h
| > -I../gcl-tk main.c
| > In file included from ../h/include.h:79,
| >                  from main.c:49:
| > ../h/../h/protoize.h:72: parse error before `*'
| > make[1]: *** [main.o] Error 1
| > make[1]: Leaving directory `/big2/usr/src/gcl-2.5.3-arm/o'
| > make: *** [unixport/saved_gcl] Error 2
|
| protoize.h, line 72, says
|
|     extern object make_integer (__mpz_struct *u);
|
| ... except with --enable-gmp=no, main.c doesn't include whatever
| defines __mpz_struct.
|
| I tried commenting out the make_integer prototype, just to see what'd
| happen (it seems ill advised; make_integer sounds like an important
| operation), and it still crashes a bit further down the road.
|
| Can anyone give me some hints on how to compile with --enable-gmp=no,
| or should I rather try to get 2.95.4 compiled for that platform?
|
| Or, if gcl requires gmp, why does it have an option to disable it?
|
| Thanks for any help you can provide.
|
| -- Larry Clapp
|
|
|
| _______________________________________________
| Gcl-devel mailing list
| address@hidden
| http://mail.gnu.org/mailman/listinfo/gcl-devel
|
|






reply via email to

[Prev in Thread] Current Thread [Next in Thread]