From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 296273857C50 for ; Thu, 10 Sep 2020 15:35:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 296273857C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=eliz@gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]:60977) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGObj-0001Vt-UA for gdb-patches@sourceware.org; Thu, 10 Sep 2020 11:35:31 -0400 Received: from [176.228.60.248] (port=3958 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kGObh-0008Cp-Nx for gdb-patches@sourceware.org; Thu, 10 Sep 2020 11:35:30 -0400 Date: Thu, 10 Sep 2020 18:35:34 +0300 Message-Id: <83tuw5ir09.fsf@gnu.org> From: Eli Zaretskii To: gdb-patches@sourceware.org Subject: Problem building today's snapshot with MinGW X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2020 15:35:34 -0000 At Joel's request, I've built today's snapshot of the GDB master branch using mingw.org's MinGW, and found a problem when running the produced gdb.exe on versions of Windows older than 8.0 (in my case it was XP). The details are described in my report to the Gnulib folks: https://lists.gnu.org/archive/html/bug-gnulib/2020-09/index.html The provisional patch I used to solve this problem is this: --- gnulib/import/stat-w32.c~ 2020-09-10 04:47:11.000000000 +0300 +++ gnulib/import/stat-w32.c 2020-09-10 16:05:46.789125000 +0300 @@ -20,10 +20,14 @@ #if defined _WIN32 && ! defined __CYGWIN__ +#if _GL_WINDOWS_STAT_INODES == 2 /* Ensure that defines FILE_ID_INFO. */ -#if !defined _WIN32_WINNT || (_WIN32_WINNT < _WIN32_WINNT_WIN8) -# undef _WIN32_WINNT -# define _WIN32_WINNT _WIN32_WINNT_WIN8 +# if !defined _WIN32_WINNT || (_WIN32_WINNT < _WIN32_WINNT_WIN8) +# undef _WIN32_WINNT +# define _WIN32_WINNT _WIN32_WINNT_WIN8 +# endif +#elif !defined VOLUME_NAME_NONE +# define VOLUME_NAME_NONE 0x4 #endif #include