https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98175

            Bug ID: 98175
           Summary: Problem with gcc front end and ld on vanilla Windows
                    10 installation (spaces in path)
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marcoxa at gmail dot com
  Target Milestone: ---

Hi

this came up while installing an update for "ps" in the latest R/Rtools/Rstudio
combination.  This is for 8.3.0 as included in Rtools 4.0.x.  I don't know if
it affects later versions of the GCC toolchain.

I was able to reproduce it on a simpler case.  Bottom line: while the GCC
compiler frontend does not quote the "ld.exe" invocation.

```
g:\My Drive\Work\Projects\Hacking\elisp\iron-main\tests>"c:\Program
Files\R\Rtools40\mingw64\bin\gfortran" hello.f 
"c:\Program Files\R\Rtools40\mingw64\bin\gfortran" hello.f 
c:/Program
Files/R/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/R/Rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find
Files/R/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
collect2.exe: error: ld returned 1 exit status

```

Note that Rtools 4.0.x correctly quotes the gfortran (or gcc) command.  But
then, the inner call to "ld.exe" is not.

I know I can work around this by changing the installation path, but people
using vanilla W10 are bound to trip on this quite often. 

All the best

Marco Antoniotti

Reply via email to