Discussion:
[OpenIndiana-discuss] Something is wrong with gmp.h
Apostolos Syropoulos via openindiana-discuss
2018-03-10 15:26:15 UTC
Permalink
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
Aurélien Larcher
2018-03-10 15:50:40 UTC
Permalink
On Sat, Mar 10, 2018 at 4:26 PM, Apostolos Syropoulos via
Post by Apostolos Syropoulos via openindiana-discuss
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
# 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
#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/***@6.1.2-2018.0.0.2:20180211T124854Z
Did you install gmp manually?
Post by Apostolos Syropoulos via openindiana-discuss
At least this solves the problem with GHC.
A.S.
----------------------
Apostolos Syropoulos
Xanthi, Greece
_______________________________________________
openindiana-discuss mailing list
https://openindiana.org/mailman/listinfo/openindiana-discuss
--
---
Praise the Caffeine embeddings
Aurélien Larcher
2018-03-10 15:51:34 UTC
Permalink
On Sat, Mar 10, 2018 at 4:50 PM, Aurélien Larcher <
Post by Aurélien Larcher
On Sat, Mar 10, 2018 at 4:26 PM, Apostolos Syropoulos via
Post by Apostolos Syropoulos via openindiana-discuss
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
# 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
#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
Did you install gmp manually?
We deliver /usr/include/gmp/gmp.h not /usr/include/gmp.h
Post by Aurélien Larcher
Post by Apostolos Syropoulos via openindiana-discuss
At least this solves the problem with GHC.
A.S.
----------------------
Apostolos Syropoulos
Xanthi, Greece
_______________________________________________
openindiana-discuss mailing list
https://openindiana.org/mailman/listinfo/openindiana-discuss
--
---
Praise the Caffeine embeddings
--
---
Praise the Caffeine embeddings
Apostolos Syropoulos via openindiana-discuss
2018-03-10 15:57:34 UTC
Permalink
Post by Aurélien Larcher
Did you install gmp manually?
We deliver /usr/include/gmp/gmp.h not /usr/include/gmp.h
I am still using the November  2017 bits at home...
A.S.
----------------------
Apostolos Syropoulos
Xanthi, Greece
Aurélien Larcher
2018-03-10 16:02:22 UTC
Permalink
Post by Aurélien Larcher
Post by Aurélien Larcher
You are right but the header delivered by OI's package has already this
20180211T124854Z
Post by Aurélien Larcher
Did you install gmp manually?
We deliver /usr/include/gmp/gmp.h not /usr/include/gmp.h
I am still using the November 2017 bits at home...
The header fix is delivered since 2016 and we have never delivered
/usr/include/gmp.h since then:

https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/library/gmp/patches

Could it be pulled from SFE?
Post by Aurélien Larcher
A.S.
----------------------
Apostolos Syropoulos
Xanthi, Greece
--
---
Praise the Caffeine embeddings
Apostolos Syropoulos via openindiana-discuss
2018-03-12 13:45:17 UTC
Permalink
The header fix is delivered since 2016 and we have never delivered /usr/include/gmp.h since then:>
https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/library/gmp/patches
Could it be pulled from SFE?
I did a fresh install of my system in the summer of 2016. Since then I just update the system.But yes I see this header file in another machine that was installed more recently. At any rate.
A.S.

----------------------
Apostolos Syropoulos
Xanthi, Greece
Aurélien Larcher
2018-03-12 13:56:38 UTC
Permalink
Post by Aurélien Larcher
Post by Aurélien Larcher
The header fix is delivered since 2016 and we have never delivered
https://github.com/OpenIndiana/oi-userland/tree/
oi/hipster/components/library/gmp/patches
<https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/library/gmp/patches>
Post by Aurélien Larcher
Could it be pulled from SFE?
I did a fresh install of my system in the summer of 2016. Since then I
just update the system.
But yes I see this header file in another machine that was installed more
recently. At any rate.
Could you try running this to understand where the file comes from?

helios> pkg search -r gmp.h
INDEX ACTION VALUE PACKAGE
basename file usr/include/gmp/gmp.h pkg:/library/***@6.1.2-2018.0.0.2

helios> LC_ALL=C pkg info library/gmp
Name: library/gmp
Summary: GNU Multiple Precision Bignum Library
Category: Development/High Performance Computing
State: Installed
Publisher: openindiana.org
Version: 6.1.2
Branch: 2018.0.0.2
Packaging Date: Sun Feb 11 12:48:54 2018
Size: 1.96 MB
FMRI: pkg://openindiana.org/library/***@6.1.2-2018.0.0.2:
20180211T124854Z
Project URL: http://gmplib.org/
Source URL: http://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.bz2

Thank you
Post by Aurélien Larcher
A.S.
----------------------
Apostolos Syropoulos
Xanthi, Greece
--
---
Praise the Caffeine embeddings
Loading...