From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gary Oberbrunner Newsgroups: gmane.emacs.devel Subject: Building latest on Windows: error in unistd.h Date: Wed, 22 Sep 2021 13:01:22 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005f198105cc98773b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34940"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 22 19:04:37 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 1mT5fg-0008nx-Ih for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Sep 2021 19:04:36 +0200 Original-Received: from localhost ([::1]:43122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mT5fe-0000ML-QW for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Sep 2021 13:04:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mT5cq-0007C5-DB for emacs-devel@gnu.org; Wed, 22 Sep 2021 13:01:40 -0400 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:43675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mT5cm-0001kR-VU for emacs-devel@gnu.org; Wed, 22 Sep 2021 13:01:39 -0400 Original-Received: by mail-ed1-x52c.google.com with SMTP id v10so7811642edj.10 for ; Wed, 22 Sep 2021 10:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oberbrunner.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=ll5OTNG6ngNVcYnO75tkrRcmX15K4+ODR49OF7xbt0A=; b=BKSHaG5Gs5l5EBECKWYFpXVZdQwYPQQfavtR47CXGEv6e9ks16TlNqWkeKR6Vymq1r /Mc7MzcGjE63229KEPb44FtRMChsRA05K8+QhQff8pPftxxMrbvS+YAbn8lgKb4L95zk UO/oYAgL2AjM1Ch5q4grFvQH0DcT00lgInBA91hKM27DIFE90zC40D7k+9tL3ufjV8FC q5Ot/XRmW0mwX1XSHwrg11K0XqUg6xoZrNtv031T9r9HKAn/WbN7tpuXJfgo2QRTnVSb dewgVqIsjdgIXSyeg5FVHYLodVNqGMWs1832qYs97TfE+NWzkbn+w0H7LPhPYkKQ4X9M aDOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ll5OTNG6ngNVcYnO75tkrRcmX15K4+ODR49OF7xbt0A=; b=hvQ464V7J53eVXkOspbPEGy5QtYaGixiLmzUUCjoyUHNG8V9DMQDcgrYmXF8vjXPvE mXFsGKGV9g75Z65aJeBs5tPibXf6pjl7Its5gDm0SFN14I9nNKAw+HM152dR2+uMno3g QLbo13fQZXda8H0ghF+aBWWVorW6z3Mf+auuMhDSqSqut5GAFaobbkd9zQpko1Rr2CP4 HZScVWieiBOMuDY0kN4ogKKsqbBda+kRDu0jMDphaf6sRjgBVYE+18aBrU6we1d4Ve5g giQOGENVXm5hYa8BrBaGVgVDrL4EaqHCuvveyVxl5/u1yC8ykE/KGiiy+HhLUTPXFjSz 1Ywg== X-Gm-Message-State: AOAM533c/qqtARBD2sA+tKLbJ/w7nzwIT9mMTwsa6AF8M34OCJSyi247 MTIfDNDfGemd2F7StaAiQJXibUuAFJHZauwr9Gfo4jBo4cHRSQ== X-Google-Smtp-Source: ABdhPJyLOfWbR+Mi/LZqXTu+N4uAiLNlH9jqzrfHbFD9iomH1CAf6wsDebRcKoUPDPy/2T3e5UaAq2TgJTasMvh/mGw= X-Received: by 2002:a50:8405:: with SMTP id 5mr317505edp.111.1632330093364; Wed, 22 Sep 2021 10:01:33 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=garyo@oberbrunner.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:275325 Archived-At: --0000000000005f198105cc98773b Content-Type: text/plain; charset="UTF-8" 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? -- Gary --0000000000005f198105cc98773b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I just updated to the latest master (eb42c4b099c171) and d= id make bootstrap in my mingw64 terminal (Windows 10), but I get the follow= ing=C2=A0 "Please include config.h first" error:

make[2]= : Entering directory '/c/Users/garyo/src/emacs/emacs/lib-src'
= =C2=A0 CC =C2=A0 =C2=A0 =C2=A0 ntlib.o
In file included from ../lib/time= .h:44,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fro= m ntlib.c:26:
../lib/unistd.h:660:3: error: #error "Please include = config.h first."
=C2=A0 660 | =C2=A0#error "Please include con= fig.h first."
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 ^~~~~
../lib/unistd.= h:662:24: error: expected ';' before 'extern'
=C2=A0 662= | _GL_INLINE_HEADER_BEGIN
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^
=C2=A0 = =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0;
In file included from ../lib/time.h:47,
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from ntlib.c:26:=
C:/msys64/mingw64/x86_64-w64-mingw32/include/time.h:24:9: error: expect= ed '=3D', ',', ';', 'asm' or '__attribu= te__' before '#pragma'
=C2=A0 =C2=A024 | #pragma pack(push,_= CRT_PACKING)
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~
= make[2]: *** [Makefile:418: ntlib.o] Error 1

My co= nfigure line looks like this:

./configure --with-jpeg --= with-xpm --with-png --with-tiff --with-rsvg --with-xml2 --with-gnutls --wit= hout-imagemagick --prefix=3Dc:/emacs/emacs-trunk-2021

Something missing/misconfigured on my end I guess?

--
Gary
--0000000000005f198105cc98773b--