From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wsw0108@qq.com Newsgroups: gmane.emacs.devel Subject: Re: branch emacs-28 build broken on MinGW64 with gcc 11 Date: Tue, 23 Nov 2021 22:42:13 +0800 Message-ID: References: <838rxfow9c.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39924"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (windows-nt) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 23 15:45:35 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 1mpX39-000A6c-Ce for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Nov 2021 15:45:35 +0100 Original-Received: from localhost ([::1]:37580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpX37-0007FV-Im for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Nov 2021 09:45:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpX0D-0004j4-CN for emacs-devel@gnu.org; Tue, 23 Nov 2021 09:42:33 -0500 Original-Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:35519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpX03-0004M9-63 for emacs-devel@gnu.org; Tue, 23 Nov 2021 09:42:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1637678536; bh=nWqIQkTDrOsB63ps8hDZLtXrv/A17JI+GsbFExT0/5Y=; h=From:To:Subject:References:Date:In-Reply-To; b=TbWdDl5mu6hLgBj/Nh9HUXBFAl5QO6OXmRngQWIbJyZRXhw9ohUAKih8vt/uhfo7U Bw9couUjyl81tFd+uf2Xty5xxW5KTP/JxBGyofZvfc5iHR/X1YMmB1iG104OMDI83L kbLXnNzotz8iMsP3JJE0wixPBrAXvMycU44rlV+s= Original-Received: from DESKTOP-B4R3B83 ([27.18.51.212]) by newxmesmtplogicsvrszc6.qq.com (NewEsmtp) with SMTP id A8E1D20E; Tue, 23 Nov 2021 22:42:14 +0800 X-QQ-mid: xmsmtpt1637678534t7mgk02kx X-QQ-XMAILINFO: NIbHSc2ysKlD2hXEhGX/IhOkawsCod6KwUIexW7NUiuCh6zlE2ngL+CoBiaIFB xto3E/WPnu3h7ihOCHsVgnyiK2qvBDcu/K5ydhpobpL0xTx+tANpJjaCtBb2TRmeT/sO+dzNJiXy Ekrp47WU1z4Tm/NWTer7RN9A9Ri0u0nhR/k51q3tG56wSxRlLrMyQCGmXCRWbR51QtVU29tHJnpf LGcsD9msEt6f1zCHFHtnrWFfLz+GfaIWk1tLuAg3hqg8T0ehOlPWvD4WjVHen8L9HH349lkux4f+ qW5k01NNNSbJJHVAAFvl8XxreJ7l/RC59JLE5ztu76rXDeJJ1g9tX4rRhgFudsJGl7adIYKYbdG0 JMNkytSL2Jjs/eA98YNxO2eY41SuggZMyjUiyuBsAdIUEhnPUwTbT9PVK9IX9ekBMrCP4UDY87Oi caZ+FKFrjnRJDIR5aShXgbAJnZOBhLpBxRJc/MnXr+w9RkGhvYsxYhiicLlg0qYISnlRsWyaj6+M 1WydKXUHoJNc+5AYUoWsr94gwfxYd08Y5ghEYKkve+WqB/7ArNQ80Jp89RLAjGoIsqJFwYlvM4nq AUYelHp/XY6y/Ak3PmPzZ7UrXt/n8yPLdOJezkY3JG4yeU0ni0Dta7WjWmCZIqU1fVB64stiPe85 dGOsCqY00dKPZ5r6v99IT9Y8N1hehLY0nozzOGjoGfPitZYTDKF9geKvvw8XwA/ri8aZVcW5x33w 9oFazrDQkdKQwbZjf9BMdyK6eRCbku0W3UXFzAt1GftGSHZdOaJNnJrE/YEF37bTGVJ+fIjwTI1d DL3ODycQzuLotJC64r4BP62f9c6iNrcw/jPaIQVT In-Reply-To: <838rxfow9c.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Nov 2021 15:07:59 +0200") Original-Message-ID: <86y25flyre.fsf@qq.com> Received-SPF: pass client-ip=162.62.57.252; envelope-from=wsw0108@qq.com; helo=out162-62-57-252.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 23 Nov 2021 09:44:06 -0500 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:279956 Eli Zaretskii writes: >> 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. Sorry, it's my mistake. After run 'git clean -fdx', the building process can continue without errors.