[gmx-developers] master branch link fails with clang 3.7/3.8/3.9
Szilárd Páll
pall.szilard at gmail.com
Thu Oct 27 00:09:51 CEST 2016
On Wed, Oct 26, 2016 at 4:50 PM, Vedran Miletić <vedran at miletic.net> wrote:
> On 10/26/2016 02:25 AM, Szilárd Páll wrote:
>> Hi,
>>
>> My tree was brand new, but I tried fresh: cloned a clean source, configured with
>> CC=clang-3.9 CXX=clang++-3.9 cmake ../ -DGMX_FFT_LIBRARY=fftpack && make -j8
>> and I'm still getting the same error.
>>
>> --
>> Szilárd
>>
>
> Just tried this command and can't reproduce it here. Checklist:
> 1) GCC works normally?
It does.
> 2) Have you tried GOLD or even LLD?
No. Not sure how do those relate (and admittedly never heard of LLD --
and did't google to find it out ;).
> 3) Anything unusual in LD_LIBRARY_PATH?
Nope.
$ echo $LD_LIBRARY_PATH
/opt/tcbsys/clang/3.9.0/lib
Actually, it looks like gcc 4.8 simply does not work. If I either
manually pass it in --gcc-toolchain or it gets picked up by clang, I
get the error. Here's how the detection goes (Full output here:
http://pastebin.com/gsL64baC):
clang version 3.9.0 (tags/RELEASE_390/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/tcbsys/clang/3.9.0/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.3
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
and linking here fails here.
However, when a later gcc is picked up it does not (see
http://pastebin.com/1ZGknVNh)
clang version 3.9.0 (tags/RELEASE_390/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/tcbsys/clang/3.9.0/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.1.1
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
So it looks like clang thinks that gcc 4.8.4 is good enough, but it's
probably not.
> Vedran
>
> --
> Vedran Miletić
> vedran.miletic.net
More information about the gromacs.org_gmx-developers
mailing list