error in compiling KIM in lammps: ../lmptype.h:86:19: error: ‘INT64_MAX’ was not declared in this scope

28 views
Skip to first unread message

Joonho Park

unread,
Oct 1, 2019, 4:31:52 AM10/1/19
to openkim
KIM in Lammps($LMPHOME/lib/kim) was compiled in a server.
First KIM was well installed with cmake(3.12) and then
lammps can include KIM package,
then during compilation with make in lammps, it shows error message as follows:

CentOS 7.4, intel/18.0.3 impi/18.0.3 cmake/3.12.3
================================================================
/include/kim-api -I/home01/x1813a01/lammps/lib/kim/installed-kim-api/lib64/kim-api/mod    -c ../read_dump.cpp
In file included from ../pointers.h:24:0,
                 from ../read_dump.h:26,
                 from ../read_dump.cpp:22:
../read_dump.cpp: In member function ‘void LAMMPS_NS::ReadDump::process_atoms()’:
../lmptype.h:86:19: error: ‘INT64_MAX’ was not declared in this scope
 #define MAXBIGINT INT64_MAX
                   ^
../read_dump.cpp:1063:45: note: in expansion of macro ‘MAXBIGINT’
     if (atom->natoms < 0 || atom->natoms >= MAXBIGINT)
============================================================

With the same installation procedure, it was well compiled in my local system of CentOS 7 with intel compiler and cmake v 3.6.
In the above server, it makes an error though I have followed the same procedure.

Could you address why this error occurs?

Thank you for your time,

Joonho Park

Ryan S. Elliott

unread,
Oct 1, 2019, 7:39:41 AM10/1/19
to ope...@googlegroups.com
Hello,

Thanks for your message and for using the KIM system!

The error you list does not appear to be related to KIM at all.

Maybe try to build lammps without KIM first to see if you can get that to succeed.  (Check the lammps webpages and mailing list for help.) Then, once that works OK try again with the KIM package enabled.

Cheers,

Ryan

Sent from my iPhone6s
--

---
You received this message because you are subscribed to the Google Groups "openkim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openkim+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openkim/0d3fd2a9-99fe-4dca-bca9-a4128ce01dca%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages