Thread overview
[Issue 15935] compiling dub with -fPIC triggers internal compiler error
Nov 30, 2016
Jonathan M Davis
Nov 30, 2016
Jonathan M Davis
Dec 01, 2016
Martin Krejcirik
Dec 07, 2016
Jonathan M Davis
Jun 17, 2017
Oliver Kurz
Dec 12, 2017
Seb
November 30, 2016
https://issues.dlang.org/show_bug.cgi?id=15935

Jonathan M Davis <issues.dlang@jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang@jmdavisProg.co
                   |                            |m

--- Comment #1 from Jonathan M Davis <issues.dlang@jmdavisProg.com> ---
The same thing happens when compiling druntime with PIC=1 on the latest
(k)ubuntu - 16.10:

Internal error: backend/elfobj.c 1027
posix.mak:184: recipe for target 'generated/linux/release/64/libdruntime.a'
failed

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

Jonathan M Davis <issues.dlang@jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |16794

--
December 01, 2016
https://issues.dlang.org/show_bug.cgi?id=15935

--- Comment #2 from Martin Krejcirik <mk@krej.cz> ---
(In reply to Jonathan M Davis from comment #1)
> The same thing happens when compiling druntime with PIC=1 on the latest

What DMD version ? Also see issue 16031.

--
December 07, 2016
https://issues.dlang.org/show_bug.cgi?id=15935

Jonathan M Davis <issues.dlang@jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|16794                       |

--- Comment #3 from Jonathan M Davis <issues.dlang@jmdavisProg.com> ---
(In reply to Martin Krejcirik from comment #2)
> (In reply to Jonathan M Davis from comment #1)
> > The same thing happens when compiling druntime with PIC=1 on the latest
> 
> What DMD version ? Also see issue 16031.

>From the looks of it, I was trying 2.071.0. I have now tried more versions.
2.071.1 exhibits the problem as well, but 2.071.2 and later do not. Also, it looks like it was only happening with the unittest build. In either case, it looks like this problem no longer affects the druntime build. I have no idea if this is still a problem for dub or not.

--
June 17, 2017
https://issues.dlang.org/show_bug.cgi?id=15935

Oliver Kurz <okurz@suse.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |okurz@suse.de

--
December 12, 2017
https://issues.dlang.org/show_bug.cgi?id=15935

Seb <greensunny12@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |greensunny12@gmail.com
         Resolution|---                         |FIXED

--- Comment #4 from Seb <greensunny12@gmail.com> ---
This hasn't been a problem for DUB in this entire year. I can only use -fPIC on my hardened system and DUB built fine over the entire year -> closing as "fixed".

--