Bug 16000 – [Reg 2.072~master] linking issues on OSX with size_t, extern(C++), i386, and clang

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2016-05-07T16:04:00Z
Last change time
2016-05-17T22:10:40Z
Keywords
pull
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2016-05-07T16:04:54Z
Undefined symbols for architecture i386: "DtBuilder::repeat(dt_t*, unsigned int)", referenced from: Initializer_toDt::InitToDt::visit(ArrayInitializer*) in dmd.o _D4ddmd4todt11membersToDtFC4ddmd9aggregate20AggregateDeclarationC4ddmd7backend9DtBuilderPS4ddmd4root5array41__T5ArrayTC4ddmd10expression10ExpressionZ5ArraykC4ddmd6dclass16ClassDeclarationPPPS4ddmd6dclass9BaseClassZv in dmd.o Type_toDt::TypeToDt::visit(TypeVector*) in dmd.o Type_toDt::TypeToDt::visit(TypeSArray*) in dmd.o _D4ddmd4todt8toDtElemFC4ddmd5mtype10TypeSArrayC4ddmd7backend9DtBuilderC4ddmd10expression10ExpressionZv in dmd.o "OutBuffer::write(void const*, unsigned long)", referenced from: toObjFile(Dsymbol*, bool)::ToObjFile::visit(VarDeclaration*) in glue.a(toobj.o) 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.
Comment #1 by code — 2016-05-17T22:10:40Z