r-windows / rtools-installer

Builds the rtools40 installer
https://cran.r-project.org/bin/windows/Rtools/
27 stars 2 forks source link

Problem with spaces in the path: files not found #14

Closed pecanka closed 4 years ago

pecanka commented 4 years ago

When using Rtools40 MinGW 64-bit to compile fortran code, the compiler returns the following error message:

C:/Program Files/Rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:/Program: No such file or directory
C:/Program Files/Rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find Files/Rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/lib/../lib/default-manifest.o: No such file or directory

Despite the seemingly complicated paths, the files it is trying to reach do exist. However, Rtools is apparently tripped by the fact that it is installed in a path with a space in it (in this case c:/Program Files/Rtools40), which makes it misunderstand the path and throw an error.

Questions:

  1. Is this a known bug?

  2. Is it fixable in a future release of Rtools or is it a problem with a dependency that cannot be easily fixed?

pecanka commented 4 years ago

Wrong project, moving this issue to rtools-base.