Cross compiling from windows targetting linux armel arm9

Sai via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Thu Feb 16 08:57:56 PST 2017


>>
>> try the `-relocation-model` flag (look at the help)
>>

This used to work, but after updating to LDC 1.1.0, it stopped 
working, now I get this error:


sai at saivb:~/tmp$ ldc2 t.d
/usr/bin/ld: 
/home/sai/Programs/ldc2-1.1.0-linux-x86_64/bin/../lib/libdruntime-ldc.a(errno.c.o): relocation R_X86_64_PC32 against symbol `__errno_location@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1


sai at saivb:~/tmp$ ldc2 -relocation-model=dynamic-no-pic  t.d
/usr/bin/ld: 
/home/sai/Programs/ldc2-1.1.0-linux-x86_64/bin/../lib/libdruntime-ldc.a(errno.c.o): relocation R_X86_64_PC32 against symbol `__errno_location@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1


Any help is appreciated.
Testing on Ubuntu 16.10 with all updates installed.





More information about the digitalmars-d-ldc mailing list