-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error with gfortran 11.1 on macOS with homebrew #82
Comments
The errors are in a git submodule, I've opened the issue in the corresponding repo: oseledets/tt-fort#6 |
Should we update the submodule now? |
The submodule is updated, but the fix is in its Makefile.in, which is not used here. One has to figure out how to tell |
the submodule actually even has working github actions test now :-) |
But for the life of me, I don't grok config.add_library('mytt', sources=[join(TTFORT_DIR, x) for x in TTFORT_SRC], extra_f90_compiler_args=['--fallow-argument-mismatch']) doesn't work. |
OK, I got it to build with gfortran 11, with the following changes: diff --git a/tt/core/setup.py b/tt/core/setup.py
index 8f28de6..26a4f3f 100644
--- a/tt/core/setup.py
+++ b/tt/core/setup.py
@@ -40,6 +40,7 @@ def configuration(parent_package='', top_path=None):
config.add_extension(
'core_f90',
sources=ttcore_src,
+ extra_f90_compile_args=['-fallow-argument-mismatch'],
)
return config
diff --git a/tt/eigb/setup.py b/tt/eigb/setup.py
index dd6240b..87d7a77 100644
--- a/tt/eigb/setup.py
+++ b/tt/eigb/setup.py
@@ -39,6 +39,7 @@ def configuration(parent_package='', top_path=None):
'mytt',
'print_lib',
],
+ extra_f90_compile_args=['-fallow-argument-mismatch'],
)
return config
diff --git a/tt/ksl/setup.py b/tt/ksl/setup.py
index 3bc950f..a9d9857 100644
--- a/tt/ksl/setup.py
+++ b/tt/ksl/setup.py
@@ -37,6 +37,8 @@ def configuration(parent_package='', top_path=None):
config.add_library(
'expokit',
sources=expokit_src,
+ extra_f90_compile_args=['-fallow-argument-mismatch'],
+ extra_f77_compile_args=['-fallow-argument-mismatch'],
)
config.add_extension(
'dyn_tt',
@@ -51,6 +53,7 @@ def configuration(parent_package='', top_path=None):
'expokit',
'mytt',
],
+ extra_f90_compile_args=['-fallow-argument-mismatch'],
)
return config
diff --git a/tt/setup.py b/tt/setup.py
index 277f90f..b4fc38a 100644
--- a/tt/setup.py
+++ b/tt/setup.py
@@ -59,9 +59,12 @@ def configuration(parent_package='', top_path=None):
delegate_options_to_subpackages=True,
quiet=False,
)
-
+ buildinfo={}
+ buildinfo['extra_f90_compiler_args']=['--fallow-argument-mismatch']
config.add_library('print_lib', sources=[join(PRINT_DIR, x) for x in PRINT_SRC])
- config.add_library('mytt', sources=[join(TTFORT_DIR, x) for x in TTFORT_SRC])
+ config.add_library('mytt', sources=[join(TTFORT_DIR, x) for x in TTFORT_SRC],
+ extra_f90_compile_args=['-fallow-argument-mismatch'],
+ )
config.add_subpackage('core')
config.add_subpackage('amen') this needs more work to make it conditional on the version of gfortran, as this option is not understood by version 9 or earlier. |
The diff above is here: dimpase@ba9619f |
PR #85 solves the issue. Also, I have created an issue oseledets/tt-fort#12 in the upstream repo in order to remember issue and track progress. |
Allow argument mismatch for GCC Fortran 11 (#82)
Inject tt.distutils to python path (#82)
Thank you, I can confirm that it solves the issue. I'm using pip install with ttpy @ the specific commit in https://trac.sagemath.org/ticket/31998 now; do you have plans to release a new version of |
Hello, |
this sounds familiar... |
Please see #90 |
Merged. |
Installing ttpy (latest on PyPI or current git master) on macOS Big Sur (Intel) with homebrew leads to multiple compilation errors like the following:
The text was updated successfully, but these errors were encountered: