[OpenIndiana-discuss] Something is wrong with gmp.h
Aurélien Larcher
aurelien.larcher at gmail.com
Sat Mar 10 15:50:40 UTC 2018
On Sat, Mar 10, 2018 at 4:26 PM, Apostolos Syropoulos via
openindiana-discuss <openindiana-discuss at openindiana.org> wrote:
> 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
>
You are right but the header delivered by OI's package has already this
fix: pkg://openindiana.org/library/gmp@6.1.2-2018.0.0.2:20180211T124854Z
Did you install gmp manually?
>
> At least this solves the problem with GHC.
> A.S.
>
>
> ----------------------
> Apostolos Syropoulos
> Xanthi, Greece
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
--
---
Praise the Caffeine embeddings
More information about the openindiana-discuss
mailing list