DMD on ARM/Linux (for controlling EV3 Lego Mindstorm)?

rikki cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 21 22:28:26 PDT 2016


On 22/08/2016 5:22 PM, Sai wrote:
> Thanks all for your replies.
>
> I tried to use GDC first, I couldn't find windows binary targeting
> windows (for initial testing) which I thought was weird.
> https://gdcproject.org/downloads
>
> So I tried to build it in Cygwin env, using these instructions:
> http://wiki.dlang.org/GDC/Installation/Generic
> (I used gcc-5.2 sources for this).
>
> Unfortunately, it failed with the following error. Any ideas?
>
> I am tempting towards go, looks like their windows binary supports
> compiling to both windows and arm. Unfortunately I don't want to use go
> as it lacks templates (or generics) and operator overloading, as I tend
> to use lot of vector/matrix math in my programs.
>
>
>         gcc/d/dfrontend -Id ../../gcc-5.2.0/gcc/d/dfrontend/filename.c
>         ../../gcc-5.2.0/gcc/d/dfrontend/filename.c: In static member
> function ‘static bool FileName::ensurePathExists(const char*)’:
>         ../../gcc-5.2.0/gcc/d/dfrontend/filename.c:602:43: error: ‘sep’
> was not declared in this scope
>                      if (path[strlen(path) - 1] != sep)
>                                                    ^
>         ../../gcc-5.2.0/gcc/d/dfrontend/filename.c:611:21: error: ‘r’
> was not declared in this scope
>                          if (r)
>                              ^
>         ../../gcc-5.2.0/gcc/d/dfrontend/filename.c:616:25: error:
> ‘errno’ was not declared in this scope
>                              if (errno != EEXIST)
>                                  ^
>         ../../gcc-5.2.0/gcc/d/dfrontend/filename.c:616:34: error:
> ‘EEXIST’ was not declared in this scope
>                              if (errno != EEXIST)
>                                           ^
>         make[2]: *** [../../gcc-5.2.0/gcc/d/Make-lang.in:115:
> d/filename.o] Error 1
>         make[2]: *** Waiting for unfinished jobs....
>         rm gcc.pod gdc.pod
>         make[2]: Leaving directory '/home/sai/gdc/objdir/gcc'
>         make[1]: *** [Makefile:4127: all-gcc] Error 2
>         make[1]: Leaving directory '/home/sai/gdc/objdir'
>         make: *** [Makefile:867: all] Error 2

I've seen that error before, specifically not finding errno. If I 
remember right its not using the right c++ language version. That is 
what you should try and Google. I would do it myself but I can't right 
this minute.



More information about the Digitalmars-d-learn mailing list