[CP2K-user] [CP2K:18815] Minimal build of cp2k-2023.1 fails

Milner, Scott Thomas stm9 at psu.edu
Tue May 16 11:02:40 UTC 2023


Dear Matthias — Thanks for your prompt reply.  The reason I am building from source is that I want a version with PLUMED.  Building this minimal version is a preliminary, to make sure the build works.  What I ultimately want is a build that has PLUMED, and runs on a single node; my cluster does not have fast interconnects, so multinode jobs are not practical there).  If I understand correctly, this means the build has no need for MPI, hence the flag “—mpi-mode=no”:  is that correct?

As you can see from my email, I built everything from scratch, with no “=system”, precisely to avoid any incompatibilities.  It may be that somehow in previous build attempts I created some “left-overs” as you say, that are interfering with the current attempt.  I will start from a completely fresh unpack of the cp2k tarball and try once more.

Finally, is there some way to deal with the failure of the toolchain script to download necessary packages from cp2k.org<http://cp2k.org/> (because of expired certificates), other than to download each one by hand?

Best regards

Scott

On May 16, 2023, at 4:19 AM, Krack Matthias <matthias.krack at psi.ch<mailto:matthias.krack at psi.ch>> wrote:

You don't often get email from matthias.krack at psi.ch<mailto:matthias.krack at psi.ch>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Dear Scott

there is no need to build a serial cp2k.ssmp binary, because you can download a pre-compiled binary here<https://github.com/cp2k/cp2k/releases/download/v2023.1/cp2k-2023.1-Linux-gnu-x86_64.ssmp>.
Note, that such a serial cp2k binary is mostly useful for testing or education, but not for production runs.

I also have the gcc version 7.5.0 installed on my PC as the default system compiler. With that, I can compile and run the regression tests for cp2k-2023.1 without any issue using the commands you reported. So I suspect that the issues you are seeing are related to the environment configuration on your system. Maybe, there are left-overs from previous installation attempts which interfere now with the current installation. Try to start from scratch (new login session, new cp2k folder created using “git clone” or “tar -xf’).

Best regards

Matthias

From: cp2k at googlegroups.com<mailto:cp2k at googlegroups.com> <cp2k at googlegroups.com<mailto:cp2k at googlegroups.com>> on behalf of Scott Milner <stm9 at psu.edu<mailto:stm9 at psu.edu>>
Date: Tuesday, 16 May 2023 at 04:12
To: cp2k <cp2k at googlegroups.com<mailto:cp2k at googlegroups.com>>
Subject: [CP2K:18815] Minimal build of cp2k-2023.1 fails
I am trying to build cp2k-2023.1 on x86-64 Linux architecture using gcc-7.5.0
(which is listed as working, see https://www.cp2k.org/dev:compiler_support).

I tried the absolute simplest build possible:
     install_cp2k_toolchain.sh --with-fftw --with-openblas --mpi-mode=no
which proceeded without errors (except that I had to download all the .b2z files for the packages by hand, because the certificates have expired -- grrrr).

But the compile failed:  after the obligatory
     source /home/stm9/group/SOFTWARE/cp2k-2023.1/tools/toolchain/install/setup
and copying the architecture files to where they need to go,
the make command
     make -j 32 ARCH=local VERSION=ssmp
generated errors:

/data1/group/SOFTWARE/cp2k-2023.1/lib/local/ssmp/libcp2kmpiwrap.a(message_passing.o): In function `__message_passing_MOD_mp_abort':
/data1/group/SOFTWARE/cp2k-2023.1/src/mpiwrap/message_passing.F:1156: undefined reference to `_gfortran_stop_numeric_f08'
collect2: error: ld returned 1 exit status
make[3]: *** [/data1/group/SOFTWARE/cp2k-2023.1/exe/local/parallel_rng_types_unittest.ssmp] Error 1
make[2]: *** [all] Error 2
make[1]: *** [ssmp] Error 2
make: *** [all] Error 2

This is the most frustrating build I have dealt with in a long time.  I would much appreciate it if a knowledgeable CP2K-er can help build this app.

Scott Milner
Professor of Chemical Engineering
Penn State University



--
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<mailto:cp2k+unsubscribe at googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/c645fb64-9ccc-4c92-94e6-2ab06318d8c6n%40googlegroups.com<https://groups.google.com/d/msgid/cp2k/c645fb64-9ccc-4c92-94e6-2ab06318d8c6n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/V3kMoK1bDj0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cp2k+unsubscribe at googlegroups.com<mailto:cp2k+unsubscribe at googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/ZRAP278MB082776353E727D6B9342A0E1F4799%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/cp2k/ZRAP278MB082776353E727D6B9342A0E1F4799%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.

-- 
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/7FC4C38A-D4C9-4F84-B23C-D3BC8D98C550%40psu.edu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20230516/b8d56c83/attachment-0001.htm>


More information about the CP2K-user mailing list