public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32926]  New: Internal compiler error in the middle of a sizeable package build
@ 2007-07-28 11:33 rbk at louisiana dot edu
  2007-07-28 11:57 ` [Bug fortran/32926] " burnus at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: rbk at louisiana dot edu @ 2007-07-28 11:33 UTC (permalink / raw)
  To: gcc-bugs

This bug occurred during a build of a version of "GlobSol" that builds
correctly with the g95 compiler.  It happens with the "unofficial" build
of gfortran for native Windows that I downloaded from
http://gcc.gnu.org/wiki/GFortranBinaries#Windows from the link: 
mingw build, or "native Windows": download the latest installer (dated
2007-07-06). 

The compiler output is:

gfortran bug report:

gfortran -c -Ic:\GlobSol_gfort c:\GlobSol_gfort\iterate\dogleg_opt.f90
c:\GlobSol_gfort\iterate\dogleg_opt.f90: In function 'search_dogleg':
c:\GlobSol_gfort\iterate\dogleg_opt.f90:144: internal compiler error: in
gfc_get_symbol_decl, at fortran/trans-decl.c:876
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [c:\GlobSol_gfort\dogleg_opt.o] Error 1


I am not sure what else you need.  I could send the entire package source,
along
with the makefile, but the bug reporting instructions seemed to say
that it is not desired.  However, the source file that won't compile
uses two modules that are part of a hierarchy that must be compiled first.
I'm at a bit of a loss at present to isolate the problem further.  Please
communicate with me as appropriate.

Baker


-- 
           Summary: Internal compiler error in the middle of a sizeable
                    package build
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rbk at louisiana dot edu


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


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

* [Bug fortran/32926] Internal compiler error in the middle of a sizeable package build
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
@ 2007-07-28 11:57 ` burnus at gcc dot gnu dot org
  2007-07-28 12:33 ` fxcoudert at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-28 11:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2007-07-28 11:57 -------
Possibly a duplicate of PR 31213.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |4.3.0


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


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

* [Bug fortran/32926] Internal compiler error in the middle of a sizeable package build
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
  2007-07-28 11:57 ` [Bug fortran/32926] " burnus at gcc dot gnu dot org
@ 2007-07-28 12:33 ` fxcoudert at gcc dot gnu dot org
  2007-07-28 15:38 ` jvdelisle at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-07-28 12:33 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2007-07-28 12:33 -------
Hi Ralph,

Thanks for the bug report. Can you please email the sources to me privately
(fxcoudert@gmail.com). I will work out whether this is a duplicate of PR31213,
or a different bug (and will make a short testcase out of it).

Thanks,
François-Xavier


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/32926] Internal compiler error in the middle of a sizeable package build
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
  2007-07-28 11:57 ` [Bug fortran/32926] " burnus at gcc dot gnu dot org
  2007-07-28 12:33 ` fxcoudert at gcc dot gnu dot org
@ 2007-07-28 15:38 ` jvdelisle at gcc dot gnu dot org
  2007-07-28 17:57 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-07-28 15:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2007-07-28 15:37 -------
I will mention that pr31213 has multiple problems.  We have a partial fix that
appears to take care of one of these.  So if you get a reduced case here, we
can try it.


-- 


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


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

* [Bug fortran/32926] Internal compiler error in the middle of a sizeable package build
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
                   ` (2 preceding siblings ...)
  2007-07-28 15:38 ` jvdelisle at gcc dot gnu dot org
@ 2007-07-28 17:57 ` pinskia at gcc dot gnu dot org
  2007-08-06  9:18 ` fxcoudert at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-28 17:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.0                       |---


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


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

* [Bug fortran/32926] Internal compiler error in the middle of a sizeable package build
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
                   ` (3 preceding siblings ...)
  2007-07-28 17:57 ` pinskia at gcc dot gnu dot org
@ 2007-08-06  9:18 ` fxcoudert at gcc dot gnu dot org
  2007-08-06  9:49 ` fxcoudert at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-06  9:18 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |fxcoudert at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-08-06 09:18:26
               date|                            |


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


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

* [Bug fortran/32926] Internal compiler error in the middle of a sizeable package build
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
                   ` (4 preceding siblings ...)
  2007-08-06  9:18 ` fxcoudert at gcc dot gnu dot org
@ 2007-08-06  9:49 ` fxcoudert at gcc dot gnu dot org
  2007-08-13 17:15 ` [Bug fortran/32926] ICE with external function as argument pault at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-06  9:49 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]



------- Comment #4 from fxcoudert at gcc dot gnu dot org  2007-08-06 09:49 -------
OK, I downloaded GlobSol and have a reduced testcase:

$ cat pr32926.f90
subroutine foo (fcn)
  external fcn
contains
  subroutine bar
    call fcn
  end subroutine bar
end subroutine foo
$ gfortran pr32926.f90
pr32926.f90: In function ‘bar’:
pr32926.f90:4: internal compiler error: in gfc_get_symbol_decl, at
fortran/trans-decl.c:890

The backtrace is:

Breakpoint 1, fancy_abort (
    file=0xb03900 "../../../trunk2/gcc/fortran/trans-decl.c", line=890,
    function=0xb03f60 "gfc_get_symbol_decl")
    at ../../../trunk2/gcc/diagnostic.c:654
654     {
(gdb) where
#0  fancy_abort (file=0xb03900 "../../../trunk2/gcc/fortran/trans-decl.c",
    line=890, function=0xb03f60 "gfc_get_symbol_decl")
    at ../../../trunk2/gcc/diagnostic.c:654
#1  0x000000000048c5a3 in gfc_get_symbol_decl (sym=0xe8e1d0)
    at ../../../trunk2/gcc/fortran/trans-decl.c:888
#2  0x000000000048ec58 in gfc_conv_function_val (se=0x7fff83f5a240, sym=0x37a)
    at ../../../trunk2/gcc/fortran/trans-expr.c:1252
#3  0x00000000004909b6 in gfc_conv_function_call (se=0x7fff83f5a240,
    sym=0xe8e1d0, arg=0x0, append_args=0x0)
    at ../../../trunk2/gcc/fortran/trans-expr.c:2459
#4  0x00000000004ab86f in gfc_trans_call (code=0xe8ee30,
    dependency_check=0 '\0') at ../../../trunk2/gcc/fortran/trans-stmt.c:331


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|fxcoudert at gcc dot gnu dot|unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug fortran/32926] ICE with external function as argument
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
                   ` (5 preceding siblings ...)
  2007-08-06  9:49 ` fxcoudert at gcc dot gnu dot org
@ 2007-08-13 17:15 ` pault at gcc dot gnu dot org
  2007-08-13 21:02 ` pault at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-08-13 17:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pault at gcc dot gnu dot org  2007-08-13 17:15 -------
I am just about to submit the fix.

Thanks for the report.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-08-06 09:18:26         |2007-08-13 17:15:07
               date|                            |


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


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

* [Bug fortran/32926] ICE with external function as argument
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
                   ` (6 preceding siblings ...)
  2007-08-13 17:15 ` [Bug fortran/32926] ICE with external function as argument pault at gcc dot gnu dot org
@ 2007-08-13 21:02 ` pault at gcc dot gnu dot org
  2007-08-13 21:04 ` pault at gcc dot gnu dot org
  2007-08-13 23:01 ` patchapp at dberlin dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-08-13 21:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pault at gcc dot gnu dot org  2007-08-13 21:02 -------
Subject: Bug 32926

Author: pault
Date: Mon Aug 13 21:02:00 2007
New Revision: 127398

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127398
Log:
2007-08-13  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/32926
        * match.c (gfc_match_call): Do not create a new symtree in the
        case where the existing symbol is external and not referenced.

2007-08-13  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/32926
        * gfortran.dg/external_procedures_3.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/external_procedures_3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/match.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/32926] ICE with external function as argument
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
                   ` (7 preceding siblings ...)
  2007-08-13 21:02 ` pault at gcc dot gnu dot org
@ 2007-08-13 21:04 ` pault at gcc dot gnu dot org
  2007-08-13 23:01 ` patchapp at dberlin dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-08-13 21:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pault at gcc dot gnu dot org  2007-08-13 21:03 -------
Fixed on trunk

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug fortran/32926] ICE with external function as argument
  2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
                   ` (8 preceding siblings ...)
  2007-08-13 21:04 ` pault at gcc dot gnu dot org
@ 2007-08-13 23:01 ` patchapp at dberlin dot org
  9 siblings, 0 replies; 11+ messages in thread
From: patchapp at dberlin dot org @ 2007-08-13 23:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from patchapp at dberlin dot org  2007-08-13 23:00 -------
Subject: Bug number PR32926

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00823.html


-- 


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


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

end of thread, other threads:[~2007-08-13 23:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-28 11:33 [Bug fortran/32926] New: Internal compiler error in the middle of a sizeable package build rbk at louisiana dot edu
2007-07-28 11:57 ` [Bug fortran/32926] " burnus at gcc dot gnu dot org
2007-07-28 12:33 ` fxcoudert at gcc dot gnu dot org
2007-07-28 15:38 ` jvdelisle at gcc dot gnu dot org
2007-07-28 17:57 ` pinskia at gcc dot gnu dot org
2007-08-06  9:18 ` fxcoudert at gcc dot gnu dot org
2007-08-06  9:49 ` fxcoudert at gcc dot gnu dot org
2007-08-13 17:15 ` [Bug fortran/32926] ICE with external function as argument pault at gcc dot gnu dot org
2007-08-13 21:02 ` pault at gcc dot gnu dot org
2007-08-13 21:04 ` pault at gcc dot gnu dot org
2007-08-13 23:01 ` patchapp at dberlin dot 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).