Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compilation does not work with numpy 1.25.0 #284

@shollim

Description

@shollim

Compiling kmc models returns an error.
If the latest version of kmcos is installed using the provided install bash scripts from https://github.com/kmcos/kmcos-installers
it fails at compiling the test system MyFirstSnapshots__build.py
It gives the error

Error: Symbol ‘get_seed’ at (1) has no IMPLICIT type; did you mean ‘get_seedf2pywrap’?
...
error: Command "/usr/bin/gfortran -ffree-line-length-none -ffree-form -xf95-cpp-input -Wall -O3 -fimplicit-none -time -fmax-identifier-length=63 -fPIC -O3 -funroll-loops -I/tmp/tmpyjr9my3m/src.linux-x86_64-3.10 -I/usr/local/lib/python3.10/site-packages/numpy/core/include -I/usr/local/include/python3.10 -c -c /tmp/tmpyjr9my3m/src.linux-x86_64-3.10/kmc_model-f2pywrappers2.f90 -o /tmp/tmpyjr9my3m/tmp/tmpyjr9my3m/src.linux-x86_64-3.10/kmc_model-f2pywrappers2.o -J/tmp/tmpyjr9my3m/ -I/tmp/tmpyjr9my3m/" failed with exit status 1

If the numpy version is set back to 1.24.2 it succesfully compiles the model. Seems to be some issue with the f2py compilation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions