Compiling GMP for Windows CE / ARM processor (cegcc)

Tobias Jeske mailinglists at tobiweb.com
Wed Sep 16 14:09:47 CEST 2009


Hi,

I have a problem compiling GMP for Windows CE / ARM processor using CEGCC.
My aim is to have a DLL at the end, which I can use in my Windows CE
application.

Here is what I have done:

1.) run configure script (Ubuntu Linux): "./configure
CC=/opt/mingw32ce/bin/arm-mingw32ce-gcc --disable-static --enable-shared
--host=none --build=core2-pc-linux-gnu"

It works. If I set "--host=none" generic C-Code is used, or? If I set
"--host=ARM" it doesn't work. I get an error message. Here the last line
from configure:

checking for assembler byte directive... .byte
checking how to define a 32-bit word... /usr/bin/nm: conftest.o: File format
not recognized
/usr/bin/nm: conftest.o: File format not recognized
configure: error: cannot determine how to define a 32-bit word

I get this error only if I set "--host=ARM".

2.) I enter "make", the lib is compiled. No errors....
3.) I install the lib using "make install", again no error... but...

Where can I find the DLL (or how can I create one)? I have renamed the
libgmp.so to libgmp.dll but dumpbin says its not a valid (windows) dll...

If I use Mingw32 instead and enter "./configure --disable-static
--enable-shared", "make", "make install" I will get a beautiful DLL but for
standard Windows (not for Windows CE)....
Using cegcc and mingw32 is not working at all... If I enter 

"./configure CC=/opt/x86mingw32ce/bin/i386-mingw32ce-gcc --disable-static
--enable-shared --host=none --build=core2-pc-mingw32"

I get...

checking build system type... core2-pc-mingw32
checking host system type... none-none-none
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for none-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=long
checking compiler /opt/x86mingw32ce/bin/i386-mingw32ce-gcc  ... no
checking ABI=longlong
checking compiler /opt/x86mingw32ce/bin/i386-mingw32ce-gcc  ... no
checking for none-gcc... /opt/x86mingw32ce/bin/i386-mingw32ce-gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

Hope, someone can help me....

Regards,
Tobias



More information about the gmp-discuss mailing list