Cross compiling from windows targetting linux armel arm9
Sai via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sun Dec 25 08:32:57 PST 2016
On Sunday, 25 December 2016 at 05:35:05 UTC, Nicholas Wilson
wrote:
> 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;
Yes, I am still targeting ARM, but for initial development I will
be compiling to x86_64 just to simplify coding and testing of the
logic, I will be using sw simulators to emulate the robot.
Thanks for the tip, I will try that flag shortly.
More information about the digitalmars-d-ldc
mailing list