Thread overview
[Issue 19701] undefined reference to `_D6object__T6hashOf
Feb 26, 2019
kinke@gmx.net
Feb 26, 2019
kinke@gmx.net
May 16, 2019
Mike Franklin
May 16, 2019
Dlang Bot
May 16, 2019
Dlang Bot
February 26, 2019
https://issues.dlang.org/show_bug.cgi?id=19701

kinke@gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke@gmx.net
           Hardware|x86_64                      |All

--- Comment #1 from kinke@gmx.net ---
Simpler command line (yes, -Df is mandatory):

dmd -m64 -unittest -Df__dummy.html app.d

On Windows, -m32 somehow links successfully, -m32mscoff doesn't.

--
February 26, 2019
https://issues.dlang.org/show_bug.cgi?id=19701

kinke@gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|dmd                         |druntime

--- Comment #2 from kinke@gmx.net ---
The object files differ. With `-Df`, there's an external reference to _D6object__T6hashOfTxaZQlFNaNbNiNfKxaZm, while it's _D4core8internal4hash__T6hashOfTaZQkFNaNbNiNexaZm without that switch.

Looking at object.d, that's because -Df defines `version=D_Ddoc`, so that
object.hashOf isn't an alias, but a wrapper:
https://github.com/dlang/druntime/blob/58dcda229e0658451325b70243fb5cb67c6cda46/src/object.d#L4080-L4115

--
May 16, 2019
https://issues.dlang.org/show_bug.cgi?id=19701

Mike Franklin <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slavo5150@yahoo.com

--- Comment #3 from Mike Franklin <slavo5150@yahoo.com> ---
May have been introduced by https://github.com/dlang/druntime/pull/2239

--
May 16, 2019
https://issues.dlang.org/show_bug.cgi?id=19701

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@rainers created dlang/druntime pull request #2609 "fix Issue 19701 - undefined reference to _D6object__T6hashOf" fixing this issue:

- fix Issue 19701 - undefined reference to _D6object__T6hashOf

  use CoreDdoc instead of D_Ddoc

https://github.com/dlang/druntime/pull/2609

--
May 16, 2019
https://issues.dlang.org/show_bug.cgi?id=19701

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/druntime pull request #2609 "fix Issue 19701 - undefined reference to _D6object__T6hashOf" was merged into stable:

- 3262245e82074bb068a367e4fee69ef1969d0982 by Rainer Schuetze:
  fix Issue 19701 - undefined reference to _D6object__T6hashOf

  use CoreDdoc instead of D_Ddoc

https://github.com/dlang/druntime/pull/2609

--