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

2018-03-12 Thread Aurélien Larcher
On Mon, Mar 12, 2018 at 2:45 PM, Apostolos Syropoulos  wrote:

>
>
>
> >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.
>

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/gmp@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/gmp@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


>
> A.S.
>
> --
> Apostolos Syropoulos
> Xanthi, Greece
>
>
>


-- 
---
Praise the Caffeine embeddings
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


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

2018-03-12 Thread Apostolos Syropoulos via openindiana-discuss



>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
 

  
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


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

2018-03-10 Thread Aurélien Larcher
On Sat, Mar 10, 2018 at 4:57 PM, Apostolos Syropoulos  wrote:

> >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?
> >
> >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?


> A.S.
> --
> Apostolos Syropoulos
> Xanthi, Greece
>
>
>
>


-- 
---
Praise the Caffeine embeddings
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


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

2018-03-10 Thread Apostolos Syropoulos via openindiana-discuss
>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?
>
>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
 

  
 
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


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

2018-03-10 Thread Aurélien Larcher
On Sat, Mar 10, 2018 at 4:50 PM, Aurélien Larcher <
aurelien.larc...@gmail.com> wrote:

>
>
> On Sat, Mar 10, 2018 at 4:26 PM, Apostolos Syropoulos via
> openindiana-discuss  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?
>

We deliver /usr/include/gmp/gmp.h not /usr/include/gmp.h


>
>
>>
>> At least this solves the problem with GHC.
>> A.S.
>>
>>
>> --
>> Apostolos Syropoulos
>> Xanthi, Greece
>> ___
>> openindiana-discuss mailing list
>> openindiana-discuss@openindiana.org
>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>
>
>
> --
> ---
> Praise the Caffeine embeddings
>



-- 
---
Praise the Caffeine embeddings
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


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

2018-03-10 Thread Aurélien Larcher
On Sat, Mar 10, 2018 at 4:26 PM, Apostolos Syropoulos via
openindiana-discuss  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@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>



-- 
---
Praise the Caffeine embeddings
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


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

2018-03-10 Thread 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 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
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss