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

            Bug ID: 92274
           Summary: 'make' fails when objdir and srcdir paths contain
                    spaces
           Product: gcc
           Version: 9.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: heiko at hexco dot de
  Target Milestone: ---

When compiling gcc 9.2.0 on Ubuntu 18.04, I have to use a base path that
contains spaces.

"configure --enable-checking=all,extra" has worked, but during make
bash complains about "No such file or directory".

'/media/heiko/TOSHIBA EXT/Heikos/debug_gcc/build' is the directory
i created next to the toplevel directory gcc-9.2.0.

Seems there is some quoting missing. The problem should be easily reproducable.

make gives
====
[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory '/media/heiko/TOSHIBA EXT/Heikos/debug_gcc/build'
/bin/bash: line 0: test: /media/heiko/TOSHIBA: binary operator expected
make[2]: Entering directory '/media/heiko/TOSHIBA EXT/Heikos/debug_gcc/build'
make[3]: Entering directory '/media/heiko/TOSHIBA EXT/Heikos/debug_gcc/build'
rm -f stage_current
make[3]: Leaving directory '/media/heiko/TOSHIBA EXT/Heikos/debug_gcc/build'
make[2]: Leaving directory '/media/heiko/TOSHIBA EXT/Heikos/debug_gcc/build'
make[2]: Entering directory '/media/heiko/TOSHIBA EXT/Heikos/debug_gcc/build'
Configuring stage 1 in ./intl
/bin/bash: /media/heiko/TOSHIBA: No such file or directory
Makefile:6382: recipe for target 'configure-stage1-intl' failed
make[2]: *** [configure-stage1-intl] Error 127
make[2]: Leaving directory '/media/heiko/TOSHIBA EXT/Heikos/debug_gcc/build'
Makefile:24054: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/media/heiko/TOSHIBA EXT/Heikos/debug_gcc/build'
Makefile:993: recipe for target 'all' failed
make: *** [all] Error 2

====

I suggest, you use a base directory with spaces as one of your test settings.

Thanks and best regards,
Heiko Eißfeldt

Reply via email to