Cross compiling from windows targetting linux armel arm9

Nicholas Wilson via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Dec 24 21:35:05 PST 2016


On Sunday, 25 December 2016 at 01:25:12 UTC, Sai wrote:
> $ ldc2 t.d
> /usr/bin/ld: t.o: relocation R_X86_64_32 against

Are you still trying to target arm? why is R_X86_64_32 appearing.

> `.rodata.str1.1' can not be used when making a shared object; 
> recompile with -fPIC
> /usr/bin/ld: final link failed: Nonrepresentable section on 
> output
> collect2: error: ld returned 1 exit status
> Error: /usr/bin/gcc failed with status: 1
>
>
> $ gdc t.d
> /usr/include/d/core/stdc/stdarg.d:48:23: error: undefined 
> identifier '__va_list_tag'
>      alias __va_list = __va_list_tag;
>                        ^
>
> $ ldc2 -no-pie t.d
> ldc2: Unknown command line argument '-no-pie'.  Try: 'ldc2 
> -help'
> ldc2: Did you mean '-noasm'?

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

>
> $ gdc  -no-pie t.d
> /usr/include/d/core/stdc/stdarg.d:48:23: error: undefined 
> identifier '__va_list_tag'
>      alias __va_list = __va_list_tag;



More information about the digitalmars-d-ldc mailing list