make problems

76 views
Skip to first unread message

JJY_MacBook

unread,
May 19, 2014, 1:39:29 AM5/19/14
to ope...@googlegroups.com
Dear openKim developers,

I tried openKIM-api first time to install it in LAMMPS.
In my system, CentOS and Intel compilers are installed.

The problem during make step is as follows. Plz help me.

==========
Creating... KIM_Config file..... KIM_API/Makefile.KIM_Config.
Creating... KIM_Config file..... MODEL_DRIVERS/Makefile.KIM_Config.
Creating... KIM_Config file..... MODELS/Makefile.KIM_Config.
Creating... KIM_Config file..... TESTS/Makefile.KIM_Config.

*******************************************************************************
** Making... kim-api-objects                                                 **
*******************************************************************************
make[1]: Warning: File `Makefile.KIM_Config' has modification time 3.7 s in the future
make[1]: Warning: File `Makefile.KIM_Config' has modification time 3.7 s in the future
Creating... KIM_API.o.
icpc: command line remark #10148: option '-pedantic' not supported
KIM_API.cpp(300): remark #981: operands are evaluated in unspecified order
              if(strlen(str)<strlen(tocmp)) return false;
                            ^

KIM_API.cpp(306): remark #981: operands are evaluated in unspecified order
              if(strlen(str)<strlen(tocmp)) return false;
                            ^

KIM_API.cpp(758): remark #869: parameter "modelname" was never referenced
  int KIM_API_model:: preinit(const char * initfile,const char *modelname){
                                                                ^

KIM_API.cpp(1198): remark #1419: external declaration in primary source file
     extern const int standard_kim_str_chunks;
                      ^

KIM_API.cpp(1199): remark #1419: external declaration in primary source file
     extern const char* const standard_kim_str[];
                              ^

KIM_API.cpp(1494): remark #981: operands are evaluated in unspecified order
         std::cout<<modelname<<std::endl<<dlerror()<<std::endl;
                                        ^

KIM_API.cpp(1503): warning #191: type qualifier is meaningless on cast type
      const int* const model_str_chunks = (const int* const) dlsym(tmp_model_lib_handle, model_kim_str_chunks_name);
                                           ^

KIM_API.cpp(1514): warning #191: type qualifier is meaningless on cast type
      const char** const model_str_ptr = (const char** const) dlsym(tmp_model_lib_handle, model_kim_str_name);
                                          ^

KIM_API.cpp(1526): warning #191: type qualifier is meaningless on cast type
      char* const str_cpy = (char* const) malloc(*model_str_chunks * CPP_MAX_STRING_LITERAL_LENGTH);
                             ^

KIM_API.cpp(1581): remark #981: operands are evaluated in unspecified order
          std::cout<<"prestring_init  failed with error status: "<<this->get_status_msg(ErrorCode)<<std::endl;
                                                                 ^

KIM_API.cpp(1587): remark #981: operands are evaluated in unspecified order
          std::cout<<"preinit  failed with error status: "<<this->get_status_msg(ErrorCode)<<std::endl;
                                                          ^

KIM_API.cpp(1666): remark #981: operands are evaluated in unspecified order
         std::cout<<"mdl.prestring_init failed with error status:"<<get_status_msg(error)<<std::endl;
                                                                  ^

KIM_API.cpp(1678): remark #981: operands are evaluated in unspecified order
         std::cout<<"test.prestring_init failed with error status:"<<get_status_msg(error)<<std::endl;
                                                                   ^

KIM_API.cpp(1861): remark #981: operands are evaluated in unspecified order
         std::cout<<modelname<<std::endl<<dlerror()<<std::endl;
                                        ^

KIM_API.cpp(1871): remark #981: operands are evaluated in unspecified order
  std::cout<<"               from the shared library:"<<itr->c_str()<<std::endl;
                                                      ^

KIM_API.cpp(2034): remark #981: operands are evaluated in unspecified order
          strncpy((*this)[i].unit->dim,this->inlines[i].dim,strlen(this->inlines[i].dim)+1);
                                                            ^

KIM_API.cpp(2034): remark #981: operands are evaluated in unspecified order
          strncpy((*this)[i].unit->dim,this->inlines[i].dim,strlen(this->inlines[i].dim)+1);
          ^

KIM_API.cpp(2055): remark #981: operands are evaluated in unspecified order
                << *(pel[i]) << std::endl;
                ^

KIM_API.cpp(2221): remark #981: operands are evaluated in unspecified order
            strncpy(listvpar+count*KIM_KEY_STRING_LENGTH, (*this)[i].name, strlen((*this)[i].name) +1 );
                                                                           ^

KIM_API.cpp(2221): remark #981: operands are evaluated in unspecified order
            strncpy(listvpar+count*KIM_KEY_STRING_LENGTH, (*this)[i].name, strlen((*this)[i].name) +1 );
            ^

Creating... KIM_API_C.o.
icpc: command line remark #10148: option '-pedantic' not supported
Creating... intermediate file... standard_kim_str.cpp.
Creating... standard_kim_str.o.
icpc: command line remark #10148: option '-pedantic' not supported
Creating... Unit_Handling.o.
icpc: command line remark #10148: option '-pedantic' not supported
Unit_Handling.cpp(424): remark #981: operands are evaluated in unspecified order
        return pow(scale_length,length_exponent)*pow(scale_energy,energy_exponent)*
                                                ^

Unit_Handling.cpp(424): remark #981: operands are evaluated in unspecified order
        return pow(scale_length,length_exponent)*pow(scale_energy,energy_exponent)*
                                                                                  ^

Unit_Handling.cpp(425): remark #981: operands are evaluated in unspecified order
               pow(scale_charge,charge_exponent)*pow(scale_temperature,temperature_exponent)*
                                                ^

Unit_Handling.cpp(425): remark #981: operands are evaluated in unspecified order
               pow(scale_charge,charge_exponent)*pow(scale_temperature,temperature_exponent)*
                                                                                            ^

Creating... KIM_AUX.o.
icpc: command line remark #10148: option '-pedantic' not supported
Creating... intermediate file... KIM_API_DIRS.cpp.
Creating... KIM_API_DIRS.o.
icpc: command line remark #10148: option '-pedantic' not supported
Creating... KIM_API_F.o.
KIM_API_F.F90(864): remark #7712: This variable has not been used.   [STR]
            character :: str(1); pointer(pstr,str)
-------------------------^
KIM_API_F.F90(765): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(754): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(731): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(698): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(683): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(670): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(656): remark #7712: This variable has not been used.   [STR]
                character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
---------------------------------------------------------^
KIM_API_F.F90(645): remark #7712: This variable has not been used.   [STR]
                character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
---------------------------------------------------------^
KIM_API_F.F90(634): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(594): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(584): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(572): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(559): remark #7712: This variable has not been used.   [STR]
            character (len=KIM_KEY_STRING_LENGTH) :: str; pointer (pstr,str)
-----------------------------------------------------^
KIM_API_F.F90(502): remark #7712: This variable has not been used.   [POINTERCSTRING]
    character (len=KIM_KEY_STRING_LENGTH) function cstring2fortran(pointercstring)
-------------------------------------------------------------------^
KIM_API_F.F90(538): remark #7712: This variable has not been used.   [S1]
            character (len=KIM_KEY_STRING_LENGTH):: s1,s2
----------------------------------------------------^
KIM_API_F.F90(514): remark #7712: This variable has not been used.   [S1]
            character (len=KIM_KEY_STRING_LENGTH):: s1,s2
----------------------------------------------------^
KIM_API_F.F90(538): remark #7712: This variable has not been used.   [S2]
            character (len=KIM_KEY_STRING_LENGTH):: s1,s2
-------------------------------------------------------^
KIM_API_F.F90(527): remark #7712: This variable has not been used.   [S2]
            character (len=KIM_KEY_STRING_LENGTH):: s2
----------------------------------------------------^
KIM_API_F.F90(514): remark #7712: This variable has not been used.   [S2]
            character (len=KIM_KEY_STRING_LENGTH):: s1,s2
-------------------------------------------------------^
KIM_API_F.F90(801): remark #7712: This variable has not been used.   [SHPST]
            integer :: shpst(1); pointer(pshpst,shpst)
-----------------------^
KIM_API_F.F90(735): remark #7712: This variable has not been used.   [SHPST]
            integer :: shpst(1); pointer(pshpst,shpst)
-----------------------^
KIM_API_F.F90(702): remark #7712: This variable has not been used.   [SHPST]
            integer :: shpst(1); pointer(pshpst,shpst)
-----------------------^
Creating... KIM_API_F03_Multiples.incl.
Creating... KIM_API_F03_Helper.o.
ifort: warning #10147: no action performed for specified file(s)
Creating... KIM_API_F03.o.
ifort: warning #10147: no action performed for specified file(s)
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
rm standard_kim_str.cpp KIM_API_DIRS.cpp

*******************************************************************************
** Making... kim-api-libs                                                    **
*******************************************************************************
make[1]: Warning: File `KIM_API_C.o' has modification time 0.76 s in the future
Creating... KIM_API_F03_Helper.o.
ifort: warning #10147: no action performed for specified file(s)
Creating... KIM_API_F03.o.
ifort: warning #10147: no action performed for specified file(s)
Creating... openkim-api library... libkim.a.
ar: KIM_API_F03.o: No such file or directory
make[1]: *** [libkim.a] Error 1
make: *** [kim-api-libs] Error 2
=========

============================
Joung, Jong Young
Post-Doc Research Fellow
Center for In silico Protein Science
School of Computational Science
Korea Institute for Advanced Science

lis...@kias.re.kr
82-2-958-3778

Ryan S. Elliott

unread,
May 19, 2014, 3:03:55 PM5/19/14
to ope...@googlegroups.com
Dear Jong Young,

Thanks for your message. This problem was caused by differences between the
INTEL and GCC compiles. The changes I've just released in openkim-api-v1.4.1
should fix the problem for you. Please give it a try with v1.4.1 and let us
know if you still have problems.

Cheers,

Ryan Elliott
--
Ryan S. Elliott, Ph.D. and Associate Professor
Russell J. Penrose Faculty Fellow
Aerospace Engineering & Mechanics, University of Minnesota
(612) 624-2376 (626-1558 fax)
http://www.aem.umn.edu/~elliott/
download vCard <http://www.aem.umn.edu/~elliott/relliott.vcf>

KIM Editor (http://openKIM.org)
MSI Associate Fellow (http://msi.umn.edu)

CMT textbook webpage (http://modelingmaterials.org)
----------
[Used to say that] scientists were treacherous allies on committees, for
they were apt to change their minds in response to arguments.

Cecil Maurice Bowra
----------
Reply all
Reply to author
Forward
0 new messages