public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39890]  New: Link of a large application fails with spurious multiple symbol definition
@ 2009-04-25  5:21 craig dot powers at gmail dot com
  2009-04-25  5:23 ` [Bug fortran/39890] " craig dot powers at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: craig dot powers at gmail dot com @ 2009-04-25  5:21 UTC (permalink / raw)
  To: gcc-bugs

I attempted to build my research group's molecular simulation code.  Compiling
appears to proceed normally, but linking fails with a string of spurious
multiple definition errors, e.g.
nucleation.o(.bss+0x0): multiple definition of `__nucleation_MOD_atomicpress'
nucleation.o(.bss+0x0): first defined here

However, running nm on nucleation.o shows only one line for the referenced
symbol:
0000000000000000 B __nucleation_MOD_atomicpress

And a grep of the program source shows that atomicpress is only declared in
module nucleation, so there is no apparent source for the complaints.

This code has been compiled and linked successfully with ifort 11 and a version
of pathf95 (either 2.5 or 3.0).


-- 
           Summary: Link of a large application fails with spurious multiple
                    symbol definition
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: craig dot powers at gmail dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug fortran/39890] Link of a large application fails with spurious multiple symbol definition
  2009-04-25  5:21 [Bug fortran/39890] New: Link of a large application fails with spurious multiple symbol definition craig dot powers at gmail dot com
@ 2009-04-25  5:23 ` craig dot powers at gmail dot com
  2009-04-25  5:25 ` craig dot powers at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: craig dot powers at gmail dot com @ 2009-04-25  5:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from craig dot powers at gmail dot com  2009-04-25 05:23 -------
(In reply to comment #0)

I neglected to give my compiler info...

/usr/gcc44/bin/gfortran -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.4.0/configure --prefix=/usr/gcc44
--enable-languages=all
Thread model: posix
gcc version 4.4.0 (GCC)


-- 


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


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

* [Bug fortran/39890] Link of a large application fails with spurious multiple symbol definition
  2009-04-25  5:21 [Bug fortran/39890] New: Link of a large application fails with spurious multiple symbol definition craig dot powers at gmail dot com
  2009-04-25  5:23 ` [Bug fortran/39890] " craig dot powers at gmail dot com
@ 2009-04-25  5:25 ` craig dot powers at gmail dot com
  2009-04-25  5:29 ` craig dot powers at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: craig dot powers at gmail dot com @ 2009-04-25  5:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from craig dot powers at gmail dot com  2009-04-25 05:25 -------
(In reply to comment #0)

Also, I omitted the link invocation:
gfortran -O3 -o (exe_name) (big honkin' list of object files)


-- 


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


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

* [Bug fortran/39890] Link of a large application fails with spurious multiple symbol definition
  2009-04-25  5:21 [Bug fortran/39890] New: Link of a large application fails with spurious multiple symbol definition craig dot powers at gmail dot com
  2009-04-25  5:23 ` [Bug fortran/39890] " craig dot powers at gmail dot com
  2009-04-25  5:25 ` craig dot powers at gmail dot com
@ 2009-04-25  5:29 ` craig dot powers at gmail dot com
  2009-04-25 11:18 ` burnus at gcc dot gnu dot org
  2009-04-25 17:23 ` craig dot powers at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: craig dot powers at gmail dot com @ 2009-04-25  5:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from craig dot powers at gmail dot com  2009-04-25 05:29 -------
(In reply to comment #0)

Compiler invocation for each source file:
/usr/gcc44/bin/gfortran  -c -fbacktrace -x f95-cpp-input -DF2003
-DF2003_NO_ASSOCIATE (source file)


-- 


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


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

* [Bug fortran/39890] Link of a large application fails with spurious multiple symbol definition
  2009-04-25  5:21 [Bug fortran/39890] New: Link of a large application fails with spurious multiple symbol definition craig dot powers at gmail dot com
                   ` (2 preceding siblings ...)
  2009-04-25  5:29 ` craig dot powers at gmail dot com
@ 2009-04-25 11:18 ` burnus at gcc dot gnu dot org
  2009-04-25 17:23 ` craig dot powers at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-04-25 11:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from burnus at gcc dot gnu dot org  2009-04-25 11:18 -------
> Also, I omitted the link invocation:
> gfortran -O3 -o (exe_name) (big honkin' list of object files)

Can you double check that in the "big honkin' list of object files" the file
"nucleation.o" is listed only once?


-- 

burnus at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/39890] Link of a large application fails with spurious multiple symbol definition
  2009-04-25  5:21 [Bug fortran/39890] New: Link of a large application fails with spurious multiple symbol definition craig dot powers at gmail dot com
                   ` (3 preceding siblings ...)
  2009-04-25 11:18 ` burnus at gcc dot gnu dot org
@ 2009-04-25 17:23 ` craig dot powers at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: craig dot powers at gmail dot com @ 2009-04-25 17:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from craig dot powers at gmail dot com  2009-04-25 17:23 -------
(In reply to comment #4)
> > Also, I omitted the link invocation:
> > gfortran -O3 -o (exe_name) (big honkin' list of object files)
> 
> Can you double check that in the "big honkin' list of object files" the file
> "nucleation.o" is listed only once?
> 

Oops, that was it.  The object file was twice in the list.  I should have
checked that.


-- 

craig dot powers at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2009-04-25 17:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-25  5:21 [Bug fortran/39890] New: Link of a large application fails with spurious multiple symbol definition craig dot powers at gmail dot com
2009-04-25  5:23 ` [Bug fortran/39890] " craig dot powers at gmail dot com
2009-04-25  5:25 ` craig dot powers at gmail dot com
2009-04-25  5:29 ` craig dot powers at gmail dot com
2009-04-25 11:18 ` burnus at gcc dot gnu dot org
2009-04-25 17:23 ` craig dot powers at gmail 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).