Fail to set LD_LIBRARY_PATH then cross build for ARM
Joakim via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Tue Aug 1 13:18:43 PDT 2017
On Tuesday, 1 August 2017 at 18:44:03 UTC, Oleg B wrote:
> On Tuesday, 1 August 2017 at 18:34:24 UTC, Joakim wrote:
>> You just listed two different compilers: do you mean you used
>> a prebuilt ldc 1.3 on linux/x64 to build an ldc 1.4
>> cross-compiler on linux/x64 for armhf from source? If so,
>> maybe you're invoking the wrong one, ie you should run
>> ./ldc_build_arm/bin/ldc2 not ldc2 when cross-compiling.
> ldc2 for ARM I build from sources before 1.3.0 release (I don't
> know why version is 1.4.0) and build it direct on raspberry by
> ldc2-1.1.0. From ARM I only use builded libraries (phobos and
> druntime), not a compiler.
It is not clear what you're trying to do. You want to use the
ldc 1.3 compiler on linux/x64 to cross-compile to linux/armhf?
To do this, you are building the ldc 1.4 libraries natively on
linux/armhf, then copying them over to linux/x64 and trying to
use them with ldc 1.3? If you have a working ldc 1.4 on your
Raspberry/ARM board, why not just use that? Please detail
exactly what you're doing, as you seem to be trying something
More information about the digitalmars-d-ldc