public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* fortran internal error: backend decl for variable ... exists:
@ 2005-05-02 18:06 Steffen Seeger
  2005-05-02 18:59 ` Andrew Pinski
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Seeger @ 2005-05-02 18:06 UTC (permalink / raw)
  To: gcc-bugs

Hello everybody,

I have successfully built gcc-4.0.0 out of the release 
tar-file (complete distribution) on an athlon system
targeting i386-scientific-linux.

The C and C++ parts work like a charm so far, compiling
substantial amounts of C/C++ code without noticeable glitches.
Congratulations and thank you for doing that good job!

There seems, however, to be an issue with the Fortran 90
part: Compiling the Fortran interface of the HDF5 libraries
(a hierarchical data format library for storing and managing
scientific data) triggers an internal compiler error.
Isolating the cause I find the following source code
to trigger the error:
--- test.f90 ------------------------------------------------------
        MODULE H5GLOBAL

        INTEGER, PARAMETER :: H5F_FLAGS_LEN = 16
        INTEGER H5F_flags(H5F_FLAGS_LEN)

        COMMON /H5F_FLAGS/ H5F_flags

        INTEGER :: H5F_CLOSE_WEAK_F

        EQUIVALENCE(H5F_flags(1), H5F_CLOSE_WEAK_F)

        END MODULE H5GLOBAL
-------------------------------------------------------------------
[sse@white-star2 ~]$ gfortran -v -c test.f90
Using built-in specs.
Target: i386-scientific-linux
Configured with: ../gcc-4.0.0/configure --target=i386-scientific-linux
--host=i386-scientific-linux --prefix=/usr --bindir=/usr/bin --
libdir=/usr/lib --libexecdir=/usr/lib --infodir=/usr/share/info --
datadir=/usr/share --mandir=/usr/share/man --enable-static --enable-
shared --enable-threads=posix --enable-multilib --enable-build-warnings
--enable-install-libiberty --enable-c-mbchar --enable-__cxa_atexit --
disable-checking --disable-coverage --with-gnu-ld --with-gnu-as --with-
ld=/usr/bin/ld --with-as=/usr/bin/as --with-elf --with-system-zlib --
enable-languages=c,c++,f95,java,objc
Thread model: posix
gcc version 4.0.0
 /usr/lib/gcc/i386-scientific-linux/4.0.0/f951 test.f90 -quiet -dumpbase
test.f90 -auxbase test -version -o /tmp/ccoCpasL.s
GNU F95 version 4.0.0 (i386-scientific-linux)
        compiled by GNU C version 4.0.0.
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-
heapsize=129482
test.f90:0: internal compiler error: backend decl for module variable
h5f_close_weak_f already exists
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
----------------------------------------------------------------------

I am not very familiar with Fortran 90, so I cannot state 
whether the Fortran90 source code itself is correct. 
Given that HDF5 is quite popular I guess so...

However, I hope this helps to resolve the issue. If you have
any further questions, let me know.

Thanks again for all your efforts,

Steffen.
-- 
Steffen Seeger <seeger@physik.tu-chemnitz.de>
TU Chemnitz


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

* Re: fortran internal error: backend decl for variable ... exists:
  2005-05-02 18:06 fortran internal error: backend decl for variable ... exists: Steffen Seeger
@ 2005-05-02 18:59 ` Andrew Pinski
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Pinski @ 2005-05-02 18:59 UTC (permalink / raw)
  To: Steffen Seeger; +Cc: gcc-bugs


On May 2, 2005, at 2:06 PM, Steffen Seeger wrote:

> Hello everybody,
>
> I have successfully built gcc-4.0.0 out of the release
> tar-file (complete distribution) on an athlon system
> targeting i386-scientific-linux.
>
> The C and C++ parts work like a charm so far, compiling
> substantial amounts of C/C++ code without noticeable glitches.
> Congratulations and thank you for doing that good job!
>
> There seems, however, to be an issue with the Fortran 90
> part: Compiling the Fortran interface of the HDF5 libraries
> (a hierarchical data format library for storing and managing
> scientific data) triggers an internal compiler error.
> Isolating the cause I find the following source code
> to trigger the error:
> --- test.f90 ------------------------------------------------------
>         MODULE H5GLOBAL
>
>         INTEGER, PARAMETER :: H5F_FLAGS_LEN = 16
>         INTEGER H5F_flags(H5F_FLAGS_LEN)
>
>         COMMON /H5F_FLAGS/ H5F_flags
>
>         INTEGER :: H5F_CLOSE_WEAK_F
>
>         EQUIVALENCE(H5F_flags(1), H5F_CLOSE_WEAK_F)
>
>         END MODULE H5GLOBAL

This is PR 17917, <http://gcc.gnu.org/PR17917>.

-- Pinski


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

end of thread, other threads:[~2005-05-02 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-02 18:06 fortran internal error: backend decl for variable ... exists: Steffen Seeger
2005-05-02 18:59 ` Andrew Pinski

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