RTEMS Toolchain building failed for ARM

Chris Johns chrisj at rtems.org
Thu Feb 22 22:46:34 UTC 2018


On 22/02/2018 19:08, zhang heng wrote:
> Dear,
>   I have never installed Cygwin and minGW. when  creating a simple C file and
> compile it with gcc in the MSYS2 shell ,I find the error may be generated by
> ld.exe. 
> 
> heng at heng-PC MINGW64 /h/Project/demo
> $ gcc demo.c -o demo
> F:/Program Files
> (x86)/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:

You have a space in the path and that will break many many things ported from a
POSIX or Unix environment.

Did you install MSYS2 in a special place?

I did a default install and it ended up in c:\msys64. I have nothing close that
name under 'F:/Program Files (x86)'.

Please install to F:/msys64 or something similar.

Chris



More information about the users mailing list