Trying to compile GMP - MPZ part for Symbian OS

Marian Kechlibar marian.kechlibar at
Tue May 27 14:08:49 CEST 2008

Dear GMP authors,

I am trying to port GMP 4.2.2, "generic" (no asm)
to the Symbian OS platform from 7.0s onwards, namely the part for big 
(MPZ + MPN). I already succeeded in removing all compiler errors by myself,
and just one significant linker error remains. I believe that this 
linker error is caused
by a bug in GMP source code - namely, missing function - but I am not sure.

I already tried posting to gmp-discuss, but no one seems to be willing 
to help me
(is the interest of the GMP community in Symbian version really so low? 
:-( The
OS is installed in several tens of millions of mobile devices. I believe 
that combination
of our know-how could lead to significant expansion of the "market 
share" of GMP.)

The bug is: trying to compile GMP 4.2.2 with Carbide.c++ 1.3 (a SDK for 
in Symbian OS), the linker complains about missing function 
__gmpn_invert_limb. The
sources missing it are divrem_1.c, divrem_2.c, mod_1.c

Said function really does not exist within GMP source code.

I searched the web, and found a very similar case:
also unsolved.

Best regards

Marian Kechlibar

More information about the gmp-bugs mailing list