unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* msvc-inval.h?
@ 2014-09-08  7:53 Stephen Leake
  2014-09-08  9:51 ` msvc-inval.h? Chris Zheng
  2014-09-08 11:11 ` msvc-inval.h? Óscar Fuentes
  0 siblings, 2 replies; 6+ messages in thread
From: Stephen Leake @ 2014-09-08  7:53 UTC (permalink / raw)
  To: emacs-devel

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. 

The Microsoft support knowledge base says how to download the runtime
library itself (http://support.microsoft.com/kb/259403), but not where
to get the dev package. The implication is they assume I'm using the 
Microsoft Visual C++ IDE.

Is there some standard place to get the dev package for open source use?

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: msvc-inval.h?
  2014-09-08  7:53 msvc-inval.h? Stephen Leake
@ 2014-09-08  9:51 ` Chris Zheng
  2014-09-08 13:25   ` msvc-inval.h? Stephen Leake
  2014-09-08 11:11 ` msvc-inval.h? Óscar Fuentes
  1 sibling, 1 reply; 6+ messages in thread
From: Chris Zheng @ 2014-09-08  9:51 UTC (permalink / raw)
  To: stephen_leake; +Cc: emacs-devel

From: Stephen Leake <stephen_leake@stephe-leake.org>
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.

Best wishes,
Chris.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: msvc-inval.h?
  2014-09-08  7:53 msvc-inval.h? Stephen Leake
  2014-09-08  9:51 ` msvc-inval.h? Chris Zheng
@ 2014-09-08 11:11 ` Óscar Fuentes
  1 sibling, 0 replies; 6+ messages in thread
From: Óscar Fuentes @ 2014-09-08 11:11 UTC (permalink / raw)
  To: emacs-devel

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> dup2.c and other files requires msvc-inval.h, which is not on my system,
> and is not mentioned in nt/INSTALL.

Expanding the other answer: start your shell with mingw32_shell.bat,
which sets MSYSTEM env var to the correct value.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: msvc-inval.h?
  2014-09-08  9:51 ` msvc-inval.h? Chris Zheng
@ 2014-09-08 13:25   ` Stephen Leake
  2014-09-08 15:42     ` msvc-inval.h? Chris Zheng
  2014-09-09 13:23     ` msvc-inval.h? Eli Zaretskii
  0 siblings, 2 replies; 6+ messages in thread
From: Stephen Leake @ 2014-09-08 13:25 UTC (permalink / raw)
  To: emacs-devel

Chris Zheng <chriszheng99@gmail.com> writes:

> From: Stephen Leake <stephen_leake@stephe-leake.org>
> 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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: msvc-inval.h?
  2014-09-08 13:25   ` msvc-inval.h? Stephen Leake
@ 2014-09-08 15:42     ` Chris Zheng
  2014-09-09 13:23     ` msvc-inval.h? Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: Chris Zheng @ 2014-09-08 15:42 UTC (permalink / raw)
  To: stephen_leake; +Cc: emacs-devel

From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: msvc-inval.h?
Date: Mon, 08 Sep 2014 08:25:07 -0500

Hi Stephen,
> 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 use MSYS2, too.  And I'm glad to know it works. 
> 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++?
Maybe you're right, but I don't know the answer, too.

Regards,
Chris.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: msvc-inval.h?
  2014-09-08 13:25   ` msvc-inval.h? Stephen Leake
  2014-09-08 15:42     ` msvc-inval.h? Chris Zheng
@ 2014-09-09 13:23     ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2014-09-09 13:23 UTC (permalink / raw)
  To: Stephen Leake; +Cc: emacs-devel

> From: Stephen Leake <stephen_leake@stephe-leake.org>
> Date: Mon, 08 Sep 2014 08:25:07 -0500
> 
> I'm still curious what msvc-inval.h is. I'm now guessing it is used when
> compiling Emacs with Microsoft Visual C++?

Yes.

It is also a bad idea, IMNSHO: its purpose is to prevent runtime
library functions from producing fatal exceptions, which hides
important information and makes debugging during development harder.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-09 13:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-08  7:53 msvc-inval.h? Stephen Leake
2014-09-08  9:51 ` msvc-inval.h? Chris Zheng
2014-09-08 13:25   ` msvc-inval.h? Stephen Leake
2014-09-08 15:42     ` msvc-inval.h? Chris Zheng
2014-09-09 13:23     ` msvc-inval.h? Eli Zaretskii
2014-09-08 11:11 ` msvc-inval.h? Óscar Fuentes

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).