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

Reply via email to