D on the Raspberry Pi

Iain Buclaw ibuclaw at ubuntu.com
Tue Jun 12 09:09:17 PDT 2012

On 12 June 2012 16:57, <sludwig at outerproduct.org>"@puremagic.com
<"\"Sönke".Ludwig"> wrote:
> On Tuesday, 12 June 2012 at 13:06:05 UTC, Henry Robbins Gouk
> wrote:
>> Hi all,
>> I was wondering if anyone has managed to successfully compile a GDC cross
>> compiler to target the Raspberry Pi?
>> I tried following the instructions found at
>> http://bitbucket.org/goshawk/gdc/wiki/crosstool-ng but when I try the "ct-ng
>> build" command I get the following output:
>> [INFO ]  Performing some trivial sanity checks
>> [INFO ]  Build started 20120613.010123
>> [INFO ]  Building environment variables
>> [ERROR]  Static linking impossible on the host system
>> 'x86_64-build_unknown-linux-gnu'
>> [00:02] / make: *** [build] Error 1
>> Should I continue along the path of using crosstools to make a cross
>> compiler, and if so; how? Or is there a better way to achieve my end goal of
>> having a cross compiler targeting the Raspberry Pi?
>> Thanks in advance for any help :-)
> I tried to build it as a cross compiler and on the raspberry
> directly - and faild at both. On the raspberry I got a compiler
> crash, and the cross compiler build process produced random
> errors - it seems to be very fragile in terms of library versions
> and such.
> ...so I would also be very interested in any sucess stories.

Does it get as far as building libphobos/libdruntime ?

I would be interested in, if possible:

1) Build logs or exact errors of what ICE's / crashes you are getting
from the compiler.
2) A copy of the generated phobos-vers-sym file from the libphobos
build directory.
3) A copy of d-confdefs.h from the gcc/d build directory.


Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';

More information about the D.gnu mailing list