public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32289]  New: mips version of gfortran produces internal compiler error
@ 2007-06-11 16:52 michael dot a dot richmond at nasa dot gov
  2007-06-11 18:16 ` [Bug fortran/32289] " kargl at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-06-11 16:52 UTC (permalink / raw)
  To: gcc-bugs

When I compile the following function using the mips version of gfortran I get
the message:

q.f90: In function 'set_numeric_values':
q.f90:3: internal compiler error: in gfc_conv_variable, at
fortran/trans-expr.c:381
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.

FUNCTION i()
CONTAINS
  SUBROUTINE set_numeric_values
    i = 0
  END SUBROUTINE set_numeric_values
END FUNCTION i


-- 
           Summary: mips version of gfortran produces internal compiler
                    error
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
@ 2007-06-11 18:16 ` kargl at gcc dot gnu dot org
  2007-06-11 18:39 ` michael dot a dot richmond at nasa dot gov
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-06-11 18:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from kargl at gcc dot gnu dot org  2007-06-11 18:16 -------
(In reply to comment #0)
> When I compile the following function using the mips version of gfortran I get
> the message:
> 
> q.f90: In function 'set_numeric_values':
> q.f90:3: internal compiler error: in gfc_conv_variable, at
> fortran/trans-expr.c:381
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> For Debian GNU/Linux specific bug reporting instructions,
> see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
> 
> FUNCTION i()
> CONTAINS
>   SUBROUTINE set_numeric_values
>     i = 0
>   END SUBROUTINE set_numeric_values
> END FUNCTION i
> 

Michael,

Can you upgrade to either gfortran 4.2 or gfortran 4.3 (aka trunk)?
The code compiles for me with both of these compilers.  As a side
note, I use gfortran 4.2 asmy everyday compiler, and I think you'll
be much happier with it.


-- 


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
  2007-06-11 18:16 ` [Bug fortran/32289] " kargl at gcc dot gnu dot org
@ 2007-06-11 18:39 ` michael dot a dot richmond at nasa dot gov
  2007-06-11 19:09 ` kargl at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-06-11 18:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from michael dot a dot richmond at nasa dot gov  2007-06-11 18:39 -------
I run Debian Linux 4.0 on my SGI box. When I type "apt-get source gcc-4.1", it
downloads a version of gcc 4.1.2 that appears to be extensively hacked up. This
version produced the referenced error. Could you tell me briefly where you get
the source code, and what procedure you use to build the executable? Thank you
very much.


-- 


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
  2007-06-11 18:16 ` [Bug fortran/32289] " kargl at gcc dot gnu dot org
  2007-06-11 18:39 ` michael dot a dot richmond at nasa dot gov
@ 2007-06-11 19:09 ` kargl at gcc dot gnu dot org
  2007-06-12 11:22 ` tbm at cyrius dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-06-11 19:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kargl at gcc dot gnu dot org  2007-06-11 19:08 -------
(In reply to comment #2)
> I run Debian Linux 4.0 on my SGI box. When I type "apt-get source gcc-4.1", it
> downloads a version of gcc 4.1.2 that appears to be extensively hacked up. This
> version produced the referenced error. Could you tell me briefly where you get
> the source code, and what procedure you use to build the executable? Thank you
> very much.

Michael, I build gfortran from source, which for the mips architecture 
is probably your only option.  You'll need subversion.  To get the bleeding
edge, do

cd tmp
svn checkout svn://gcc.gnu.org/svn/gcc/trunk
mkdir obj
cd obj
../trunk/configure --prefix=<path_to_install_to> --enable-languages=c,gfortran
make bootstrap
make install

You can also grab the gcc-4.2 tarball from ftp.gnu.org (or a mirror).


-- 


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
                   ` (2 preceding siblings ...)
  2007-06-11 19:09 ` kargl at gcc dot gnu dot org
@ 2007-06-12 11:22 ` tbm at cyrius dot com
  2007-06-12 11:44 ` tbm at cyrius dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: tbm at cyrius dot com @ 2007-06-12 11:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tbm at cyrius dot com  2007-06-12 11:22 -------
This works with 4.3.0 20070604 on mips.


-- 


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
                   ` (3 preceding siblings ...)
  2007-06-12 11:22 ` tbm at cyrius dot com
@ 2007-06-12 11:44 ` tbm at cyrius dot com
  2007-06-12 14:04 ` michael dot a dot richmond at nasa dot gov
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: tbm at cyrius dot com @ 2007-06-12 11:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from tbm at cyrius dot com  2007-06-12 11:43 -------
I can reproduce this with current 4.1 from SVN, but not with 4.2 from SVN.


-- 


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
                   ` (4 preceding siblings ...)
  2007-06-12 11:44 ` tbm at cyrius dot com
@ 2007-06-12 14:04 ` michael dot a dot richmond at nasa dot gov
  2007-06-12 14:13 ` tbm at cyrius dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-06-12 14:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from michael dot a dot richmond at nasa dot gov  2007-06-12 14:04 -------
When you build gcc and gfortran on your mips box, do you specify your system
type as "mips-unknown-linux-gnu" or as "mips64-unknown-linux-gnu"?


-- 


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
                   ` (5 preceding siblings ...)
  2007-06-12 14:04 ` michael dot a dot richmond at nasa dot gov
@ 2007-06-12 14:13 ` tbm at cyrius dot com
  2007-06-12 14:33 ` michael dot a dot richmond at nasa dot gov
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: tbm at cyrius dot com @ 2007-06-12 14:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from tbm at cyrius dot com  2007-06-12 14:12 -------
mips-linux-gnu, as the Debian package does.  Why?


-- 


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
                   ` (6 preceding siblings ...)
  2007-06-12 14:13 ` tbm at cyrius dot com
@ 2007-06-12 14:33 ` michael dot a dot richmond at nasa dot gov
  2007-06-12 16:31 ` tbm at cyrius dot com
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-06-12 14:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from michael dot a dot richmond at nasa dot gov  2007-06-12 14:33 -------
(In reply to comment #7)
> mips-linux-gnu, as the Debian package does.  Why?

When I run the configure script on an SGI Indy under Debian 4.0, it sets the
system type to mips64-unknown-linux-gnu, and sets the ABI to N32.

When I run the configure script under Debian 3.1, it sets the system type to
mips-unknown-linux-gnu, and sets the ABI to 32.

Which ABI do you use?


-- 


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
                   ` (7 preceding siblings ...)
  2007-06-12 14:33 ` michael dot a dot richmond at nasa dot gov
@ 2007-06-12 16:31 ` tbm at cyrius dot com
  2007-06-13 20:49 ` fxcoudert at gcc dot gnu dot org
  2007-06-14 12:00 ` tbm at cyrius dot com
  10 siblings, 0 replies; 12+ messages in thread
From: tbm at cyrius dot com @ 2007-06-12 16:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from tbm at cyrius dot com  2007-06-12 16:31 -------
O32, just like Debian.  Note that 4.0 also uses O32, although the kernel is
64-bit, so that might explain why it's configuring mips64 for you.

I don't see the point of these questions though.  After all, I confirmed your
bug with gcc 4.1, and also that it's fixed in 4.2 and 4.3.  So the remaining
question is whether this will be fixed in 4.1 (which I doubt).


-- 


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
                   ` (8 preceding siblings ...)
  2007-06-12 16:31 ` tbm at cyrius dot com
@ 2007-06-13 20:49 ` fxcoudert at gcc dot gnu dot org
  2007-06-14 12:00 ` tbm at cyrius dot com
  10 siblings, 0 replies; 12+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-06-13 20:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from fxcoudert at gcc dot gnu dot org  2007-06-13 20:49 -------
(In reply to comment #9)
> I don't see the point of these questions though.  After all, I confirmed your
> bug with gcc 4.1, and also that it's fixed in 4.2 and 4.3.  So the remaining
> question is whether this will be fixed in 4.1 (which I doubt).

No, this will not be fixed. Thanks for the bugreport anyway, Michael, and I
hope you can get your GCC-4.3 build working. (If you need technical help doing
so, you can ask on the gcc-help@gcc.gnu.org mailing-list.)


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
  GCC build triplet|                            |mips-linux
   GCC host triplet|                            |mips-linux
 GCC target triplet|                            |mips-linux
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.1.2
      Known to work|                            |4.2.1 4.3.0
         Resolution|                            |WONTFIX


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


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

* [Bug fortran/32289] mips version of gfortran produces internal compiler error
  2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
                   ` (9 preceding siblings ...)
  2007-06-13 20:49 ` fxcoudert at gcc dot gnu dot org
@ 2007-06-14 12:00 ` tbm at cyrius dot com
  10 siblings, 0 replies; 12+ messages in thread
From: tbm at cyrius dot com @ 2007-06-14 12:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from tbm at cyrius dot com  2007-06-14 12:00 -------
Note that gcc-4.2 exists on MIPS in Debian testing and 4.3 in the form
of the gcc-snapshot package in Debian unstable.


-- 


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


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

end of thread, other threads:[~2007-06-14 12:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-11 16:52 [Bug fortran/32289] New: mips version of gfortran produces internal compiler error michael dot a dot richmond at nasa dot gov
2007-06-11 18:16 ` [Bug fortran/32289] " kargl at gcc dot gnu dot org
2007-06-11 18:39 ` michael dot a dot richmond at nasa dot gov
2007-06-11 19:09 ` kargl at gcc dot gnu dot org
2007-06-12 11:22 ` tbm at cyrius dot com
2007-06-12 11:44 ` tbm at cyrius dot com
2007-06-12 14:04 ` michael dot a dot richmond at nasa dot gov
2007-06-12 14:13 ` tbm at cyrius dot com
2007-06-12 14:33 ` michael dot a dot richmond at nasa dot gov
2007-06-12 16:31 ` tbm at cyrius dot com
2007-06-13 20:49 ` fxcoudert at gcc dot gnu dot org
2007-06-14 12:00 ` tbm at cyrius dot com

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).