Issue 16596 - REGRESSION:`digger build` fails:Undefined symbols for architecture x86_64 symboldata
Summary: REGRESSION:`digger build` fails:Undefined symbols for architecture x86_64 sym...
Status: RESOLVED DUPLICATE of issue 16536
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-05 01:57 UTC by Timothee Cour
Modified: 2016-10-05 18:13 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Timothee Cour 2016-10-05 01:57:07 UTC
```
digger: Updating repo...
Fetching origin
digger: Starting at meta repository commit 546a7b9406a70b987e58ca3b0ee08e2d2d682f32
digger: Building components dmd, druntime, phobos-includes, phobos, rdmd
digger: needInstalled: dmd-6269887e27c9f3c097e76f7d49e0cafce91265b7-4cc462583eb41c5436f6a8f5a3ffe12e
digger: Clearing temporary cache
digger: Cache miss.
digger: needBuild: dmd-6269887e27c9f3c097e76f7d49e0cafce91265b7-4cc462583eb41c5436f6a8f5a3ffe12e
digger: Initializing and updating submodule dmd...
Submodule 'dmd' (git://github.com/D-Programming-Language/dmd) registered for path 'dmd'
Cloning into '/Users/timothee/.config/digger/repo/dmd'...
Submodule path 'dmd': checked out '6269887e27c9f3c097e76f7d49e0cafce91265b7'
digger: Cleaning repository dmd...
HEAD is now at 6269887 Merge pull request #6153 from WalterBright/genhelpers
digger: Building dmd-6269887e27c9f3c097e76f7d49e0cafce91265b7-4cc462583eb41c5436f6a8f5a3ffe12e
digger: Preparing DMD v2.067.1

CC=c++ /Users/timothee/.config/digger/dl/dmd-2.067.1/dmd2/osx/bin/dmd -ofdmd -m64 -vtls -J. -L-lstdc++ -version=MARS -wi access.d aggregate.d aliasthis.d apply.d argtypes.d arrayop.d arraytypes.d attrib.d builtin.d canthrow.d clone.d complex.d cond.d constfold.d cppmangle.d ctfeexpr.d dcast.d dclass.d declaration.d delegatize.d denum.d dimport.d dinifile.d dinterpret.d dmacro.d dmangle.d dmodule.d doc.d dscope.d dstruct.d dsymbol.d dtemplate.d dversion.d entity.d errors.d escape.d expression.d func.d globals.d hdrgen.d id.d identifier.d impcnvtab.d imphint.d init.d inline.d intrange.d json.d lexer.d lib.d link.d mars.d mtype.d nogc.d nspace.d opover.d optimize.d parse.d sapply.d sideeffect.d statement.d staticassert.d target.d tokens.d traits.d utf.d visitor.d typinf.d utils.d statementsem.d safe.d objc.d libmach.d scanmach.d irstate.d toelfdebug.d toctype.d glue.d gluelayer.d todt.d tocsym.d toir.d dmsc.d backend/bcomplex.d backend/cc.d backend/cdef.d backend/cgcv.d backend/code.d backend/dt.d backend/el.d backend/global.d backend/obj.d backend/oper.d backend/outbuf.d backend/rtlsym.d backend/ty.d backend/type.d tk/dlist.d root/aav.d root/array.d root/ctfloat.d root/file.d root/filename.d root/man.d root/outbuffer.d root/port.d root/response.d root/rmem.d root/rootobject.d root/speller.d root/stringtable.d newdelete.o glue.a backend.a
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
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)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
make: *** [dmd] Error 1
digger: Not caching dmd build failure due to temporary/environment error.
object.Exception@ae/sys/d/manager.d(756): Command ["make", "-f", "posix.mak", "MODEL=64", "HOST_DC=/Users/timothee/.config/digger/dl/dmd-2.067.1/dmd2/osx/bin/dmd"] failed with status 2
----------------
```
Comment 1 Vladimir Panteleev 2016-10-05 02:00:47 UTC
Perhaps try a digger build bisection (bisectBuild=true).
Comment 2 Timothee Cour 2016-10-05 16:45:24 UTC
digger: bff7b4fe36e34b8db6aed33b91536ac0efed75f6 is the first bad commit
commit bff7b4fe36e34b8db6aed33b91536ac0efed75f6
Author: Andrei Alexandrescu <andrei@erdani.com>
Date:   Wed Sep 21 14:01:59 2016 -0400

    dmd: Merge pull request #6145 from WalterBright/add-dmsc.d

    https://github.com/D-Programming-Language/dmd/pull/6145

    convert msc.c to dmsc.d

diff --git a/dmd b/dmd
index cce7909..93596df 160000
--- a/dmd
+++ b/dmd
@@ -1 +1 @@
-Subproject commit cce79099fd365ee0a2aaf0e3ec4141303ea28e46
+Subproject commit 93596df0c5cf2fc272ea0841f2f263e53cb1e47e
digger: Bisection completed successfully.
Comment 3 Martin Nowak 2016-10-05 18:13:55 UTC

*** This issue has been marked as a duplicate of issue 16536 ***