public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50231] New: Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
@ 2011-08-29 21:14 pavel.belomestnov at regeneron dot com
  2011-08-29 21:27 ` [Bug fortran/50231] " janus at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pavel.belomestnov at regeneron dot com @ 2011-08-29 21:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50231

             Bug #: 50231
           Summary: Fatal Error: Wrong module version '5' (expected '4')
                    for file 'sizes.mod'
    Classification: Unclassified
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pavel.belomestnov@regeneron.com


Hello Nonmem Users,

Fortran460 have been genetating the following message:


fsubs.f90:2.29:
      USE SIZES, ONLY: DPSIZE
                             1
Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
opened at (1)
gfortran: Internal error: Aborted (program f951)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
Finished compiling fsubs
gfortran: fsubs.o: No such file or directory
Completed call to gfcompile.bat
No nonmem execution.



Do you have any insights?    

Thank you,
Pavel


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/50231] Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
  2011-08-29 21:14 [Bug fortran/50231] New: Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod' pavel.belomestnov at regeneron dot com
@ 2011-08-29 21:27 ` janus at gcc dot gnu.org
  2011-08-29 21:29 ` mikael at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu.org @ 2011-08-29 21:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50231

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |janus at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #1 from janus at gcc dot gnu.org 2011-08-29 20:37:08 UTC ---
(In reply to comment #0)
> fsubs.f90:2.29:
>       USE SIZES, ONLY: DPSIZE
>                              1
> Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
> 
> [....]
> 
> Do you have any insights?    

This error message indicates that your module "SIZES" has been compiled with a
different compiler version than the one you're using to compile fsubs.f90.

Please use the same compiler version for both!

This is not a compiler bug but a user error. I'm closing this PR as invalid.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/50231] Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
  2011-08-29 21:14 [Bug fortran/50231] New: Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod' pavel.belomestnov at regeneron dot com
  2011-08-29 21:27 ` [Bug fortran/50231] " janus at gcc dot gnu.org
@ 2011-08-29 21:29 ` mikael at gcc dot gnu.org
  2011-08-29 21:55 ` burnus at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mikael at gcc dot gnu.org @ 2011-08-29 21:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50231

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikael at gcc dot gnu.org

--- Comment #2 from Mikael Morin <mikael at gcc dot gnu.org> 2011-08-29 21:14:07 UTC ---

(In reply to comment #1)
> (In reply to comment #0)
> > fsubs.f90:2.29:
> >       USE SIZES, ONLY: DPSIZE
> >                              1
> > Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
> > 
> > [....]
> > 
> > Do you have any insights?    
> 
> This error message indicates that your module "SIZES" has been compiled with a
> different compiler version than the one you're using to compile fsubs.f90.
> 
> Please use the same compiler version for both!
> 
> This is not a compiler bug but a user error. I'm closing this PR as invalid.

I agree that the error you quoted is a user error.
This, however, should not happen:

gfortran: Internal error: Aborted (program f951)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
Finished compiling fsubs
gfortran: fsubs.o: No such file or directory
Completed call to gfcompile.bat
No nonmem execution.






foo.f90:
      !!! foo.f90 !!!
      module bar
      end module bar
      !!!!!!!!!!!!!!!

toto.f90:
      !!! toto.f90 !!!
      program toto
      use bar
      end program toto
      !!!!!!!!!!!!!!!!


$ gfortran45 foo.f90 -c -o foo.o 
# hand-edit bar.mod and change module version
$ gfortran45 toto.f90
toto.f90:3.13:

      use bar
             1
Fatal Error: Wrong module version '3' (expected '4') for file 'bar.mod' opened
at (1)
$

In other words: no ICE. Just the plain error message.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/50231] Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
  2011-08-29 21:14 [Bug fortran/50231] New: Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod' pavel.belomestnov at regeneron dot com
  2011-08-29 21:27 ` [Bug fortran/50231] " janus at gcc dot gnu.org
  2011-08-29 21:29 ` mikael at gcc dot gnu.org
@ 2011-08-29 21:55 ` burnus at gcc dot gnu.org
  2011-08-29 21:58 ` janus at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-08-29 21:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50231

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-08-29 21:26:37 UTC ---
(In reply to comment #2)
> I agree that the error you quoted is a user error.
> This, however, should not happen:
> 
> gfortran: Internal error: Aborted (program f951)

I guess that the bug reporter uses Windows and runs into PR 47394 (fixed
January 2011 on the 4.5 branch and - back then - on the 4.6 trunk).

Pavel, is this correct? Namely, that you have a gfortran which is older than 21
January 2011 - and that you use Windows? If not, we would be interested in more
details - in particular the output of "gfortran -v" - to trace why there is an
internal error.

The actual message "Wrong module version '5' (expected '4')" is unfortunately
to be expected. Despite trying hard, we have been so far unable to keep the
.mod file format compatible between different GCC minor versions. (At least the
format is stable within releases/release branches.)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/50231] Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
  2011-08-29 21:14 [Bug fortran/50231] New: Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod' pavel.belomestnov at regeneron dot com
                   ` (2 preceding siblings ...)
  2011-08-29 21:55 ` burnus at gcc dot gnu.org
@ 2011-08-29 21:58 ` janus at gcc dot gnu.org
  2011-08-30 13:11 ` burnus at gcc dot gnu.org
  2011-11-07 22:41 ` fxcoudert at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu.org @ 2011-08-29 21:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50231

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2011-08-29
         Resolution|INVALID                     |
     Ever Confirmed|0                           |1

--- Comment #4 from janus at gcc dot gnu.org 2011-08-29 21:29:13 UTC ---
(In reply to comment #2)
> I agree that the error you quoted is a user error.
> This, however, should not happen:
> 
> gfortran: Internal error: Aborted (program f951)

Ah, ok. I completely missed that part, sorry.

So I will reopen this PR. However, I think what is missing is a small
self-contained test case.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/50231] Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
  2011-08-29 21:14 [Bug fortran/50231] New: Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod' pavel.belomestnov at regeneron dot com
                   ` (3 preceding siblings ...)
  2011-08-29 21:58 ` janus at gcc dot gnu.org
@ 2011-08-30 13:11 ` burnus at gcc dot gnu.org
  2011-11-07 22:41 ` fxcoudert at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-08-30 13:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50231

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-08-30 12:24:26 UTC ---
Mark as WAITING.

For the questions, see second part of comment 3.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/50231] Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod'
  2011-08-29 21:14 [Bug fortran/50231] New: Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod' pavel.belomestnov at regeneron dot com
                   ` (4 preceding siblings ...)
  2011-08-30 13:11 ` burnus at gcc dot gnu.org
@ 2011-11-07 22:41 ` fxcoudert at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2011-11-07 22:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50231

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |fxcoudert at gcc dot
                   |                            |gnu.org
         Resolution|                            |DUPLICATE

--- Comment #6 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> 2011-11-07 22:41:08 UTC ---


*** This bug has been marked as a duplicate of bug 47394 ***


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-11-07 22:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-29 21:14 [Bug fortran/50231] New: Fatal Error: Wrong module version '5' (expected '4') for file 'sizes.mod' pavel.belomestnov at regeneron dot com
2011-08-29 21:27 ` [Bug fortran/50231] " janus at gcc dot gnu.org
2011-08-29 21:29 ` mikael at gcc dot gnu.org
2011-08-29 21:55 ` burnus at gcc dot gnu.org
2011-08-29 21:58 ` janus at gcc dot gnu.org
2011-08-30 13:11 ` burnus at gcc dot gnu.org
2011-11-07 22:41 ` fxcoudert at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).