-
Notifications
You must be signed in to change notification settings - Fork 51
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
io_nemo fails with gfortran-10 (on mac) #47
Comments
A more detailed look seems to show that gfortran-10 on linux works fine, but it's the one on the Mac that is broken. And to be clear, this is homebrew version 10.2.0 |
Indeed I am VERY happy ! |
Not sure if you saw my first, or edited message, as i had to admit the
problem is on mac only
|
The compiler error on gcc-11 is: |
Hi, |
on almalinux (redhat8 like) and gcc 11 activated, IO_NEMO test-suite pass (with -fallow-argument-mismatch enable) |
I've added this flag to the Makefile in io_nemo. I don't have runtime error on ubuntu20, but I'm looking into U21.10 where there is still a runtime error. |
My error was that from a previous test a 0 length plummer was there, then the rest fails. I would like to argue the testsuite scripts should write their files in a clean directory, so no side-effects like this could occur. By default the testsuite tree is removed. |
I have a proposed solution (not committed yet), where RT= is set via commandline arg to the scripts. We could also make this the default. The other problem with /tmp/ is that the name would be shared by another user and thus the test would fail |
committed |
not sure if it's really fully solved, I still see a lot of "FAIL" on io-nemo, but intermittendly. |
The bug still persists. It affects only fortran code using io_nemo on ARM mac computer.
We can see that variable myval is corrupted. It should contain "hello world" |
can you try it with the -fallow-argument-mismatch compile flag. Perhaps also -std=legacy |
nope, same issue. |
And my test program works from an intel mac and gcc-11 |
@cnjmike did you not also have a peek at this problem? |
Well, I filled a bug report on gcc, here it is, with a lot of discussion : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118831 To summarize, there is no solution for aarch64 (arm) architecture, except not to use variadic C language function. |
frustrating to see it labeled "RESOLVED INVALID" now |
Yes it's really incomprehensible, I am really desperate and frustrated... |
as with many a bug I've eventually resolved, best is to walk away for a while, work on other things. Often a solution then drops out of thin air. |
gfortran-10 is a more strict compiler, it does not like the varargs style it internally finds that is being used. This might be something for @jcldc possibly an extra flag to the compiler
The text was updated successfully, but these errors were encountered: