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

Reply via email to