What is going on with the ubuntu/debian debacle ?

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 20 03:38:04 PST 2016


On Sunday, 20 November 2016 at 10:22:10 UTC, deadalnix wrote:
> On Sunday, 20 November 2016 at 09:00:08 UTC, John Colvin wrote:
>> On Sunday, 20 November 2016 at 05:01:06 UTC, Nicholas Wilson 
>> wrote:
>>> On Saturday, 19 November 2016 at 23:03:05 UTC, deadalnix 
>>> wrote:
>>>> A lot of users are reporting errors on debian and ubuntu. .o 
>>>> generated by dmd do not link and libphobos.a is unusable.
>>>>
>>>> This is very bad and we should consider a hotfix. Is someone 
>>>> on it ?
>>>
>>> This is the PIE by default problem, yes? In which case the 
>>> hot fix should just always enable -fPIC for debian/ubuntu.
>>>
>>>  See also 
>>> https://forum.dlang.org/thread/cgifwxqogkvpfrjcioum@forum.dlang.org
>>
>> That's the hotfix, but in general it's overkill. -fpie is a 
>> subset of -fpic, see 
>> https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html
>
> The shipped binaries are not compiled with that flag, so, 
> unless I use my homebrew of everything, nothing works.

Yes, as I said, -fpic* is the hotfix until we support -fpie. We 
should definitely provide alternative downloads compiled with 
-fpic, at least the deb packages if not also the zip.

* side note: fpic and fPIC aren't exactly the same on all 
platforms, but for x86(_64) iirc they are identical.


More information about the Digitalmars-d mailing list