You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CI build configuration problems should now be fixed in #241, however it appears they were masking a problem with the type_check example which does not build in CI on either Linux or macOS. I dug into this a bit and reproduced manually (testing on MacOS with gfortran 14.2). Error is:
FAILED: _pywrapper.cpython-312-darwin.so.p/f90wrap_main.f90.o
gfortran -I_pywrapper.cpython-312-darwin.so.p -I. -I.. -I/Users/u1470235/gits/f90wrap/.venv/lib/python3.12/site-packages/numpy/_core/include -I/Users/u1470235/gits/f90wrap/.venv/lib/python3.12/site-packages/numpy/f2py/src -I/install/include/python3.12 -I/Users/u1470235/.local/share/uv/python/cpython-3.12.5-macos-aarch64-none/include/python3.12 -fvisibility=hidden -fdiagnostics-color=always -Wall -O3 -Wno-conversion -xf95-cpp-input -fPIC -J_pywrapper.cpython-312-darwin.so.p -o _pywrapper.cpython-312-darwin.so.p/f90wrap_main.f90.o -c ../f90wrap_main.f90
f951: Warning: Nonexistent include directory '/install/include/python3.12' [-Wmissing-include-dirs]
../f90wrap_main.f90:284:17:
284 | ret_output = in_scalar(input=input)
| 1
Error: There is no specific function for the generic 'in_scalar' at (1)
../f90wrap_main.f90:313:17:
313 | ret_output = in_scalar(input=input)
| 1
Error: There is no specific function for the generic 'in_scalar' at (1)
There seem to be mismatched int and real kinds in the generated wrappers. Editing the generated f90wrap_main.f90 manually as follows produced something that compiled:
Looks like the kind.map was not included in the Makefile.meson of examples/type_check. There was a second issue in examples/return_array where I replaced the tests.py by test.py. Let's see now if it builds on #243 .
The CI build configuration problems should now be fixed in #241, however it appears they were masking a problem with the
type_check
example which does not build in CI on either Linux or macOS. I dug into this a bit and reproduced manually (testing on MacOS with gfortran 14.2). Error is:There seem to be mismatched int and real kinds in the generated wrappers. Editing the generated
f90wrap_main.f90
manually as follows produced something that compiled:@danbeibei please can you take a look?
The text was updated successfully, but these errors were encountered: