Compiler Errors - make (archs from installer) terminates
134 views
Skip to first unread message
Sean Bradley
unread,
Oct 22, 2020, 4:17:01 PM10/22/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp2k
I am attempting to install CP2K for the first time on an AMD EPYC system. After installing the AMD optimized libraries and other prerequisites, I run the CP2K installer script, leaving out components that have problems, and it generated the arch files. When I try to run the make command, it terminates with a set of errors and no description of what the problem is. I searched around in the cp2k folders and could not find any logs with more details. The last make.log file updated does not appear to have a problem. Below is some of the process/output.
Where can more information be found about the cause of the problem or how to resolve?
Toolchain Installer Output (replaced arch folder contents with files below):
==================== generating arch files ==================== arch files can be found in the /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch subdirectory Wrote /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/local.sopt Wrote /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/local.sdbg Wrote /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/local.ssmp Wrote /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/local.popt Wrote /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/local.pdbg Wrote /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/local.psmp Wrote /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/local_warn.psmp Wrote /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/local_coverage.sdbg Wrote /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/local_coverage.pdbg ========================== usage ========================= Done! Now copy: cp /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/arch/* to the cp2k/arch/ directory To use the installed tools and libraries and cp2k version compiled with it you will first need to execute at the prompt: source /home/cp2kuser/Downloads/cp2k/tools/toolchain/install/setup To build CP2K you should change directory: cd cp2k/ make -j 128 ARCH=local VERSION="sopt sdbg ssmp popt pdbg psmp"
make Command:
make -j 128 ARCH=local VERSION="sopt sdbg ssmp popt pdbg psmp"
$ tail ./tools/toolchain/build/hdf5-1.10.4/make.log CCLD h5watch make[3]: Leaving directory `/home/cp2kuser/Downloads/cp2k/tools/toolchain/build/hdf5-1.10.4/hl/tools/h5watch' make[3]: Entering directory `/home/cp2kuser/Downloads/cp2k/tools/toolchain/build/hdf5-1.10.4/hl/tools' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/cp2kuser/Downloads/cp2k/tools/toolchain/build/hdf5-1.10.4/hl/tools' make[2]: Leaving directory `/home/cp2kuser/Downloads/cp2k/tools/toolchain/build/hdf5-1.10.4/hl/tools' make[2]: Entering directory `/home/cp2kuser/Downloads/cp2k/tools/toolchain/build/hdf5-1.10.4/hl' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/home/cp2kuser/Downloads/cp2k/tools/toolchain/build/hdf5-1.10.4/hl' make[1]: Leaving directory `/home/cp2kuser/Downloads/cp2k/tools/toolchain/build/hdf5-1.10.4/hl'
Tiziano Müller
unread,
Oct 23, 2020, 3:36:24 AM10/23/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp...@googlegroups.com
Hi Sean,
please check the `make` command further up, you will find the cause of
the error there. Another possibility is to rerun make without `-j 128`
(to have a single build thread), then it will terminate directly at the
error.
When you say "AMD optimized libraries" do you mean the ones from the AOCL?
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp2k
Hi Tiziano,
Thanks for the suggestion. I will try the single thread compile and see if I can get more information.
Thanks again,
Sean
Sean Bradley
unread,
Oct 23, 2020, 7:31:33 PM10/23/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cp2k
Hi Tiziano,
That was a great suggestion. Thank you very much!
The output showed problems related to "undefined reference to `dgemm_'" which implied a blas/lapack problem. I was not real surprised by this since I was not sure my AOCL installation was correct. There are some things I need to work out there. Going back to open source lapack and scalapack allowed me to compile CP2K far enough to produce the some binaries. I appear to be over that hurdle.