From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: edouard debry Newsgroups: gmane.emacs.bugs Subject: bug#45303: #45303 [feature/native-comp] building error on Windows Date: Sat, 26 Dec 2020 15:58:30 +0100 Message-ID: References: <6HNZxbkVfqHfTgtuHlg6wDQ-5-IO2RJ3Gfl2yB1EDgMj9jxk1OXCDkH3C39wGF6on6DXntrjHR2xJ0IxI0WaYCeuwqOXGz_rztdgkalA3Z8=@pm.me> <838s9pr2x5.fsf@gnu.org> <83v9colk6y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000dc433e05b75f46ec" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20082"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gliao.tw@pm.me, pcfeb0009@gmx.com, 45303@debbugs.gnu.org, Andrea Corallo To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 26 17:16:34 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ktCF7-00055f-TE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Dec 2020 17:16:34 +0100 Original-Received: from localhost ([::1]:44026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktCF6-0005RK-Pw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Dec 2020 11:16:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktCEd-0005R0-CM for bug-gnu-emacs@gnu.org; Sat, 26 Dec 2020 11:16:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktCEd-0001Tl-4X for bug-gnu-emacs@gnu.org; Sat, 26 Dec 2020 11:16:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ktCEd-0006il-0b for bug-gnu-emacs@gnu.org; Sat, 26 Dec 2020 11:16:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: edouard debry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Dec 2020 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45303 X-GNU-PR-Package: emacs Original-Received: via spool by 45303-submit@debbugs.gnu.org id=B45303.160899935125805 (code B ref 45303); Sat, 26 Dec 2020 16:16:02 +0000 Original-Received: (at 45303) by debbugs.gnu.org; 26 Dec 2020 16:15:51 +0000 Original-Received: from localhost ([127.0.0.1]:59812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktCEQ-0006i4-Ll for submit@debbugs.gnu.org; Sat, 26 Dec 2020 11:15:51 -0500 Original-Received: from mail-ej1-f41.google.com ([209.85.218.41]:38110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktB1s-0004rE-6L for 45303@debbugs.gnu.org; Sat, 26 Dec 2020 09:58:48 -0500 Original-Received: by mail-ej1-f41.google.com with SMTP id 6so8935675ejz.5 for <45303@debbugs.gnu.org>; Sat, 26 Dec 2020 06:58:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Dn3+NqQlkpZMoVqMOgqfXjc7d+3yRjCLRLA9DN5EcQw=; b=SHzc9G/x/9uIXJQ/xTpjogOKO+u2DMokE770uZU0sBlQXMZCyvsluwt5TsmfnoJYC6 a8FOSDXx221LaJeLmgEuW0FFkgQTlI6pL/u9g8z+RBp+18ootl62xscSo2ZeZ2gszBEr lvaWaBDuV8/YGBTRorfXXXbRlRNoZM4I60EHsJT/Wb4/UDx5OnwsMWE7MYTaRaw0tLsh v/coDam9/N6R23lF7wntIqfMtYB/kZ2Ttxt8Hefpa/TM8KXhZ+TXXHVqaSUS2TqPyiVc stY+By1YYDiIHFZGXU03i33RIbon2gvqqtEOoJRt21IYjlQFBS/oVoxlXiqiKHPNdwlb LObQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Dn3+NqQlkpZMoVqMOgqfXjc7d+3yRjCLRLA9DN5EcQw=; b=Kg6oHGbu25hD65Mi0Co8LaudAXT3kJ7Gl2/KGQm6HnYFyXca1D0eP4MQsUSDO2YiZt ubVdBNZitoMcAtNTpf9zqwuFpnJ3rZtx82CrWwtM+4cwDb72ZRh55gsqQ4ppkgMYvwnE DF7IB/cS6TCUVbSDRUZlFjCk8o0eL4xMChY4ljuiHN7I177YoQmAZm61EF8oyUiIIvwI mCNRXrY3MHxP1rc2UZuq/Fin6H75XiwBh7wVd0r/YLWWzuryg/oVnOIINlQotL1l29E2 HMa6oUNDMMum7d3+CkZde6fuW6Iz7R5n3Llqnc4uS0Eg0UeheA4YPv+7jD9RjqUll0p0 PxYg== X-Gm-Message-State: AOAM532Ic2ytDqh5V4ri526Mi4IvCd2q6HtJe3Z+kQPueaSn0bNxa1gp 9TMrBjG+1xe1+uBQzOtKJiNbpicGimN6HG8KxRU= X-Google-Smtp-Source: ABdhPJyWmB0gpvcR7yddtm1DUF75EbXSfRqwceHjNZMaCysp5z7wpY/TIlwaaYJQqTNRI0BuV6lqHImqykiZ6DJAvhk= X-Received: by 2002:a17:906:4985:: with SMTP id p5mr26167259eju.513.1608994722168; Sat, 26 Dec 2020 06:58:42 -0800 (PST) In-Reply-To: <83v9colk6y.fsf@gnu.org> X-Mailman-Approved-At: Sat, 26 Dec 2020 11:15:48 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196764 Archived-At: --000000000000dc433e05b75f46ec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Within emacs I do this : (add-to-list 'exec-path "D:/xxxx/Documents/utils/msys64/mingw64/bin") However, you were right. Adding : SET PATH=3DD:\xxxx\Documents\utils\msys64\mingw64\bin;%PATH% in the batch file ahead of emacs invocation makes it work as normal. Are there some other paths from msys or mingw I should add for emacs startup ? Regards Le sam. 26 d=C3=A9c. 2020 =C3=A0 15:24, Eli Zaretskii a =C3= =A9crit : > > From: edouard debry > > Date: Sat, 26 Dec 2020 15:02:54 +0100 > > Cc: Eli Zaretskii , gliao.tw@pm.me, pcfeb0009@gmx.com, > 45303@debbugs.gnu.org > > > > and added the absolute path of "/mingw64/bin" to the emacs exec-path. > > What does this mean, exactly? IOW, how did you add this directory to > exec-path, and why did you need to do it? > > First, "/mingw64/bin" is not a valid Windows absolute file name, since > it lacks the drive letter. > > And second, Emacs's startup code expects the directories where Emacs > should look for programs to be mentioned in the system-wide PATH > variable. If your PATH doesn't include /mingw64/bin, then you should > add it (assuming that there are program files there that Emacs is > supposed to find and use). > > > Outside of mingw64, If I just click on bin/emacs.exe I get a console > message : > > > > Warning: arch-dependent data dir > '%emacs_dir%/libexec/emacs/28.0.50/x86_64-w64-mingw32/': No such > > file or directory > > > > and an emacs abort dialog. > > > > If I launch emacs on the command line from within a mingw64 shell, it > runs well. > > Is this specific to the native-comp branch, or does it also happen if > you build and install the master branch? > --000000000000dc433e05b75f46ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Within emacs I do this :
(add-to-list '= exec-path "D:/xxxx/Documents/utils/msys64/mingw64/bin")

However, you were right. Adding :
SET PATH=3D= D:\xxxx\Documents\utils\msys64\mingw64\bin;%PATH%
=C2=A0in th= e batch file ahead of emacs invocation makes it work as normal.
<= br>
Are there some other paths from msys or mingw I should add fo= r emacs startup ?

Regards

=

Le=C2=A0sam. 26 d=C3=A9c. 2020 =C3=A0=C2=A015:24, Eli Zaretskii <eliz@gnu.org> a =C3=A9crit=C2=A0:
<= /div>
> From: edouard d= ebry <edoua= rd.debry@gmail.com>
> Date: Sat, 26 Dec 2020 15:02:54 +0100
> Cc: Eli Zaretskii <eliz@gnu.org>, gliao.tw@pm.me, pcfeb0009@gmx.com, 45303@debbugs.gnu.org
>
> and added the absolute path of "/mingw64/bin" to the emacs e= xec-path.

What does this mean, exactly?=C2=A0 IOW, how did you add this directory to<= br> exec-path, and why did you need to do it?

First, "/mingw64/bin" is not a valid Windows absolute file name, = since
it lacks the drive letter.

And second, Emacs's startup code expects the directories where Emacs should look for programs to be mentioned in the system-wide PATH
variable.=C2=A0 If your PATH doesn't include /mingw64/bin, then you sho= uld
add it (assuming that there are program files there that Emacs is
supposed to find and use).

> Outside of mingw64, If I just click on bin/emacs.exe I get a console m= essage :
>
> Warning: arch-dependent data dir '%emacs_dir%/libexec/emacs/28.0.5= 0/x86_64-w64-mingw32/': No such
> file or directory
>
> and an emacs abort dialog.
>
> If I launch emacs on the command line from within a mingw64 shell, it = runs well.

Is this specific to the native-comp branch, or does it also happen if
you build and install the master branch?
--000000000000dc433e05b75f46ec--