Thread overview
[Issue 16031] [REG2.071] dmd internal error when compiling druntime with PIC=1
May 17, 2016
Martin Krejcirik
May 24, 2016
Walter Bright
May 24, 2016
Martin Krejcirik
[Issue 16031] [REG2.071] stale DW.ref.name EH symbol used with -lib and -fPIC
Sep 14, 2016
Martin Nowak
Jul 19, 2017
Vladimir Panteleev
May 17, 2016
https://issues.dlang.org/show_bug.cgi?id=16031

Martin Krejcirik <mk@krej.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[REG2.071.1] dmd internal   |[REG2.071] dmd internal
                   |error when compiling        |error when compiling
                   |druntime with PIC=1         |druntime with PIC=1

--
May 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16031

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
(In reply to Martin Krejcirik from comment #0)
> make -f posix.mak MODEL=32 DMD=../dmd/src/dmd PIC=1

What does the PIC=1 do? PIC isn't anywhere in posix.mak

--
May 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16031

--- Comment #2 from Martin Krejcirik <mk@krej.cz> ---
(In reply to Walter Bright from comment #1)
> What does the PIC=1 do? PIC isn't anywhere in posix.mak

It's there, it adds -fPIC to DFLAGS.

--
September 14, 2016
https://issues.dlang.org/show_bug.cgi?id=16031

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |EH, pull
                 CC|                            |code@dawg.eu
           Assignee|nobody@puremagic.com        |code@dawg.eu
            Summary|[REG2.071] dmd internal     |[REG2.071] stale
                   |error when compiling        |DW.ref.name EH symbol used
                   |druntime with PIC=1         |with -lib and -fPIC

--- Comment #3 from Martin Nowak <code@dawg.eu> ---
Easy enough to guess that this is an issue with PIC and the new DWARF EH code. Seems like it was introduced by https://github.com/dlang/dmd/commit/58910e74854b7f7b86e5cec50a6d73943fc29f87, b/c Sdw_ref_idx gets cached but not reset before generating further objects.

https://github.com/dlang/dmd/pull/6129

--
September 14, 2016
https://issues.dlang.org/show_bug.cgi?id=16031

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/253b94371378a1acdaca26b515366be74b4f35bd fix Issue 16031 - symbol idx out of bounds w/ multilib and PIC

- the types in the catch handler type tables can reoccur and would use a
  cached DW.ref.name symbol from an older object file
- reset DW.ref.name symbol idx before generating next object file
- fixes EH for .a archives with PIC

https://github.com/dlang/dmd/commit/b551db57c275a58c93745b5d62ca956caca15010 Merge pull request #6129 from MartinNowak/fix16031

fix Issue 16031 - symbol idx out of bounds w/ multilib and PIC

--
September 14, 2016
https://issues.dlang.org/show_bug.cgi?id=16031

github-bugzilla@puremagic.com changed:

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

--
September 27, 2016
https://issues.dlang.org/show_bug.cgi?id=16031

--- Comment #5 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/253b94371378a1acdaca26b515366be74b4f35bd fix Issue 16031 - symbol idx out of bounds w/ multilib and PIC

https://github.com/dlang/dmd/commit/b551db57c275a58c93745b5d62ca956caca15010 Merge pull request #6129 from MartinNowak/fix16031

--
November 04, 2016
https://issues.dlang.org/show_bug.cgi?id=16031

--- Comment #6 from github-bugzilla@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/253b94371378a1acdaca26b515366be74b4f35bd fix Issue 16031 - symbol idx out of bounds w/ multilib and PIC

https://github.com/dlang/dmd/commit/b551db57c275a58c93745b5d62ca956caca15010 Merge pull request #6129 from MartinNowak/fix16031

--
July 19, 2017
https://issues.dlang.org/show_bug.cgi?id=16031

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |er.krali@gmail.com

--- Comment #7 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
*** Issue 16290 has been marked as a duplicate of this issue. ***

--