bignums, gmp, bytestring, .. ?
jeremy.shaw at linspireinc.com
Sun Nov 19 15:20:51 EST 2006
At Sun, 19 Nov 2006 13:46:10 -0500,
Peter Tanski wrote:
> What is the problem building GMP for PalmOS? According to the GMP
> install documentation, it supports ARM and Motorola's m68k
> processors, so you would not be using generic C code. You are
> probably also using PRC-Tools, correct?
Yes. I can not get past the configure step. I tried to build gmp 4.2.1
with prc tools 2.3. I ran configure with these options:
./configure --build=i386-linux-gnu --host=m68k-palmos
But, all the test programs (conftest.c) fail to link because they use
'main ()', but palmos expects 'PilotMain ()'. I hack the configure
script and changed all occurances of 'main ()' to 'PilotMain ()', but
then it failed beacuse the test programs could not find
MemoryMgr.h. So I invoked configure with:
CFLAGS=-I=/root/n-heptane/projects/haskell/palmos/sdk-5r3/include/ ./configure --build=i386-linux-gnu --host=m68k-palmos
But now it fails to find working compiler with this error (from config.log):
configure:7756: checking build system compiler m68k-palmos-gcc -I=/root/n-heptane/projects/haskell/palmos/sdk-5r3/include/
configure:7769: m68k-palmos-gcc -I=/root/n-heptane/projects/haskell/palmos/sdk-5r3/include/ conftest.c
/usr/lib/gcc-lib/m68k-palmos/2.95.3-kgpd/libgcc.a(_exit.o)(.text+0x10): In function `exit':
libgcc2.c: undefined reference to `_cleanup'
/usr/lib/gcc-lib/m68k-palmos/2.95.3-kgpd/libgcc.a(_exit.o)(.text+0x16):libgcc2.c: undefined reference to `_exit'
collect2: ld returned 1 exit status
And, around this time, my interest in running yhi on PalmOS starts to
"Using autoconf is like playing chess from 20 feet away by flicking a rope to move the pieces" -mbp
More information about the Glasgow-haskell-users