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

--- Comment #2 from Markus Böck <markus.boeck02 at gmail dot com> ---
That is indeed weird.

At the top of the Makefile it says:
EXEEXT := .exe

and further down in the Makefile:

g++-mapper-server$(exeext): $(MAPPER.O) $(CODYLIB)
        +$(CXX) $(LDFLAGS) -o $@ $^ $(VERSION.O) $(LIBIBERTY)

# copy to gcc dir so tests there can run
all::../gcc/g++-mapper-server$(exeext)

../gcc/g++-mapper-server$(exeext): g++-mapper-server$(exeext)
        $(INSTALL) $< $@

install::
        $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(libexecsubdir)
        $(INSTALL_PROGRAM) g++-mapper-server$(exeext)
$(DESTDIR)$(libexecsubdir)

which seems correct to me?

Yet running make gives:

make[2]: Entering directory
'/mnt/c/GCC-Build-Array/gcc/build-target-x86_64/c++tools'                      
                                                                              #
--enable-maintainer-mode to rebuild ../../c++tools/config.h.in, or make
MAINTAINER=touch                                                               
                                x86_64-w64-mingw32-g++-10 -static-libstdc++
-static-libgcc -L/mnt/c/GCC-Build/NewestLinux/Libraries/lib
-Wl,--stack,12582912 -o g++-mapper-server server.o resolver.o
../libcody/libcody.a ../gcc/version.o ../libiberty/libiberty.a                 
                                                                               
                                              /usr/bin/install -c
g++-mapper-server ../gcc/g++-mapper-server                                     
                                                                               
      /usr/bin/install: cannot stat 'g++-mapper-server': No such file or
directory                                                                      
                                       Makefile:97: recipe for target
'../gcc/g++-mapper-server' failed                                              
                                                                          
make[2]: *** [../gcc/g++-mapper-server] Error 1                                
                                                                               
                          make[2]: Leaving directory
'/mnt/c/GCC-Build-Array/gcc/build-target-x86_64/c++tools'                      
                                                                              
Makefile:11807: recipe for target 'all-c++tools' failed                        
                                                                               
                          make[1]: *** [all-c++tools] Error 2                  
                                                                               
                                                    make[1]: Leaving directory
'/mnt/c/GCC-Build-Array/gcc/build-target-x86_64'                               
                                                                              
Makefile:980: recipe for target 'all' failed                                   
                                                                               
                          make: *** [all] Error 2

I am using GNU Make 4.1 on an Ubuntu 18.04 WSL 1 Host in case that could be
important

Reply via email to