[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: i686-solaris
From: |
Ludovic Courtès |
Subject: |
Re: i686-solaris |
Date: |
Fri, 12 Jul 2013 11:15:15 +0200 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Vincent Lefevre <address@hidden> skribis:
> On 2013-07-12 09:25:59 +0200, Zimmermann Paul wrote:
>> Hi,
>>
>> it seems the library installed in
>> /nix/store/yz4r78ssvhz4cc0xj4z9mv98m2xz9q97-gmp-4.3.2/lib is for GMP 4.3.1
>> and not 4.3.2. See for example:
>>
>> http://hydra.nixos.org/build/5509583/download/1/mpfr-0pre-3.2.0-dev/nix-build-rwfk69g6r85hm43gfd2lq1s7r30g3iyg-mpfr-0pre-3.2.0-dev.drv-0/mpfr-3.2.0-dev/config.log
>>
>> configure:15350: gcc -std=gnu99 -o conftest -Wall -Wmissing-prototypes
>> -Wpointer-arith -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium2
>> -march=pentium2 -ffloat-store
>> -I/nix/store/yz4r78ssvhz4cc0xj4z9mv98m2xz9q97-gmp-4.3.2/include
>> -L/nix/store/yz4r78ssvhz4cc0xj4z9mv98m2xz9q97-gmp-4.3.2/lib conftest.c -lgmp
>> >&5
>> configure:15350: $? = 0
>> configure:15350: ./conftest
>> gmp.h: 4.3.2 / libgmp: 4.3.1
>>
>> (unless -lgmp did take another library that the one given by -L...)
>>
>> Is it possible to fix that issue?
>
> It would be surprising to have a wrong GMP installation. I have the
> impression that libgmp 4.3.1 comes from a system-wide installation,
> e.g. /usr/lib,
Yes, but we provide explicit -I and -L flags pointing to 4.3.2 (see
above; this comes from mpfr/release.nix.)
However, it may be that ./conftest above is picking /usr/lib/libgmp.so
at run time, presumably because /nix/store/...-gmp-4.3.2/lib is not in
the loader’s search path. Nixpkgs’s ld-wrapper normally adds it to the
RPATH [0], but perhaps this has lower precedence than /usr/lib?
Ludo’.
[0]
https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/gcc-wrapper/ld-wrapper.sh