[Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows

2020-12-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98409

Nathan Sidwell  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED

--- Comment #6 from Nathan Sidwell  ---
Fixed
 e4043c636ce 2020-12-21 | c++tools: Fix exe suffix [PR 98409]

[Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows

2020-12-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98409

--- Comment #5 from CVS Commits  ---
The master branch has been updated by Nathan Sidwell :

https://gcc.gnu.org/g:e4043c636cef8d18074ce6865ed3271283f52bb5

commit r11-6284-ge4043c636cef8d18074ce6865ed3271283f52bb5
Author: Nathan Sidwell 
Date:   Mon Dec 21 05:32:28 2020 -0800

c++tools: Fix exe suffix [PR 98409]

I had a thinko about variable case, and, coupled with Make's behaviour
of just consing up variables out of nothing, and linux not having an
executable extension, didn't notice.

PR other/98409
c++tools/
* Makefile.in: Fix exeext variable case.

[Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows

2020-12-21 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98409

--- Comment #4 from Nathan Sidwell  ---
It's me having a thinko about case sensitivity.

[Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows

2020-12-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98409

Jakub Jelinek  changed:

   What|Removed |Added

 CC||nathan at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek  ---
Ah, no weird at all.
It should have been
exeext = @EXEEXT@
instead, if @EXEEXT@ is what one wants to use.  For crosses, especially
canadian, bet the exeext needed is the host exeext, not sure which one
configure computes here.
E.g. gcc/Makefile.in has separate:
gcc/Makefile.in:exeext = @host_exeext@
gcc/Makefile.in:build_exeext = @build_exeext@

[Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows

2020-12-21 Thread markus.boeck02 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98409

--- Comment #2 from Markus Böck  ---
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

[Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows

2020-12-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98409

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek  ---
That is weird,
$ grep mapper-server Makefile.in 
rm -f g++-mapper-server$(exeext)
all::g++-mapper-server$(exeext)
g++-mapper-server$(exeext): $(MAPPER.O) $(CODYLIB)
all::../gcc/g++-mapper-server$(exeext)
../gcc/g++-mapper-server$(exeext): g++-mapper-server$(exeext)
$(INSTALL_PROGRAM) g++-mapper-server$(exeext)
$(DESTDIR)$(libexecsubdir)

What is exeext set for you in c++tools/Makefile ?