I'm trying to compile one of the example model drivers on a Mac (OX X 10.8.5, gcc 4.7.2 and make 3.81 from macports). I can compile the api itself (i.e. "make openkim-api"), but when I try a plain make, I get the following:
[[email protected] openkim-api-v1.4.0]$ make
***************************************************************************=
** Making… kim-api-objects =
**
***************************************************************************=
make[1]: Nothing to be done for `objects’.
***************************************************************************=
** Making… kim-api-libs =
**
***************************************************************************=
make[1]: Nothing to be done for `libs’.
***************************************************************************=
** Making… Model Driver… ex_model_driver_P_LJ =
**
***************************************************************************=
Creating… ex_model_driver_P_LJ.so.
ld: illegal text-relocation to _reinit in ex_model_driver_P_LJ.a(ex_model_d=
river_P_LJ.o) from anon in ex_model_driver_P_LJ.a(ex_model_driver_P_LJ.o) f=
or architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [ex_model_driver_P_LJ.so] Error 1
make: *** [ex_model_driver_P_LJ-all] Error 2
This is the non-default part of my Makefile.KIM_config:
KIM_DIR =3D $(HOME)/src/work/OpenKIM/openkim-api-v1.4.0
#KIM_MODEL_DRIVERS_DIR =3D
#KIM_MODELS_DIR =3D
#KIM_TESTS_DIR =3D
KIM_COMPILERSUITE =3D GCC
KIM_SYSTEMLINKER =3D darwin
KIM_SYSTEMARCH =3D 64bit
KIM_LINK =3D dynamic-load
Any suggestions as to what’s going on with the linking?