With ifort on macOS, I sometimes encounter “warning: line table parameters mismatch. Cannot emit.” What does this mean? It sounds like an internal warning rather than a warning on my code, is it?
I do not have a small working example for the moment.
the "line table" is the internal structure we use in debug builds to associate source line information with blocks of code. So it sounds like you have -g or -debug options and for some reason or other the compiler is having trouble mapping code back to source lines. Or source lines + source columns.
What setting do you have for debug? Is it used consistently across source files during the build?
Are you forcing inlining, or controlling inlining?
Do you have INCLUDE statements in the sources?
I'm trying to find any options or directives related to generating debug information. That is what the compiler is complaining about - it's not able to properly create the debug object for your code. It could be for many reasons.
option and see if that helps.
This is what I was using when that warning occurred. It happened only on macOS. Thank you.
ifort -warn errors -auto -no-heap-arrays -stand f03 -standard-semantics -assume norecursion -u -warn all -debug extended -fimplicit-none -traceback -debug-parameters all -fp-stack-check -O1 -ftrapuv -init=snan,array -fpe0 -fpe-all=0 -assume ieee_fpe_flags -fp-trap=divzero,invalid,overflow -c
> What setting do you have for debug? Is it used consistently across source files during the build?
The options are as above. All the options are used on all source files.
> Are you forcing inlining, or controlling inlining?
No, unless it is implied by the abovementioned options.
> Do you have INCLUDE statements in the sources?