|
Joined: Oct 2020
Posts: 3
Forum Member
|
OP
Forum Member
Joined: Oct 2020
Posts: 3 |
Hello! I'm trying to install CHARMM on Ubuntu 18.04 and I followed the simplest instructions on this site ( Installing CHARMM for Ubuntu)but it didn't work. The error is f951: Fatal Error: Reading module ‘allocation’ at line 1592 column 65: Unexpected EOFcompilation terminated. I have googled for this error and I found out that there are only several topics here describing it. Thread 37282Thread 37239And there was a solution in the first thread, but I have checked that file for this particular line and everything was ok, everything was like in the correct version of installation. The GCC issue is a bug, fixed in more recent versions. The fix is in build/UNX/Makefile_gnu
16c16
< GCC_GTEQ_460 := $(shell expr `gcc -dumpversion` \>= 4.6)
---
> GCC_GTEQ_460 := $(shell expr `gcc -dumpversion | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 40600)
The corrected version is the first line in the code snippet above. Does anybody knows what I'm supposed to do, how to fix this error?
Student of Chemoinformatics in the University of Strasbourg
|
|
|
|
Joined: Sep 2003
Posts: 8,650 Likes: 26
Forum Member
|
Forum Member
Joined: Sep 2003
Posts: 8,650 Likes: 26 |
What are the CHARMM and GCC versions you are using? The OS version alone is not enough information. In many case, the default compilers on Linux systems can be fairly old, compared to the latest GCC release.
The CHARMM version could be an issue; I just built c45b1 on Ubuntu 18.04 using the default GCC 7.5 suite, and the Ubuntu cmake utility.
Last edited by rmv; 10/24/20 05:06 PM.
Rick Venable computational chemist
|
|
|
|
Joined: Oct 2020
Posts: 3
Forum Member
|
OP
Forum Member
Joined: Oct 2020
Posts: 3 |
Actually, I don't know version of CHARMM I downloaded from http://charmm.chemistry.harvard.edu/charmm_lite.php bc it's lite free version maybe I can look in files of unpacked archive? I also have GCC 7.5. I am a student actually and I'm not sure that full licence is available for me, and I'm having problems with compiling lite-version and that's kinda sad)
Student of Chemoinformatics in the University of Strasbourg
|
|
|
|
Joined: Sep 2003
Posts: 8,650 Likes: 26
Forum Member
|
Forum Member
Joined: Sep 2003
Posts: 8,650 Likes: 26 |
When did you download the CHARMM source?
What were the commands used to build CHARMM?
The threads you referenced were using the older, deprecated ./install.com procedure, while "installing CHARMM for Ubuntu" link uses the newer ./configure procedure, so those threads may not be relevant. If you used configure, there should be messages about any problems encountered. Did you install Ubuntu cmake first, or use the one that configure builds from source?
Please verify your compiler and cmake versions via
gcc --version gfortran --version cmake --version
The gfortran version should match gcc; gfortran and cmake may not be installed on Ubuntu by default.
Martin Karplus spent some time in Strasbourg, so perhaps there are people there you could ask for help.
From the main charmm directory (c45b1 in my case), I did the following:
mkdir ../BldTest cd ../BldTest ../c45b1/configure make -j6
Rick Venable computational chemist
|
|
|
|
Joined: Sep 2003
Posts: 8,650 Likes: 26
Forum Member
|
Forum Member
Joined: Sep 2003
Posts: 8,650 Likes: 26 |
I cannot reproduce that error on Ubuntu 18.04, using the same compiler and cmake versions.
The 'unexpected EOF' error suggests that one possibility is that the download was corrupted; you may need to download it again.
What it is the CHARMM version? Alternatively, and I've already asked this, when did you download the program?
Can you compile other Fortran programs on that machine?
Rick Venable computational chemist
|
|
|
|
Joined: Aug 2009
Posts: 139
Forum Member
|
Forum Member
Joined: Aug 2009
Posts: 139 |
I had a similar problem. I tried to compile charmm c41b2 edition on ubuntu 18.04 edition. The gcc edition is 7.5.0, gfortran edition is 7.5.0, and cmake edition is 3.10.2. After I typed ./configure command, I got errors in the process.
CMake Error in /home/xxx/charmm/CMakeFiles/CMakeTmp/CMakeLists.txt: Imported target "MPI::MPI_C" includes non-existent path
in its INTERFACE_INCLUDE_DIRECTORIES.
I am wondering what I can do. Thanks.
|
|
|
|
Joined: Sep 2003
Posts: 8,650 Likes: 26
Forum Member
|
Forum Member
Joined: Sep 2003
Posts: 8,650 Likes: 26 |
The error is very different. The CHARMM version and GCC versions are not up to date. There's not enough information to say more.
Rick Venable computational chemist
|
|
|
|
Joined: Aug 2009
Posts: 139
Forum Member
|
Forum Member
Joined: Aug 2009
Posts: 139 |
Dear all, I figured out how to compile charmm on ubuntu 18.04 system. My error above came from fftw. After i installed libfftw3-3 and libfftw3-dev, I can run configure without any problem, then can compile charmm. Intel compilors are not necessary for the compiling. Gfortran and Gcc compilors are good enough.
I only have one question. Right now, after typing sudo make install command, i can install charmm. But I do not know if it is the xxlarge size. I am wondering how to control that.
|
|
|
|
Joined: Sep 2003
Posts: 4,881 Likes: 12
Forum Member
|
Forum Member
Joined: Sep 2003
Posts: 4,881 Likes: 12 |
XXLARGE & Co are obsolete. Instead the dimensions of atom-number related arrays is controlled at runtime using the flag "-chsize N", where N is an integer specifying the number of atoms . The current default is 360720, which corresponds to XXLARGE. See usage.info
Lennart Nilsson Karolinska Institutet Stockholm, Sweden
|
|
|
|
|