gcl-devel
[Top][All Lists]
Advanced

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

[Gcl-devel] compiling gcl on Sharp Zaurus with gcc 2.95.3 and --enable-


From: Larry Clapp
Subject: [Gcl-devel] compiling gcl on Sharp Zaurus with gcc 2.95.3 and --enable-gmp=no
Date: Mon, 16 Jun 2003 00:35:18 -0400
User-agent: Mutt/1.3.28i

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





reply via email to

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