Hi Jatin,
No problem....
OK, I just tested it out and I was able to get it all to work using the
following configuration command:
./configure --prefix=${HOME}/local --system-arch=32bit CC=gcc-7 CXX=g++-7 FC=gfortran-7 LDFLAGS+="-read_only_relocs suppress"
Explaination:
'--system-arch=32bit'
Due to a gfortran bug on MacOS we can only get the KIM API to compile
in 32 bit mode...
'CC=gcc-7'
'CXX=g++-7'
'FC=gfortran-7'
These settings tell the build system how to find the correct compilers
you have installed on your system. In your case these are the versions
installed via homebrew.
'LDFLAGS+="-read_only_relocs suppress"'
This setting works-around another bug in the gfortran compiler on
MacOS.
For everyone's reference, these things are also explained in Section F.1(h) of
the INSTALL file.
Try that configure command and see if it works for you now....
Cheers,
Ryan
On Fri, 9 Mar 2018, Jatin Kashyap wrote:
> I'm greatly sorry Ryan, I just realized my mistake of misinterpreting your
> name.
> Thank you.
>
> On Thursday, March 8, 2018 at 5:46:54 PM UTC-5, Jatin Kashyap wrote:
>>
>> Dear OpenKIM Users,
>>
>> I’m trying to install the OpenKIM API in my MacBook (had already installed
>> the KIM models), and getting the following error while following section
>> “D” of Install document in documentation of OpenKIM API:
>>
>>
>>
>> **************************************************************************************************************************************************************
>> *Jatins-Air:kim-api-v1.9.3 kashyap$ make*
>>
>>
>> *********************************************************************************
>> *** Building... kim-api-objects
>> ***
>>
>> *********************************************************************************
>> *make[1]: Nothing to be done for `objects'.*
>>
>>
>> *********************************************************************************
>> *** Building... kim-api-libs
>> ***
>>
>> *********************************************************************************
>> *Creating... KIM API library.......
>> libkim-api-v1.9.3+
GCC.darwin.64bit.dynamic-load.so
>> <
http://GCC.darwin.64bit.dynamic-load.so>.*
>> *ld: library not found for -lgfortran*
>> *clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)*
>> *make[1]: *** [libkim-api-v1.9.3+
GCC.darwin.64bit.dynamic-load.so
>> <
http://GCC.darwin.64bit.dynamic-load.so>] Error 1*
>> *make: *** [kim-api-libs] Error 2*
>>
>> **************************************************************************************************************************************************************
>>
>> I’m going to use it with LAMMPS on my local machine. And I already
>> searched the forum for relevant content.
>>
>> Thank you very much in advance for any hint to solve it.
>>
>
>
[On Christopher Columbus's (later life) suggestion of a "pear-shaped"
earth] ... The willingness to reexamine lifelong beliefs because of
conflicting data takes enormous courage, and contrasts sharply with
recent examples of public discourse in which our political, cultural,
and religious leaders have fit data to preconceived theories.
Donal O'Shea
----------