Skip to content

fix the build with python3.12#13

Open
Thomas-Ulrich wants to merge 3 commits intocoutanto:masterfrom
Thomas-Ulrich:thomas/build_meson
Open

fix the build with python3.12#13
Thomas-Ulrich wants to merge 3 commits intocoutanto:masterfrom
Thomas-Ulrich:thomas/build_meson

Conversation

@Thomas-Ulrich
Copy link
Contributor

@Thomas-Ulrich Thomas-Ulrich commented Sep 25, 2025

I was not able to build the python wrapper with

git clone https://github.com/coutanto/axitra
cd axitra/MOMENT_DISP_F90_OPENMP/src
make all python

with a recent version of python (3.12). I eneded finding a solution in the file changes of the PR.

I changed the Makefile to get rid of this error:

Warning: Illegal preprocessor directive
../convmPy.f90:30:8:

   30 |    use fsourcem
      |        1
Fatal Error: Cannot open module file ‘fsourcem.mod’ for reading at (1): No such file or directory
compilation terminated.

and

../convmPy-f2pywrappers2.f90:9:16: 9 | real(kind=fd) t0 | 1 Error: Parameter ‘fd’ at (1) has not been declared or is a variable, which does not reduce to a constant expression ../convmPy-f2pywrappers2.f90:10:19:

then removing from f90 to F90 get me rid of these errors:

   16 | #define NSTYPE 6

     |  1

Warning: Illegal preprocessor directive

../convmPy.f90:33:2:



  33 | #if defined(_OPENMP)

     |  1

Warning: Illegal preprocessor directive

../convmPy.f90:35:2:

Finally the changes in parameters.f90 allow getting rid of:

  34 |       real(kind=real64) x1

     |                1

Error: Parameter ‘real64’ at (1) has not been declared or is a variable, which does not reduce to a constant expression

../convmPy-f2pywrappers2.f90:35:16:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant