Open mennodeij opened 1 year ago
Apologies - things got a but busy with my day job and I'm only now circling back to some of the recent tickets. (I guess thta's what holiday weekends are for! :-)
I'm happy to adjust the flags along the lines you suggest, but will first attempt to read the man pages in the hope of getting a clue why "nointerfaces" is needed.
OK - on my OSX system, your reproducer actually fails on the first make
. I'm thinking this is an Intel compiler bug.
First, because it gives different behavior on subsequent passes on your system, but also because nointerfaces
is the default setting.
I will attempt to submit a reproducer to Intel.
Thanks for looking into this and I agree that it is probably a compiler bug. If I can help getting this to the attention of Intel, please let me know.
If I build the attached small test project with Intel Fortran and use the following cmake commandline:
then issue the following make/rebuild commands:
the second make will fail. I have tracked this to the use of
-warn all
, and-warn all,nointerfaces
solves the problem.I don't know why
-warn all
gives problems, while-warn all,nointerfaces
does not. Possibly related to the generation of*_genmod.mod
filessmalltest.zip