[Issue 13178] New: Duplicate symbol of compiler generated symbols

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 21 11:48:54 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13178

          Issue ID: 13178
           Summary: Duplicate symbol of compiler generated symbols
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: doob at me.com

Compiling DVM [1] worked fine with DMD 2.065.0 but with 2.066.0-b5 I get
duplicate symbols, like these:

duplicate symbol _D5tango4core6Traits12__ModuleInfoZ in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-coreTraits-inline.o)
duplicate symbol _D5tango4core6Traits7__arrayZ in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-coreTraits-inline.o)
duplicate symbol _D5tango4core6Traits8__assertFiZv in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-coreTraits-inline.o)
duplicate symbol _D5tango4core6Traits15__unittest_failFiZv in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-coreTraits-inline.o)
duplicate symbol _D5tango2io4Path2FS6__initZ in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-ioPath-inline.o)
duplicate symbol _D5tango2io4Path2FS6Stamps6__initZ in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-ioPath-inline.o)
duplicate symbol _D5tango2io4Path2FS7Listing6__initZ in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-ioPath-inline.o)
duplicate symbol _D5tango2io4Path12__ModuleInfoZ in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-ioPath-inline.o)
duplicate symbol _D5tango2io4Path7__arrayZ in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-ioPath-inline.o)
duplicate symbol _D5tango2io4Path8__assertFiZv in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-ioPath-inline.o)
duplicate symbol _D5tango2io4Path15__unittest_failFiZv in:
    /tmp/.rdmd-501/rdmd-dvm.d-A99850633B527F37D8244D20D34B9D7A/objs/dvm.o
   
/Users/doob/.dvm/compilers/dmd-2.066.0-b5/lib/libtango.a(tango-ioPath-inline.o)
ld: 11 duplicate symbols for architecture x86_64
collect2: ld returned 1 exit status
--- errorlevel 1

If I compile with the -debug flag I don't get these errors.

[1] https://github.com/jacob-carlborg/dvm

--


More information about the Digitalmars-d-bugs mailing list