Thanks, that did the trick.
Here's a summary post for anyone else with the same problem:
Problem:
DMD uses GCC to perform linking. On Hardened Gentoo (and
derivatives like Sabayon), GCC implies -fPIE, which causes
linking to fail if phobos and druntime were not compiled with
-fPIC. You can
On 06/18/2014 08:51 AM, Reuben wrote:
On Sunday, 15 June 2014 at 09:08:10 UTC, Mike Wey wrote:
In that case the static Phobos needs to be build with -fPIC, which
currently isn't the case looking at the Ebuild.
Compiling DMD with PIC=1 doesn't seem to do the trick. -fPIC is used for
the C
On Sunday, 15 June 2014 at 09:08:10 UTC, Mike Wey wrote:
On 06/14/2014 06:37 PM, Reuben wrote:
It looks like the only difference is which version of Phobos
we link. I
think the reason for this might be that since my version of
gcc is
hardened, it uses -fPIE by default for linking.
On 06/14/2014 06:37 PM, Reuben wrote:
It looks like the only difference is which version of Phobos we link. I
think the reason for this might be that since my version of gcc is
hardened, it uses -fPIE by default for linking.
On 06/14/2014 03:58 AM, Reuben wrote:
Hi,
I'm new to D and am trying to compile a simple hello world program.
I get the following error when compiling it:
dmd test.d
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld:
On Saturday, 14 June 2014 at 10:45:25 UTC, Mike Wey wrote:
On 06/14/2014 03:58 AM, Reuben wrote:
Hi,
I'm new to D and am trying to compile a simple hello world
program.
I get the following error when compiling it:
dmd test.d
On 06/14/2014 02:01 PM, Reuben wrote:
On Saturday, 14 June 2014 at 10:45:25 UTC, Mike Wey wrote:
On 06/14/2014 03:58 AM, Reuben wrote:
Depending on the desired behavior you'll need to remove the -shared
flag from the configuration or add -defaultlib=:libphobos2.so
dmd.conf contains the
On Saturday, 14 June 2014 at 13:05:52 UTC, Mike Wey wrote:
On 06/14/2014 02:01 PM, Reuben wrote:
On Saturday, 14 June 2014 at 10:45:25 UTC, Mike Wey wrote:
On 06/14/2014 03:58 AM, Reuben wrote:
Depending on the desired behavior you'll need to remove the
-shared
flag from the configuration
Hi,
I'm new to D and am trying to compile a simple hello world
program.
I get the following error when compiling it:
dmd test.d
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld:
/opt/dmd-2.065/lib64/libphobos2.a(lifetime_488_4cd.o): relocation
R_X86_64_32