[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #26 from kottinge at utk dot edu ---
Created attachment 37166
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37166=edit
lib

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #35 from kottinge at utk dot edu ---
read_input_mod is built from the source file read_input_mod.f90.  It's the one
with the bug

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #27 from kottinge at utk dot edu ---
Created attachment 37167
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37167=edit
driver

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

kottinge at utk dot edu changed:

   What|Removed |Added

  Attachment #37141|0   |1
is obsolete||

--- Comment #28 from kottinge at utk dot edu ---
Created attachment 37168
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37168=edit
source file that has missing variable from only list

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #15 from kottinge at utk dot edu ---
Created attachment 37155
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37155=edit
m12

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #14 from kottinge at utk dot edu ---
Created attachment 37154
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37154=edit
m11

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #13 from kottinge at utk dot edu ---
Created attachment 37153
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37153=edit
m10

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #12 from kottinge at utk dot edu ---
Created attachment 37152
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37152=edit
m9

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #4 from kottinge at utk dot edu ---
Created attachment 37144
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37144=edit
m1

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #3 from kottinge at utk dot edu ---
Created attachment 37143
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37143=edit
mod

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #25 from kottinge at utk dot edu ---
Created attachment 37165
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37165=edit
m22

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #38 from Dominique d'Humieres  ---
> Yeah that's what the bug is.  The only problem with the file or at least
> what prevents it from compiling is the missing variable declaration
> on line 2648, but instead of saying there is a missing variable it provides
> some other error.

An ICE may be an unhelpful error message, but it must be reported as such: it
is a bug in the compiler code. Could you provide the source defining
calc_param_mod and those it depends on?

What is the missing variable declaration?

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #20 from kottinge at utk dot edu ---
Created attachment 37160
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37160=edit
m17

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #19 from kottinge at utk dot edu ---
Created attachment 37159
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37159=edit
m16

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #18 from kottinge at utk dot edu ---
Created attachment 37158
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37158=edit
m15

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #16 from kottinge at utk dot edu ---
Created attachment 37156
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37156=edit
m13

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #17 from kottinge at utk dot edu ---
Created attachment 37157
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37157=edit
m14

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #29 from kottinge at utk dot edu ---
Created attachment 37169
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37169=edit
source file with missing variable from only list

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #31 from Dominique d'Humieres  ---
Sorry but what you provide is useless for the time I want to spend on this PR
(you should use 'tar' for many files, so far son_struct_mod.mod is missing).
Please provide a reduced test.

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #36 from Dominique d'Humieres  ---
> read_input_mod is built from the source file read_input_mod.f90. 
> It's the one with the bug

I get an ICE when compiling this file

 SUBROUTINE READ_INPUT(s,input,inp_lines)
 1
internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:1084

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #39 from kottinge at utk dot edu ---
Created attachment 37171
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37171=edit
calc_param_mod

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #30 from kottinge at utk dot edu ---
Okay, I uploaded files for a working eaxmple.  

Trying to compile with:

gfortran -I/usr/lib/openmpi/include -pthread -I/usr/lib/openmpi/lib -L/usr//lib
-L/usr/lib/openmpi/lib -lmpi_f90 -lmpi_f77 -lmpi -ldl -lhwloc -o driver.exe
-ggdb -ffree-line-length-none -fcheck=all -fbacktrace -cpp  read_input_mod.f90
driver.f90   libread.a

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #32 from kottinge at utk dot edu ---
Created attachment 37170
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37170=edit
m26

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #5 from kottinge at utk dot edu ---
Created attachment 37145
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37145=edit
m2

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #6 from kottinge at utk dot edu ---
Created attachment 37146
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37146=edit
m3

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #7 from kottinge at utk dot edu ---
Created attachment 37147
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37147=edit
m4

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #8 from kottinge at utk dot edu ---
Created attachment 37148
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37148=edit
m5

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #22 from kottinge at utk dot edu ---
Created attachment 37162
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37162=edit
m19

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #24 from kottinge at utk dot edu ---
Created attachment 37164
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37164=edit
m21

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #23 from kottinge at utk dot edu ---
Created attachment 37163
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37163=edit
m20

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #21 from kottinge at utk dot edu ---
Created attachment 37161
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37161=edit
m18

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #33 from kottinge at utk dot edu ---
I uploaded soln_struct_mod.mod

I don't want to spend a lot of time on this either, and it's a complicated
project and figuring out the minimal code to reproduce the error is likely to
take a long time, because of all the dependencies.   

It specifically says not to use archives when uploading files...

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #37 from kottinge at utk dot edu ---
Yeah that's what the bug is.  The only problem with the file or at least what
prevents it from compiling is the missing variable declaration on line 2648,
but instead of saying there is a missing variable it provides some other error.

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #9 from kottinge at utk dot edu ---
Created attachment 37149
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37149=edit
m6

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #10 from kottinge at utk dot edu ---
Created attachment 37150
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37150=edit
m7

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #11 from kottinge at utk dot edu ---
Created attachment 37151
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37151=edit
m8

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #34 from Dominique d'Humieres  ---
No read_input_mod.mod. Please work on a reduced test showing the issue. If you
cannot do it at least provide a compressed tar of you project. So far we are
both wasting our time!-(

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #40 from kottinge at utk dot edu ---
I attached calc_param_mod.f90 (it's just a bunch of variable declarations). 
The missing variable declartion is commented out on line 2648 it's
max_line_len2

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-27 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2015-12-27
 Ever confirmed|0   |1

--- Comment #2 from Dominique d'Humieres  ---
With the attached "preprocessed" test I get

 CONTAINS
1

Fatal Error: Can't open module file 'read_nestle_in_mod.mod' for reading at
(1): No such file or directory

If I remove the useless lines

# 1 "src/read_input_mod.f90"
# 1 ""
# 1 ""
# 1 "src/read_input_mod.f90"

I get

 USE READ_NESTLE_IN_MOD
1

Fatal Error: Can't open module file 'read_nestle_in_mod.mod' for reading at
(1): No such file or directory

which is expected since you did not provide the file containing the module
READ_NESTLE_IN_MOD. Could you please provide a test not failing for trivial
reasons such as missing modules?

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list

2015-12-26 Thread kottinge at utk dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #1 from kottinge at utk dot edu ---
Instead of gcc in the compile command it should be gfortran.