public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98409] New: Installing g++-mapper-server fails when cross compiling to Windows
@ 2020-12-21 10:30 markus.boeck02 at gmail dot com
  2020-12-21 10:42 ` [Bug c++/98409] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: markus.boeck02 at gmail dot com @ 2020-12-21 10:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98409
           Summary: Installing g++-mapper-server fails when cross
                    compiling to Windows
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: markus.boeck02 at gmail dot com
  Target Milestone: ---

Current version of trunk GCC (1b021bbd85a79c9d16c1359cbc23b608685dfd9f) fails
to compile when cross compiling GCC to Windows due to a install command trying
to install g++-mapper-server even though the file is named
g++-mapper-server.exe which does exist. 

 make:
/usr/bin/install: cannot stat 'g++-mapper-server': No such file or directory
make[2]: *** [../gcc/g++-mapper-server] Error 1
make[1]: *** [all-c++tools] Error 2
make[1]: *** Waiting for unfinished jobs....

Configure comment used:
../configure --target=x86_64-w64-mingw32 --host=x86_64-w64-mingw32
--disable-bootstrap --enable-libstdcxx-debug --with-tune=znver1
--prefix=/mnt/c/GCC --with-sysroot=/mnt/c/GCC-Build/NewestLinux
--with-build-sysroot=/mnt/c/GCC-Build/NewestLinux --disable-libstdcxx-pch
--disable-multilib --enable-libgomp --with-cross-host
--with-libiconv-prefix=/mnt/c/GCC-Build/NewestLinux/Libraries
--disable-libstdcxx-verbose --enable-languages=c,c++,fortran,lto,objc,obj-c++
--disable-nls --disable-win32-registry --enable-shared --with-gnu-as
--with-gnu-ld --enable-threads=posix --program-suffix=-11
--enable-version-specific-runtime-libs --with-gcc-major-version-only
--enable-__cxa_atexit --enable-plugin --program-prefix=

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows
  2020-12-21 10:30 [Bug c++/98409] New: Installing g++-mapper-server fails when cross compiling to Windows markus.boeck02 at gmail dot com
@ 2020-12-21 10:42 ` jakub at gcc dot gnu.org
  2020-12-21 10:52 ` markus.boeck02 at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-12-21 10:42 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
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 ?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows
  2020-12-21 10:30 [Bug c++/98409] New: Installing g++-mapper-server fails when cross compiling to Windows markus.boeck02 at gmail dot com
  2020-12-21 10:42 ` [Bug c++/98409] " jakub at gcc dot gnu.org
@ 2020-12-21 10:52 ` markus.boeck02 at gmail dot com
  2020-12-21 11:11 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: markus.boeck02 at gmail dot com @ 2020-12-21 10:52 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows
  2020-12-21 10:30 [Bug c++/98409] New: Installing g++-mapper-server fails when cross compiling to Windows markus.boeck02 at gmail dot com
  2020-12-21 10:42 ` [Bug c++/98409] " jakub at gcc dot gnu.org
  2020-12-21 10:52 ` markus.boeck02 at gmail dot com
@ 2020-12-21 11:11 ` jakub at gcc dot gnu.org
  2020-12-21 13:08 ` nathan at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-12-21 11:11 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
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@

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows
  2020-12-21 10:30 [Bug c++/98409] New: Installing g++-mapper-server fails when cross compiling to Windows markus.boeck02 at gmail dot com
                   ` (2 preceding siblings ...)
  2020-12-21 11:11 ` jakub at gcc dot gnu.org
@ 2020-12-21 13:08 ` nathan at gcc dot gnu.org
  2020-12-21 13:42 ` cvs-commit at gcc dot gnu.org
  2020-12-21 13:43 ` nathan at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-21 13:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
It's me having a thinko about case sensitivity.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows
  2020-12-21 10:30 [Bug c++/98409] New: Installing g++-mapper-server fails when cross compiling to Windows markus.boeck02 at gmail dot com
                   ` (3 preceding siblings ...)
  2020-12-21 13:08 ` nathan at gcc dot gnu.org
@ 2020-12-21 13:42 ` cvs-commit at gcc dot gnu.org
  2020-12-21 13:43 ` nathan at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-21 13:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nathan@gcc.gnu.org>:

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

commit r11-6284-ge4043c636cef8d18074ce6865ed3271283f52bb5
Author: Nathan Sidwell <nathan@acm.org>
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/98409] Installing g++-mapper-server fails when cross compiling to Windows
  2020-12-21 10:30 [Bug c++/98409] New: Installing g++-mapper-server fails when cross compiling to Windows markus.boeck02 at gmail dot com
                   ` (4 preceding siblings ...)
  2020-12-21 13:42 ` cvs-commit at gcc dot gnu.org
@ 2020-12-21 13:43 ` nathan at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-21 13:43 UTC (permalink / raw)
  To: gcc-bugs

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

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #6 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed
 e4043c636ce 2020-12-21 | c++tools: Fix exe suffix [PR 98409]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-12-21 13:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 10:30 [Bug c++/98409] New: Installing g++-mapper-server fails when cross compiling to Windows markus.boeck02 at gmail dot com
2020-12-21 10:42 ` [Bug c++/98409] " jakub at gcc dot gnu.org
2020-12-21 10:52 ` markus.boeck02 at gmail dot com
2020-12-21 11:11 ` jakub at gcc dot gnu.org
2020-12-21 13:08 ` nathan at gcc dot gnu.org
2020-12-21 13:42 ` cvs-commit at gcc dot gnu.org
2020-12-21 13:43 ` nathan at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).