[CP2K-user] [CP2K:20267] Re: compilation aborted for pw_methods.F90 (code 1)

Frederick Stein f.stein at hzdr.de
Fri May 31 11:04:20 UTC 2024


Dear Luca,
I do not know what the compiler does in your case. To me, it seems like a 
bug. Which compiler version do you use? We are currently testing 22.2 and 
OneAPI 2024.1.
Best regards,
Frederick

Luca schrieb am Freitag, 31. Mai 2024 um 12:11:13 UTC+2:

> Dear Frederick
>
> thank you for your reply.
> I followed your advice, however, now there is a new issue :
>
> cp2k-2024.1/src/motion/mc/mc_types.F(528): error #6795: The target must be 
> of the same type and kind type parameters as the pointer.   [MC_INPUT_FILE]
>       IF (PRESENT(mc_input_file)) mc_input_file => mc_par%mc_input_file
> ----------------------------------^
> cp2k-2024.1/src/motion/mc/mc_types.F(750): error #6795: The target must be 
> of the same type and kind type parameters as the pointer.   [MC_INPUT_FILE]
>       IF (PRESENT(mc_input_file)) mc_par%mc_input_file => mc_input_file
> -----------------------------------------^
> /cp2k-2024.1/src/motion/mc/mc_types.F(142): error #6404: This name does 
> not have a type, and must have an explicit type.   [MC_INPUT_FILE]
>          mc_input_file => NULL(), mc_bias_file => NULL()
> ---------^
> compilation aborted for mc_types.F90 (code 1)
> make[3]: *** [mc_types.o] Error 1
>
> make[3]: *** Waiting for unfinished jobs....
>
>
> Could you please help ? Is this easily fixable like before? 
>
> Best regards.
> Luca 
>
>
>
>   
>
> Il giorno venerdì 31 maggio 2024 alle 10:20:17 UTC+2 Frederick Stein ha 
> scritto:
>
>> Dear Luca,
>> Technically, this is a compiler bug (shortcuts arising from external 
>> associate constructs are shared). What you can do locally is to add the 
>> variable to the SHARED clause. Considering your compilers (considering the 
>> error message, the Intel compilers are employed), you should employ a more 
>> recent compiler if available.
>> Best,
>> Frederick
>>
>> Luca schrieb am Donnerstag, 30. Mai 2024 um 23:05:43 UTC+2:
>>
>>> Dear all
>>>
>>> I am trying to install cp2k-2024.1 using gcc10.3 and Intelmpi-2018 (or 
>>> 2020) compilers, Unfortunately, I get the error:
>>>
>>>  cp2k-2024.1/src/pw/pw_methods.F(1678): error #6752: Since the OpenMP* 
>>> DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, 
>>> or LASTPRIVATE attribute must be explicitly specified for every variable.   
>>> [NGPTS]
>>>             DO gpt = 1, ngpts
>>> ------------------------^
>>> cp2k-2024.1/src/pw/pw_methods.F(1687): error #6752: Since the OpenMP* 
>>> DEFAULT(NONE) clause applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, 
>>> or LASTPRIVATE attribute must be explicitly specified for every variable.   
>>> [NGPTS]
>>>             DO gpt = 1, ngpts
>>> ------------------------^
>>> compilation aborted for pw_methods.F90 (code 1)
>>> make[3]: *** [pw_methods.o] Error 1
>>> make[3]: *** Waiting for unfinished jobs....
>>> make[2]: *** [all] Error 2
>>> make[1]: *** [psmp] Error 2
>>> make: *** [all] Error 2
>>>
>>> Could you please help to overcome this issue?
>>>
>>> Bets Regards.
>>> Luca
>>>
>>>
>>>

-- 
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+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/707106bf-a39b-4a7f-9447-85cc0d6ebf49n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20240531/eb118144/attachment.htm>


More information about the CP2K-user mailing list