[CP2K:10047] compile cp2k with gcc/6.2.0 and openmpi/gcc/6.2.0/3.0.0

Alfio Lazzaro alfio.... at gmail.com
Thu Mar 1 12:38:52 UTC 2018


Hello Fernan,
I'm not sure why the mpiwrapper cannot find the library...
What do you get from:

mpif90 --showme:link

? I assume that you should have the path to the MPI libraries and 
-lmpi_usempif08. For instance, my case I have:

-pthread 
-I/sw/build/openSUSE/13.1/para/openmpi/openmpi-2.0.1_gcc-5.3.0/lib64 
-Wl,-rpath 
-Wl,/sw/build/openSUSE/13.1/para/openmpi/openmpi-2.0.1_gcc-5.3.0/lib64 
-Wl,--enable-new-dtags -L/sw/build/openSUSE/13.1/para/openmpi/openmpi-2.0.1_gcc-5.3.0/lib64 
-lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi

You cannot directly link the library since the MPI wrapper does that for 
you. I wonder if the problem is in the dynamic/static linking...

Alfio


Il giorno giovedì 1 marzo 2018 13:20:09 UTC+1, Fernan Saiz ha scritto:
>
> Hi,
> I did try to link it but I got the error:
> /usr/bin/ld: attempted static link of dynamic object 
> `/apps/openmpi/gcc/6.2.0/3.0.0/lib/libmpi_usempif08.so'
>
> I also tried to link the library 
> /usr/bin/ld: attempted static link of dynamic object 
> `/apps/openmpi/gcc/6.2.0/3.0.0/lib/libmpi_usempif08.la'
> but I got the following error:
> /apps/openmpi/gcc/6.2.0/3.0.0/lib/libmpi_usempif08.la: file not 
> recognized: File format not recognized
>
> Thanks,
>
>
> - Fernan
>
> On Thu, Mar 1, 2018 at 12:10 PM, Jerry Tanoury <jerr... at gmail.com 
> <javascript:>> wrote:
>
>> It seems you have commented out your LIB 
>> path $(MPI_LIB)/libmpi_usempif08.so, so CP2K is not seeing the library path 
>> to libmpi_usempif08.so
>>
>> Best,
>> Jerry
>>
>> On Thu, Mar 1, 2018 at 7:01 AM, Fernan Saiz <fsa... at gmail.com 
>> <javascript:>> wrote:
>>
>>> Hi all,
>>> I am trying to compile cp2k with gcc/6.2.0 and openmpi/gcc/6.2.0/3.0.0. 
>>> However, my compilation stops with error /usr/bin/ld: cannot find 
>>> -lmpi_usempif08 as shown in the attached file log_compile.txt. I have load 
>>> the modules gcc/6.2.0 and openmpi/gcc/6.2.0/3.0.0 and the library 
>>> libmpi_usempif08.a shows in the path lib of the opempi compiler. I also 
>>> attach my arch.make file. Any help is much appreciated. 
>>>
>>> Best regards,
>>>  - Fernan Saiz, PhD
>>> Department of Chemistry
>>> Imperial College London
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "cp2k" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to cp2k+... at googlegroups.com <javascript:>.
>>> To post to this group, send email to cp... at googlegroups.com 
>>> <javascript:>.
>>> Visit this group at https://groups.google.com/group/cp2k.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "cp2k" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/cp2k/D_C3POiONyk/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> cp2k+... at googlegroups.com <javascript:>.
>> To post to this group, send email to cp... at googlegroups.com <javascript:>
>> .
>> Visit this group at https://groups.google.com/group/cp2k.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20180301/68109e61/attachment.htm>


More information about the CP2K-user mailing list