public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110385] New: Build of MinGW g++ 13.1.0 fails due to absence of a header file.
@ 2023-06-24  0:35 kclifford at tranaptic dot ca
  2023-06-24  0:43 ` [Bug c++/110385] " pinskia at gcc dot gnu.org
  2023-06-24  0:45 ` [Bug bootstrap/110385] " pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: kclifford at tranaptic dot ca @ 2023-06-24  0:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110385
           Summary: Build of MinGW g++ 13.1.0 fails due to absence of a
                    header file.
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kclifford at tranaptic dot ca
  Target Milestone: ---

I was building g++ after building newlib. The build failed because a header
file wasn't found.

Build system: CYGWIN_NT-10.0-19045 Keith-PC 3.4.6-1.x86_64 2023-02-14 13:23 UTC
x86_64 Cygwin
Target: arm-eabi, m68k-elf, and powerpc-eabi

Using built-in specs.
COLLECT_GCC=arm-eabi-gcc
COLLECT_LTO_WRAPPER=C:/gcc/MinGW-arm-eabi-13.1.0/bin/../libexec/gcc/arm-eabi/13.1.0/lto-wrapper.exe
Target: arm-eabi
Configured with: /home/cross-gcc/gcc/configure --build=i686-w64-mingw32
--host=i686-w64-mingw32 --target=arm-eabi --enable-__cxa_atexit
--with-pkgversion=Tranaptic-2023/06/16-04:39:28 --with-bugurl=none
--enable-languages=c,c++ --enable-interwork --enable-multilib --with-gcc
--with-gnu-ld --with-gnu-as --with-stabs --disable-shared --disable-threads
--disable-win32-registry --disable-nls --with-newlib
--with-gmp=/home/cross-gcc/13.1.0/cross-local
--with-mpfr=/home/cross-gcc/13.1.0/cross-local
--with-mpc=/home/cross-gcc/13.1.0/cross-local
--with-isl=/home/cross-gcc/13.1.0/cross-local
--prefix=/home/cross-gcc/13.1.0/arm-eabi -v
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 13.1.0 (Tranaptic-2023/06/16-04:39:28)


I modified the following files as follows to get the build to work:

diff --git a/libgcc/configure b/libgcc/configure
index be5d45f1755..4e75ece8e24 100755
--- a/libgcc/configure
+++ b/libgcc/configure
@@ -5700,6 +5700,7 @@ case $target_thread_file in
     vxworks)   thread_header=config/gthr-vxworks.h ;;
     win32)     thread_header=config/i386/gthr-win32.h ;;
     mcf)       thread_header=config/i386/gthr-mcf.h ;;
+    *) thread_header=gthr-single.h ;;
 esac


diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 68ee94c9e28..7c51d3cee87 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -15810,6 +15810,7 @@ case $target_thread_file in
     vxworks)   thread_header=config/gthr-vxworks.h ;;
     win32)     thread_header=config/i386/gthr-win32.h ;;
     mcf)       thread_header=config/i386/gthr-mcf.h ;;
+    *) thread_header=gthr-single.h ;;
 esac

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

* [Bug c++/110385] Build of MinGW g++ 13.1.0 fails due to absence of a header file.
  2023-06-24  0:35 [Bug c++/110385] New: Build of MinGW g++ 13.1.0 fails due to absence of a header file kclifford at tranaptic dot ca
@ 2023-06-24  0:43 ` pinskia at gcc dot gnu.org
  2023-06-24  0:45 ` [Bug bootstrap/110385] " pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-24  0:43 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-06-24
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It should have matched this line:
    single)     thread_header=gthr-single.h ;;

I am suspecting you are intermixing cgywin and mingw env which is not a valid
thing to do as they have different type of line endings and don't handle each
other.

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

* [Bug bootstrap/110385] Build of MinGW g++ 13.1.0 fails due to absence of a header file.
  2023-06-24  0:35 [Bug c++/110385] New: Build of MinGW g++ 13.1.0 fails due to absence of a header file kclifford at tranaptic dot ca
  2023-06-24  0:43 ` [Bug c++/110385] " pinskia at gcc dot gnu.org
@ 2023-06-24  0:45 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-24  0:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>--build=i686-w64-mingw32 --host=i686-w64-mingw32

But your build env is cygwin ...

What is the output of "gcc -v"

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

end of thread, other threads:[~2023-06-24  0:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-24  0:35 [Bug c++/110385] New: Build of MinGW g++ 13.1.0 fails due to absence of a header file kclifford at tranaptic dot ca
2023-06-24  0:43 ` [Bug c++/110385] " pinskia at gcc dot gnu.org
2023-06-24  0:45 ` [Bug bootstrap/110385] " pinskia 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).