From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: msvc-inval.h? Date: Mon, 08 Sep 2014 08:25:07 -0500 Message-ID: <85wq9ez1l8.fsf@stephe-leake.org> References: <85k35eo8f6.fsf@stephe-leake.org> <20140908.175141.1224500602191655172.chriszheng99@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410182754 13693 80.91.229.3 (8 Sep 2014 13:25:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2014 13:25:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 08 15:25:47 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 1XQyx0-0005JY-0v for ged-emacs-devel@m.gmane.org; Mon, 08 Sep 2014 15:25:46 +0200 Original-Received: from localhost ([::1]:43336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQywz-0007bD-Jv for ged-emacs-devel@m.gmane.org; Mon, 08 Sep 2014 09:25:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQywq-0007b5-5p for emacs-devel@gnu.org; Mon, 08 Sep 2014 09:25:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQywd-0001vF-Tc for emacs-devel@gnu.org; Mon, 08 Sep 2014 09:25:36 -0400 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.228]:52580 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQywd-0001ty-OV for emacs-devel@gnu.org; Mon, 08 Sep 2014 09:25:23 -0400 Original-Received: from [70.94.38.149] ([70.94.38.149:49387] helo=TAKVER) by dnvrco-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id E6/D9-06155-04EAD045; Mon, 08 Sep 2014 13:25:20 +0000 In-Reply-To: <20140908.175141.1224500602191655172.chriszheng99@gmail.com> (Chris Zheng's message of "Mon, 08 Sep 2014 17:51:41 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) X-RR-Connecting-IP: 107.14.64.142:25 X-Authority-Analysis: v=2.1 cv=FMWVxoYs c=1 sm=1 tr=0 a=AppmJ/7ZOOFWL/q6u6u93g==:117 a=AppmJ/7ZOOFWL/q6u6u93g==:17 a=ayC55rCoAAAA:8 a=9XSUBuVRJI8A:10 a=o_R75loqY_IA:10 a=9i_RQKNPAAAA:8 a=pGLkceISAAAA:8 a=ljC33Ar82WUpSAh05_AA:9 a=MSl-tDqOz04A:10 a=FMD1XRJ_Ct4A:10 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: BaiduSpider X-Received-From: 107.14.73.228 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:174083 Archived-At: Chris Zheng writes: > From: Stephen Leake > Subject: msvc-inval.h? > Date: Mon, 08 Sep 2014 02:53:01 -0500 > > Hi Stephe, >> I'm building emacs on Windows for the very first time. >> >> dup2.c and other files requires msvc-inval.h, which is not on my system, >> and is not mentioned in nt/INSTALL. >> >> I'm guessing it's a header for the Microsoft Visual C++ runtime library. >> >> I can't figure out where to get that from. > If you are using the POSIX-like build method with MSYS or MSYS2, the > following information should be valuable. When build with MSYS and > MinGW, dup2.c is not needed since the test was normally skipped. The > most possible reason you see this error is the missing of the MSYSTEM. > To see whether it is the cause, you can set MSYSTEM to `MINGW32' or > `MINGW64' and try again. Hope it helps. Thanks, that helped. I'm using Msys2. I prefer to run the msys shell under Emacs (of course :), so I had set up a function to do that previously, while working on montone. At that time, mingw64_shell.bat set MSYSTEM to MSYS, so that's what my function does. I've changed it to MINGW64, and make is no longer trying to compile dup2.c; it completes with no error. I'll add this to my install notes. I'm still curious what msvc-inval.h is. I'm now guessing it is used when compiling Emacs with Microsoft Visual C++? -- -- Stephe