Trying to compile GMP - MPZ part for Symbian OS
marian.kechlibar at circletech.net
Tue May 27 15:23:50 CEST 2008
I tried to adhere to the recommended reading, but, as my problem is
rather with compilation
(and on a Windows machine) than with GMP giving incorrect results or
crashing, quite a lot
of the hints in the file cannot be applied.
But I will try to be more specific now.
My aim is to create a LGPL version of GMP, or, at least, the integral
part thereof, compilable
under Symbian OS from version 7.0s onwards. I want to provide necessary
the GMP team also, so that they could produce Symbian OS-compatible
versions of the
library in the future, if they wish so.
I started with the source code for GMP 4.2.2. I compiled this source
code for the generic
architecture under Linux and GCC tools (I used the same GCC toolchain to
create a Linux DLL
as well, it works just fine, so the following problems are probably not
the compiler's fault).
Only after success with generic, I would go on with the ARM-specific
Then I took the resulting .h and .c files to the Windows partition,
created a Symbian OS project
and added those files to the project. Then I edited the config.h file
and some other files to
get rid of compiler problems, as far as I could understand them. I am
attaching my list
of edits. The list is not complete yet and it will need some tweaking; I
am sending it just
as an informative material.
Having removed the compiler errors, I was stuck with the one error I
described in the mail.
I will try the CFLAGS edit that you describe.
Should I send this mail to the conference too?
Torbjorn Granlund napsal(a):
> You give quite little information about what you're doing, and that
> makes it hard to tell what is wrong.
> Recommended reading: http://gmplib.org/manual/Reporting-Bugs.html
> Now let me take a guess anyway: For some machines the GMP file
> longlong.h references to a function __gmpn_invert_limb, which is then
> implemented in assembly. But you disabled assembly, if I understodd
> You might want to try adding -DLONGLONG_STANDALONE to CFLAGS.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the gmp-bugs