The alternative approach does not throw any error (just a couple of warnings):
Cleaning… Model Driver… toy_model_driver.
Creating… toy_model_driver.o.
toy_model_driver.F90:220.40:
model_compute_arguments_destroy_handle, ierr) bind©
1
Warning: Unused dummy argument ‘model_compute_arguments_destroy_handle’ at (1)
toy_model_driver.F90:219.63:
subroutine model_compute_arguments_destroy(model_compute_handle, &
1
Warning: Unused dummy argument ‘model_compute_handle’ at (1)
toy_model_driver.F90:190.62:
subroutine model_compute_arguments_create(model_compute_handle, &
1
Warning: Unused dummy argument ‘model_compute_handle’ at (1)
Creating… intermediate file… driver_init_wrapper.cpp.
Creating… driver_init_wrapper.o.
Creating… libkim-api-model-driver-v2.0.0-beta.1+GCC.linux.64bit.dynamic-load.a.
Creating… intermediate file… export-list.txt.
Creating… libkim-api-model-driver-v2.0.0-beta.1+GCC.linux.64bit.dynamic-load.so.
Creating… libkim-api-model-driver-v2.so.
rm driver_init_wrapper.cpp export-list.txt
Aborting!
But it aborts without installing the model driver. When I do:
$ kim-api-v2-collections-management list
I still see no model being installed:
Knowledgebase of Interatomic Models (KIM) — Model Collections Listing