dmd and Archlinux

Seb via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 9 12:21:48 PDT 2017


On Sunday, 9 July 2017 at 18:35:09 UTC, Antonio Corbi wrote:
> Hi!
>
> Are there any news about the status of packaging dmd for 
> archlinux?
>
> The last dmd compiler packaged is 2.074.0 and since the last 
> batch of updated packages in archlinux, dmd generated objects 
> fail to link with libphobos with erros like these:
>
> /usr/bin/ld: /usr/lib/libphobos2.a(object_a_66e.o): relocation 
> R_X86_64_32 against `.rodata.str1.1' can not be used when 
> making a shared object; recompile con -fPIC
> /usr/bin/ld: /usr/lib/libphobos2.a(object_b_58c.o): relocation 
> R_X86_64_32 against `.rodata.str1.1' can not be used when 
> making a shared object; recompile con -fPIC
> /usr/bin/ld: /usr/lib/libphobos2.a(object_c_7f4.o): relocation 
> R_X86_64_32 against `.rodata.str1.1' can not be used when 
> making a shared object; recompile con -fPIC
> /usr/bin/ld: /usr/lib/libphobos2.a(object_d_a07.o): relocation 
> R_X86_64_32 against `.rodata.str1.1' can not be used when 
> making a shared object; recompile con ...
>
> A. Corbi


I think the Arch Linux TUs are in the process of enabling -fPIC 
by default, see e.g. [1] - it might be releated to this?
In any case - building dmd/druntime/phobos with -fPIC enabled is 
a good idea and since 2.072.2 the official releases do so. Not 
sure why it's not done on Arch, maybe because Dicebot stepped 
down as maintainer? (see [2, 3]).

[1] 
https://lists.archlinux.org/pipermail/arch-dev-public/2017-July/028918.html
[2] http://forum.dlang.org/post/o6fbbu$1qli$1@digitalmars.com
[3] http://forum.dlang.org/post/o6sldo$1pad$1@digitalmars.com


More information about the Digitalmars-d mailing list