From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Latest EMACS on BZR trunk does not compile with MinGW Date: Wed, 04 Jun 2014 00:14:21 +0300 Message-ID: <83oay98zma.fsf@gnu.org> References: <80sinlu5kt.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1401830093 32701 80.91.229.3 (3 Jun 2014 21:14:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2014 21:14:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vincent =?iso-8859-1?Q?Bela=EFche?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 03 23:14:44 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wrw2d-0006ka-VI for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2014 23:14:44 +0200 Original-Received: from localhost ([::1]:56012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrw2d-0001Jg-91 for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2014 17:14:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrw2U-0001G8-3y for emacs-devel@gnu.org; Tue, 03 Jun 2014 17:14:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wrw2O-0000vi-1Q for emacs-devel@gnu.org; Tue, 03 Jun 2014 17:14:34 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:47391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrw2N-0000vd-PF for emacs-devel@gnu.org; Tue, 03 Jun 2014 17:14:27 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N6M00D001Z7X000@mtaout29.012.net.il> for emacs-devel@gnu.org; Wed, 04 Jun 2014 00:14:54 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6M009F630TOB90@mtaout29.012.net.il>; Wed, 04 Jun 2014 00:14:54 +0300 (IDT) In-reply-to: <80sinlu5kt.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172321 Archived-At: > From: Vincent Bela=EFche =20 > Date: Tue, 03 Jun 2014 22:00:02 +0200 >=20 > Here is what I get: >=20 > dup2.c:35:0: warning: "WIN32_LEAN_AND_MEAN" redefined [enabled by d= efault] > c:/Programme/GNU/installation/emacs-install/emacs/trunk/nt/inc/ms-w= 32.h:148:0: note: this is the location of the previous definition > dup2.c:38:26: fatal error: msvc-inval.h: No such file or directory > compilation terminated. lib/dup2.c isn't supposed to be compiled in the MinGW build. My config.log says: configure:23230: checking whether dup2 works configure:23307: result: yes Please look at yours to find out why it thought dup2 didn't work, and tried to build a gnulib "replacement". > msvc-inval.h, given its naming, is probably a file from the MS Visu= al C > compiler suite No, it's a gnulib file which is not imported from gnulib, because dup2.c shouldn't be compiled on Windows. > Maybe the =20 >=20 > `&& ! defined __CYGWIN__' >=20 > wherever used in this file for this topic should be replaced by >=20 > `&& defined _MSC_VER'=20 >=20 > or something like that --- I cannot remember exactly the #definitio= n > that one can use to detect MSVC compiler. >=20 > An alternative would be to use >=20 > `&& ! defined __CYGWIN__ && ! defined __MINGW32__' >=20 > but well, if the msvc_xxx.h file are MSVC specific, I would prefer = the > other one. We don't want lib/dup2.c on Windows, the one that comes with the usua= l runtime is good enough.