www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - LDC binary build for raspberrypi

reply Edwin van Leeuwen <edder tkwsping.nl> writes:
I am trying to use the binary build for armv7hf on the 
raspberrypi [1]. I unpacked it and added the bin directory to my 
path, but when I try to build a project with dub I get the 
following error:

$ dub build -c log
Performing "debug" build using ldc2 for arm, arm_hardfloat.
vibe-d:utils 0.7.30: building configuration "library"...
Error: failed to create path to file: 
.dub/obj/../../../../.dub/packages/vibe-d-0.7.30/vibe-d/.dub/build/library-debug-linux.posix-arm.arm_hardfloat-ldc_2071-DDE831C04FF66A8C06D4E87CB6E42184/libvibe-d_utils.a
No such file or directory
ldc2 failed with exit code 1.

So I tried to create the directory. This helped but ended with 
the following error:

$ dub build -c log
Performing "debug" build using ldc2 for arm, arm_hardfloat.
vibe-d:utils 0.7.30: building configuration "library"...
Source file does not exist.

The build works normally on amd64 systems. Any pointers would be 
appreciated.

[1] 
https://github.com/ldc-developers/ldc/releases/download/v1.1.0-beta3/ldc2-1.1.0-beta3-linux-armv7hf.tar.xz
Nov 01 2016
parent reply kinke <noone nowhere.com> writes:
The dub issue has been fixed in master. Try adding 
`--compiler=ldmd` to the dub command line for beta3.
Nov 01 2016
parent Edwin van Leeuwen <edder tkwsping.nl> writes:
On Tuesday, 1 November 2016 at 21:09:14 UTC, kinke wrote:
 The dub issue has been fixed in master. Try adding 
 `--compiler=ldmd` to the dub command line for beta3.
Thank you, that worked, although I had to use ldmd2 instead of ldmd. :)
Nov 01 2016