ARM targetting cross-toolchain with GDC

Johannes Pfau nospam at example.com
Sat Jun 15 12:15:50 PDT 2013


Am Thu, 13 Jun 2013 22:19:10 +0200
schrieb "Andrey" <vangelisforever at yandex.ru>:

> On Thursday, 13 June 2013 at 16:00:34 UTC, Johannes Pfau wrote:
> > Am Thu, 13 Jun 2013 16:28:19 +0200
> > schrieb "Andrey" <vangelisforever at yandex.ru>:
> >
> >> 
> >> I have the same trouble.
> >> And I don't know how resolve it..
> >
> > If you want to build a cross compiler targeting ARM/Linux 
> > follow these
> > instructions:
> > http://gdcproject.org/wiki/Cross%20Compiler/crosstool-NG
> >
> > This way you don't need to patch crosstool-NG and you can use 
> > the
> > latest crosstool-NG release. Make sure to use gcc-4.7 (gcc-4.8 
> > will
> > work as well as soon as crosstool-NG supports it).
> >
> > I don't have a ready to use config though.
> Thank you for answer.
> 
> The compilation of GDC for ARMv5TE has been done without any 
> errors, and now I can't find native ARM libphobos to make my 
> small ARM test. What shall I do? Сould you help me?
> 
> Thanks.

The linked howto explicitly disables phobos and druntime. To
build phobos and druntime do not use the "--disable-libphobos"
switch as said in the howto.

However libphobos currently doesn't build for ARM, this patch is
needed:
https://github.com/D-Programming-Language/druntime/pull/521

Once it's accepted into upstream I'll backport it to gdc but this might
take some time. You could of course apply these changes by yourself,
then remove the --disable-libphobos switch and you should get a
basically working phobos.



More information about the Digitalmars-d mailing list