all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Gary Oberbrunner <garyo@oberbrunner.com>
Cc: emacs-devel@gnu.org
Subject: Re: Building latest on Windows: error in unistd.h
Date: Wed, 22 Sep 2021 20:33:15 +0300	[thread overview]
Message-ID: <834kacwm5g.fsf@gnu.org> (raw)
In-Reply-To: <CAFChFyih6hOiBPSovyk=kt0nYGjTsVWGCfd8bv=Lh=yPmhrjFQ@mail.gmail.com> (message from Gary Oberbrunner on Wed, 22 Sep 2021 13:01:22 -0400)

> From: Gary Oberbrunner <garyo@oberbrunner.com>
> Date: Wed, 22 Sep 2021 13:01:22 -0400
> 
> I just updated to the latest master (eb42c4b099c171) and did make bootstrap in my mingw64 terminal
> (Windows 10), but I get the following  "Please include config.h first" error:
> 
> make[2]: Entering directory '/c/Users/garyo/src/emacs/emacs/lib-src'
>   CC       ntlib.o
> In file included from ../lib/time.h:44,
>                  from ntlib.c:26:
> ../lib/unistd.h:660:3: error: #error "Please include config.h first."
>   660 |  #error "Please include config.h first."
>       |   ^~~~~
> ../lib/unistd.h:662:24: error: expected ';' before 'extern'
>   662 | _GL_INLINE_HEADER_BEGIN
>       |                        ^
>       |                        ;
> In file included from ../lib/time.h:47,
>                  from ntlib.c:26:
> C:/msys64/mingw64/x86_64-w64-mingw32/include/time.h:24:9: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '#pragma'
>    24 | #pragma pack(push,_CRT_PACKING)
>       |         ^~~~
> make[2]: *** [Makefile:418: ntlib.o] Error 1
> 
> My configure line looks like this:
> 
> ./configure --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2 --with-gnutls
> --without-imagemagick --prefix=c:/emacs/emacs-trunk-2021
> 
> Something missing/misconfigured on my end I guess?

How come lib/unistd.h is at all generated and used in your MinGW
build?  It isn't supposed to be, we use unistd.h that comes with
MinGW.

Please try to figure out why configure decided to generate
lib/unistd.h.  Crystal ball says you updated your MinGW64 headers not
long ago, and something there causes that.



  reply	other threads:[~2021-09-22 17:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-22 17:01 Building latest on Windows: error in unistd.h Gary Oberbrunner
2021-09-22 17:33 ` Eli Zaretskii [this message]
2021-09-22 17:38   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=834kacwm5g.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=garyo@oberbrunner.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.