www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16536] New: DMD master does not build on OS X 10.11.6/Xcode


          Issue ID: 16536
           Summary: DMD master does not build on OS X 10.11.6/Xcode 7.3.1
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: code klickverbot.at

$ cd dmd
$ git show
commit d8be50edd4106ca498ed09a9b3a445240de5cf47
$ make -f posix.mak
Undefined symbols for architecture x86_64:
  "symboldata(unsigned long long, unsigned int)", referenced from:
      el_ptr(Symbol*) in backend.a(el.o)
      el_convstring(elem*) in backend.a(el.o)
      out_readonly_sym(unsigned int, void*, int) in backend.a(out.o)
      Obj::sym_cdata(unsigned int, char*, int) in backend.a(machobj.o)
  "_align(unsigned long long, unsigned long long)", referenced from:
      codgen() in backend.a(cgcod.o)
      stackoffsets(int) in backend.a(cgcod.o)
      outjmptab(block*) in backend.a(cod3.o)
      outswitab(block*) in backend.a(cod3.o)
      type_paramsize(TYPE*) in backend.a(type.o)
      alignOffset(int, unsigned long long) in backend.a(out.o)
      cdfunc(elem*, unsigned int*) in backend.a(cod1.o)

This is on linking the DMD executable.

Xcode 7.3.1:

$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix

Host DMD from Homebrew:
$ dmd --version
DMD64 D Compiler v2.071.1

This seems to be fallout from translating msc.c to D.

Sep 24 2016