[OpenIndiana-discuss] Something is wrong with gmp.h

Apostolos Syropoulos asyropoulos at yahoo.com
Sat Mar 10 15:26:15 UTC 2018


Hello,
On OI we have the file /usr/include/gmp.h Today I tried to compile the Glasgow Haskell Compilerand compilation stopped with the following error message:
 # error WORD_SIZE_IN_BITS != GMP_LIMB_BITS not supported
I am using the 32bit version of the compiler since the 64bit versionfails (at least that was reported in their web site). Now the problemis that in file gmp.h there is the following definition:
#define GMP_LIMB_BITS                      64
while it should be
#define GMP_LIMB_BITS                      32
I think that it should be better to have something like this

#if defined(__amd64)
#define GMP_LIMB_BITS                      64
#else
#define GMP_LIMB_BITS                      32
#endif

At least this solves the problem with GHC. 
A.S.


----------------------
Apostolos Syropoulos
Xanthi, Greece


More information about the openindiana-discuss mailing list