www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16000] New: linking issues on OSX with size_t, extern(C++),


          Issue ID: 16000
           Summary: linking issues on OSX with size_t, extern(C++), i386,
                    and clang
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

Undefined symbols for architecture i386:
  "DtBuilder::repeat(dt_t*, unsigned int)", referenced from:
      Initializer_toDt::InitToDt::visit(ArrayInitializer*) in dmd.o
in dmd.o
      Type_toDt::TypeToDt::visit(TypeVector*) in dmd.o
      Type_toDt::TypeToDt::visit(TypeSArray*) in dmd.o
in dmd.o
  "OutBuffer::write(void const*, unsigned long)", referenced from:
      toObjFile(Dsymbol*, bool)::ToObjFile::visit(VarDeclaration*) in
ld: symbol(s) not found for architecture i386

Both seem to happen b/c of a size_t vs. unsigned int/long mangling mismatch.
This is breaking the nightly build since 2 days.

May 07 2016