From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: branch emacs-28 build broken on MinGW64 with gcc 11 Date: Tue, 23 Nov 2021 15:07:59 +0200 Message-ID: <838rxfow9c.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33727"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: wsw0108@qq.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 23 14:09:23 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mpVY2-0008bu-2l for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Nov 2021 14:09:22 +0100 Original-Received: from localhost ([::1]:50754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpVY0-0001PP-Bk for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Nov 2021 08:09:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpVWa-0000iC-BM for emacs-devel@gnu.org; Tue, 23 Nov 2021 08:07:52 -0500 Original-Received: from [2001:470:142:3::e] (port=44662 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpVWX-00069P-R5; Tue, 23 Nov 2021 08:07:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0cg9cGzRWCVxopcDF/moCCjgp5Dy0H9F2ny8eSJuRXs=; b=bhBLXWHtt58G Pb9kxH5fXCvdxvJJs8bqakOMddbjE8Vg2/2WJ2pv79JZEiDCOgNDX+17VUwRMbeWO2Cz23AAbVzba o6e84IZxbaFpbRqgROE6VDwv0xZjWHyrtfF1dSp98ZljTlX7kLBMiQlvWKxdRZgW2EGM0MXhw4Kzt bIqQStJiIhjCovUXQELW6JdXirO8VKmogW4L61yFBut1vtUzt61b33TYwv4SLVYwhwpwh/0fB3A4h y0gBSPUXvK8M14pa+/P0Oxno9QNBfKDTJkGbfKRtTLaBApyEQzSsrnmEpZIml6Gpby3D/IfaKsiop ndmNAG4lxxhHlQJhfN1NIA==; Original-Received: from [87.69.77.57] (port=2743 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpVWX-0007Gr-Gx; Tue, 23 Nov 2021 08:07:49 -0500 In-Reply-To: (wsw0108@qq.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:279948 Archived-At: > From: wsw0108@qq.com > Date: Tue, 23 Nov 2021 20:19:49 +0800 > > The error messages as below: > > $ make > make -C nt all > make[1]: Entering directory '/d/GitHub/emacs/nt' > make[1]: Nothing to be done for 'all'. > make[1]: Leaving directory '/d/GitHub/emacs/nt' > make -C lib all > make[1]: Entering directory '/d/GitHub/emacs/lib' > make[1]: Nothing to be done for 'all'. > make[1]: Leaving directory '/d/GitHub/emacs/lib' > make -C lib-src all > make[1]: Entering directory '/d/GitHub/emacs/lib-src' > CC ntlib.o > In file included from ../lib/time.h:44, > from ntlib.c:35: > ../lib/unistd.h:624:3: error: #error "Please include config.h first." > 624 | #error "Please include config.h first." > | ^~~~~ > ../lib/unistd.h:626:24: error: expected ';' before 'extern' > 626 | _GL_INLINE_HEADER_BEGIN The Gnulib's unistd.h should not be generated in the MinGW builds. The file nt/gnulib-cfg.mk has this line: OMIT_GNULIB_MODULE_unistd = true which causes the build process not to generate lib/unistd.h from lib/unistd.in.h. You need to investigate why this file was nevertheless generated on your system. Perhaps that tree was previously used for building another configuration, and you didn't say "make extraclean" before reconfiguring? Or maybe something is wrong with your build environment? I'd start with cloning a fresh Git repository and trying anew. Bottom line: the problem is most probably specific to your system. Thanks.