From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.bugs Subject: bug#62792: Emacs 29.0.90 build fails Date: Wed, 12 Apr 2023 11:16:08 -0700 Message-ID: References: <83bkjt6rpk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a07cbe05f9279a55" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26068"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62792@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 12 20:17:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmf21-0006Wh-7n for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Apr 2023 20:17:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmf1m-0002Gj-NJ; Wed, 12 Apr 2023 14:17:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmf1j-0002Ga-Vu for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 14:17:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmf1j-0004gS-EP for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 14:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmf1i-0004Gs-GA for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 14:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tak Ota Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Apr 2023 18:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62792 X-GNU-PR-Package: emacs Original-Received: via spool by 62792-submit@debbugs.gnu.org id=B62792.168132338916374 (code B ref 62792); Wed, 12 Apr 2023 18:17:02 +0000 Original-Received: (at 62792) by debbugs.gnu.org; 12 Apr 2023 18:16:29 +0000 Original-Received: from localhost ([127.0.0.1]:41772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmf1A-0004G2-KF for submit@debbugs.gnu.org; Wed, 12 Apr 2023 14:16:29 -0400 Original-Received: from mail-oo1-f48.google.com ([209.85.161.48]:33421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmf14-0004Fm-ML for 62792@debbugs.gnu.org; Wed, 12 Apr 2023 14:16:26 -0400 Original-Received: by mail-oo1-f48.google.com with SMTP id q9-20020a4aa889000000b0053b59893660so1881792oom.0 for <62792@debbugs.gnu.org>; Wed, 12 Apr 2023 11:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681323377; x=1683915377; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cwmaDjUR1VoV3c0q7UoVxkK664/ElBPS0MhThsaFtgs=; b=sZVXZNWJ2l+EIeMO5oSHoIGUFhcM5Zc9JHccSuCkDdCn6rXTmAArqow+li/uVWbunx F6ezTzzG0wsj8RIywvNFYA2UQmI7RmzuYuUC1oflncgOCAcUy23TjvUmCRyRw8lNbTJk WGCe5jDrBRfhfGe8Hiy8M3EZrXhPVMBKmxYmMsDP1RSFFYw5/SioxD1XuAJYHojO2ZCT gCoP/PbGrtbjMpBF1LS0e5MK2mgaDan4rwAZhJ6JLK0AxoM6bJQriqOp7xmS56RE61G6 4HX1hlKcKf/7Bbya+L2lmnrT7BRorIM+mbiICpsTSf5ZMHTd5U4UnUBPpUWyu5ZG2eGO LZ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681323377; x=1683915377; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cwmaDjUR1VoV3c0q7UoVxkK664/ElBPS0MhThsaFtgs=; b=k9PrRZ7oCsil0nt/sgLYKSmakYz8VH0ydI642G77MlhbjT0NWdfSodNJ8o6eONaZRS phko1MhUMeJHq4qJuOFJsuz4zgpvMa6l1JbtTJmf8WPaN5wljYazB8nzHR5yXr5DHdWH vdE7QKCKnuyEVCv9rVKlzqZH7qf/UsB0M67W6A6Rz2f4uu0c42W7f48MF8ssc8TUTn1/ h4XTKapxnZ+1wSZqan6SxG0B/Pl7cikaJFpBXi1PftC0B6IOV61gJ6GBXMk/xK3/DvUb Q/gl4rkdizkQcMAefefi1GB7No/OhJ6jgQVXijmpyUEhRLBAv05CSUCxwNgwi92yzB1O vbXA== X-Gm-Message-State: AAQBX9erpRtmpKXlWBakih5p8c96ECwG+nNAMKvieQAIzHqW/xMx8goW Nx8ZCZ7AF8CHO4fPwQNZKD8+W47LX0nmolLmsQTElbOq78qS3w== X-Google-Smtp-Source: AKy350aAqzmysyZ1iyoValrL/l265CEZFTYpDgCL8pqgAIFaYHlX9uyCbq/HYQLEHgmLigCgTyI1hSu4YrTWeQ+1iZk= X-Received: by 2002:a4a:be1a:0:b0:542:1db6:ed6a with SMTP id l26-20020a4abe1a000000b005421db6ed6amr103238oop.0.1681323376798; Wed, 12 Apr 2023 11:16:16 -0700 (PDT) In-Reply-To: <83bkjt6rpk.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259795 Archived-At: --000000000000a07cbe05f9279a55 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Here is my MinGW information. ota@Tak-Dell-XPS15 /c/d/pub/emacs/emacs-29.0.90 $ which gcc /mingw/bin/gcc.exe ota@Tak-Dell-XPS15 /c/d/pub/emacs/emacs-29.0.90 $ gcc --version gcc.exe (GCC) 5.3.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ota@Tak-Dell-XPS15 /c/d/pub/emacs/emacs-29.0.90 $ gcc -v Using built-in specs. COLLECT_GCC=3DC:\MinGW\bin\gcc.exe COLLECT_LTO_WRAPPER=3Dc:/mingw/bin/../libexec/gcc/mingw32/5.3.0/lto-wrapper= .exe Target: mingw32 Configured with: ../src/gcc-5.3.0/configure --build=3Dx86_64-pc-linux-gnu --host=3Dmingw32 --prefix=3D/mingw --disable-win32-registry --target=3Dming= w32 --with-arch=3Di586 --enable-languages=3Dc,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libintl-prefix=3D/mingw --enable-libstdcxx-debug --with-tune=3Dgener= ic --enable-libgomp --disable-libvtv --enable-nls : (reconfigured) ../src/gcc-5.3.0/configure --build=3Dx86_64-pc-linux-gnu --host=3Dmingw32 --prefix=3D/mingw --disable-win32-registry --target=3Dmingw32 --with-arch= =3Di586 --enable-languages=3Dc,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=3D/mingw --with-libintl-prefix=3D/mingw --enable-libstdcxx-debug --with-tune=3Dgener= ic --enable-libgomp --disable-libvtv --enable-nls Thread model: win32 gcc version 5.3.0 (GCC) On Wed, Apr 12, 2023 at 8:32=E2=80=AFAM Eli Zaretskii wrote: > > From: Tak Ota > > Date: Tue, 11 Apr 2023 11:16:28 -0700 > > > > When attempted to build using MinGW the next section of code in > src/w32.c conflicts with the definition > > in MinGW/include/wincon.h > > Thank you for your report. > > Please show the exact compilation error message you get due to this > conflict. I don't see any errors here, and Emacs 29 compiles with > MinGW flawlessly here. > > > This typedef was not in src/w32.c of Emacs 28.2. > > > > #if _WIN32_WINNT < 0x0501 > > typedef struct > > { > > DWORD nFont; > > COORD dwFontSize; > > } CONSOLE_FONT_INFO; > > #endif > > Also, which flavor of MinGW and which version are you using? The > above should be only visible with _WIN32_WINNT that is smaller than > 0x0501, which should not happen with latest MinGW64. And looking at > the latest MinGW64 headers, I see the definition of CONSOLE_FONT_INFO > structure there that is identical to the above, so how can it > conflict? > --000000000000a07cbe05f9279a55 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here is my MinGW information.

ota@Tak-D= ell-XPS15 /c/d/pub/emacs/emacs-29.0.90
$ which gcc
/mingw/bin/gcc.exe=

ota@Tak-Dell-XPS15 /c/d/pub/emacs/emacs-29.0.90
$ gcc --version<= br>gcc.exe (GCC) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.=
This is free software; see the source for copying conditions.=C2=A0 The= re is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU= LAR PURPOSE.


ota@Tak-Dell-XPS15 /c/d/pub/emacs/emacs-29.0.90
= $ gcc -v
Using built-in specs.
COLLECT_GCC=3DC:\MinGW\bin\gcc.exe
= COLLECT_LTO_WRAPPER=3Dc:/mingw/bin/../libexec/gcc/mingw32/5.3.0/lto-wrapper= .exe
Target: mingw32
Configured with: ../src/gcc-5.3.0/configure --bu= ild=3Dx86_64-pc-linux-gnu --host=3Dmingw32 --prefix=3D/mingw --disable-win3= 2-registry --target=3Dmingw32 --with-arch=3Di586 --enable-languages=3Dc,c++= ,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads = --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-l= ibs --with-libintl-prefix=3D/mingw --enable-libstdcxx-debug --with-tune=3Dg= eneric --enable-libgomp --disable-libvtv --enable-nls : (reconfigured) ../s= rc/gcc-5.3.0/configure --build=3Dx86_64-pc-linux-gnu --host=3Dmingw32 --pre= fix=3D/mingw --disable-win32-registry --target=3Dmingw32 --with-arch=3Di586= --enable-languages=3Dc,c++,objc,obj-c++,fortran,ada --enable-static --enab= le-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable= -version-specific-runtime-libs --with-libiconv-prefix=3D/mingw --with-libin= tl-prefix=3D/mingw --enable-libstdcxx-debug --with-tune=3Dgeneric --enable-= libgomp --disable-libvtv --enable-nls
Thread model: win32
gcc version= 5.3.0 (GCC)


<= div dir=3D"ltr" class=3D"gmail_attr">On Wed, Apr 12, 2023 at 8:32=E2=80=AFA= M Eli Zaretskii <eliz@gnu.org> wr= ote:
> From: = Tak Ota <taka= aki.ota@gmail.com>
> Date: Tue, 11 Apr 2023 11:16:28 -0700
>
> When attempted to build using MinGW the next section of code in src/w3= 2.c conflicts with the definition
> in MinGW/include/wincon.h

Thank you for your report.

Please show the exact compilation error message you get due to this
conflict.=C2=A0 I don't see any errors here, and Emacs 29 compiles with=
MinGW flawlessly here.

> This typedef was not in src/w32.c of Emacs 28.2.
>
> #if _WIN32_WINNT < 0x0501
> typedef struct
> {
>=C2=A0 =C2=A0DWORD nFont;
>=C2=A0 =C2=A0COORD dwFontSize;
> } CONSOLE_FONT_INFO;
> #endif

Also, which flavor of MinGW and which version are you using?=C2=A0 The
above should be only visible with _WIN32_WINNT that is smaller than
0x0501, which should not happen with latest MinGW64.=C2=A0 And looking at the latest MinGW64 headers, I see the definition of CONSOLE_FONT_INFO
structure there that is identical to the above, so how can it
conflict?
--000000000000a07cbe05f9279a55--