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 --enab


From: Camm Maguire
Subject: Re: [Gcl-devel] compiling gcl on Sharp Zaurus with gcc 2.95.3 and --enable-gmp=no
Date: 05 Aug 2003 18:02:03 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!  Sorry this is so late, but I'm going through old mail and
think I never replied to this.

In short, gcl should work just fine on your pda (!), if, as I suppose,
its compatible with the Debian arm platform.  You do need gmp.  There
is some limited legacy support for native mp still in the code, but
not for your arch.  GMP is the only option we're planning to support
going forward -- the --enable-gmp option should probably be removed --
we've just left it in in case we need to go back and experiment with
mp bugs.  You should be able to use a dynamic gmp library and not have
to worry about compiling GCL's copy -- can't you use the one in the
Debian arm distribution?

Please keep us posted.

Take care,

Larry Clapp <address@hidden> writes:

> 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
> 
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

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