tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Clash of lib64 symlink and R extensions in wrappers



Am Tue, 26 May 2020 16:00:17 +0200
schrieb "Dr. Thomas Orgis" <thomas.orgis%uni-hamburg.de@localhost>:

> I guess I should check if pkgsrc's gcc doesn't have that search order
> thing. I'd not be surprised if it still has the same behaviour, though.

I checked. I installed lang/gcc8 and compared the system compiler's
search path with pkgsrc's.

$ LIBRARY_PATH=/foo/lib /usr/bin/gcc --print-search-dirs | grep ^libraries:|cut -f 2 -d = | tr : '\n'
/foo/lib/x86_64-redhat-linux/4.8.5/
/foo/lib/../lib64/
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../x86_64-redhat-linux/lib/x86_64-redhat-linux/4.8.5/
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../x86_64-redhat-linux/lib/../lib64/
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../x86_64-redhat-linux/4.8.5/
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/
/lib/x86_64-redhat-linux/4.8.5/
/lib/../lib64/
/usr/lib/x86_64-redhat-linux/4.8.5/
/usr/lib/../lib64/
/foo/lib/
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../x86_64-redhat-linux/lib/
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../
/lib/
/usr/lib/

$ LIBRARY_PATH=/foo/lib .prefix/gcc8/bin/gcc --print-search-dirs | grep ^libraries:|cut -f 2 -d = | tr : '\n'
/foo/lib/x86_64-redhat-linux/8.3.0/
/foo/lib/../lib64/
/sw/env/gcc-8.4.0_openmpi-3.1.6/pkgsrc/2020Q1/gcc8/lib/gcc/x86_64-redhat-linux/8.3.0/
/sw/env/gcc-8.4.0_openmpi-3.1.6/pkgsrc/2020Q1/gcc8/lib/gcc/x86_64-redhat-linux/8.3.0/../../../../x86_64-redhat-linux/lib/x86_64-redhat-linux/8.3.0/
/sw/env/gcc-8.4.0_openmpi-3.1.6/pkgsrc/2020Q1/gcc8/lib/gcc/x86_64-redhat-linux/8.3.0/../../../../x86_64-redhat-linux/lib/../lib64/
/sw/env/gcc-8.4.0_openmpi-3.1.6/pkgsrc/2020Q1/gcc8/lib/gcc/x86_64-redhat-linux/8.3.0/../../../x86_64-redhat-linux/8.3.0/
/sw/env/gcc-8.4.0_openmpi-3.1.6/pkgsrc/2020Q1/gcc8/lib/gcc/x86_64-redhat-linux/8.3.0/../../../../lib64/
/lib/x86_64-redhat-linux/8.3.0/
/lib/../lib64/
/usr/lib/x86_64-redhat-linux/8.3.0/
/usr/lib/../lib64/
/foo/lib/
/sw/env/gcc-8.4.0_openmpi-3.1.6/pkgsrc/2020Q1/gcc8/lib/gcc/x86_64-redhat-linux/8.3.0/../../../../x86_64-redhat-linux/lib/
/sw/env/gcc-8.4.0_openmpi-3.1.6/pkgsrc/2020Q1/gcc8/lib/gcc/x86_64-redhat-linux/8.3.0/../../../
/lib/
/usr/lib/

The gcc8 from pkgsrc also puts /foo/lib/x86_64-redhat-linux/8.3.0/ and
/foo/lib/../lib64/ first, then all other 64-like directories, then the
actual /foo/lib I wanted.

Is this known/desired?


Alrighty then,

Thomas
-- 
Dr. Thomas Orgis
HPC @ Universität Hamburg


Home | Main Index | Thread Index | Old Index