integer-simple linker errors?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

integer-simple linker errors?

Gabor Greif-2
Hi all,

I am getting below errors from libraries/integer-simple.

Which integer-gmp / GHC change caused this? I looked briefly, but
could not find anything.

Thanks,

    Gabor

0130407.so: undefined reference to `__word_encodeDouble'

/libHSinteger-simple-0.1.1.0-ghc7.7.20130407.so: undefined reference
to `__word_encodeFloat'


Reply | Threaded
Open this post in threaded view
|

integer-simple linker errors?

Ian Lynagh-2

Hi Gabor,

On Mon, Apr 08, 2013 at 08:15:34PM +0200, Gabor Greif wrote:

>
> I am getting below errors from libraries/integer-simple.
>
> Which integer-gmp / GHC change caused this? I looked briefly, but
> could not find anything.
>
> 0130407.so: undefined reference to `__word_encodeDouble'
>
> /libHSinteger-simple-0.1.1.0-ghc7.7.20130407.so: undefined reference
> to `__word_encodeFloat'

It's plausible that no-one's ever tried to build integer-simple the dyn
way before.


Thanks
Ian



Reply | Threaded
Open this post in threaded view
|

integer-simple linker errors?

Gabor Greif-2
Hi Ian!

Yeah, but why is dynamic different at all?

Looking at integer-gmp, it imports __int_encodeFloat instead of
__word_encodeFloat.

GHC rts exports __int_encodeFloat. How can this even work in the
statically linked case?

I am very sleepy, otherwise I'd try to build a vanilla OS X GHC with
integer-simple now ...

Till tomorrow, things may become clearer to me.

Cheers,

    Gabor

On 4/8/13, Ian Lynagh <ian at well-typed.com> wrote:

>
> Hi Gabor,
>
> On Mon, Apr 08, 2013 at 08:15:34PM +0200, Gabor Greif wrote:
>>
>> I am getting below errors from libraries/integer-simple.
>>
>> Which integer-gmp / GHC change caused this? I looked briefly, but
>> could not find anything.
>>
>> 0130407.so: undefined reference to `__word_encodeDouble'
>>
>> /libHSinteger-simple-0.1.1.0-ghc7.7.20130407.so: undefined reference
>> to `__word_encodeFloat'
>
> It's plausible that no-one's ever tried to build integer-simple the dyn
> way before.
>
>
> Thanks
> Ian
>
>