CHARMM Development Project
Posted By: Dmitriy GAMUS compilation issue - 11/26/19 11:15 AM
Hi guys!

I have encountered a problem during compilation of charmm with GAMUS.

I have used the following string for compilation

./ gnu large gfortran x86_64 gamus

The output:

use param_store, only: set_params
Error: Symbol 'set_params' referenced at (1) not found in module 'param_store'
make: *** [gamus.o] Error 1

As i understand, the problem is not in linkage of LAPACK and BLAS. Something wrong with compilation.

Could you please help me?
Posted By: lennart Re: GAMUS compilation issue - 11/26/19 11:47 AM
The code is incorrect. Change set_params to set_param in gamus.F90.
Posted By: Dmitriy Re: GAMUS compilation issue - 11/26/19 01:03 PM
Lennart, thank you for your prompt reply!

Yeap, now compilation is successful, but a have a lot of undefined references on a linkage stage concerning C++ structures.

For example,
undefined reference to `std::cout'
undefined reference to `std::string::append(std::string const&)'
undefined reference to `std::string::assign(std::string const&)'

As i understand I need to point out the C++ library explicitly, like -lstdc++ or somehow else.

Could you please tell me how can I show it via using install script?


Posted By: lennart Re: GAMUS compilation issue - 11/26/19 03:15 PM
I don't know which CHARMM version you have, but you should get the most recent version (free to download from and use the cmake installation procedure.
Posted By: bucknerj Re: GAMUS compilation issue - 11/26/19 06:40 PM
I am attaching a patch to fix the process. I will post this patch in the bugfixes topic too. The patch works for both c45a1 and c44b1.

Apply the patch to a fresh copy of the charmm source code. It includes fixes for source/gamus/gamus.F90, and configure/cmake.

To apply the patch, change directory to the root of the charmm source code, and then issue the following command.

patch -p1 -i <full path to patch file>

Then you should be able to install charmm + gamus as usual with something like

./ gnu gamus


./configure --with-gamus

Attached File
patch.txt  (111 downloads)
Posted By: Dmitriy Re: GAMUS compilation issue - 11/27/19 04:16 AM
Thank you for help, guys!

After applying fixes the building is successful.

Best regards,
© CHARMM forums