From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: msys2 build path problems + copy-paste english results in chinese characters Date: Thu, 02 Dec 2021 09:17:51 +0200 Message-ID: <835ys7qxuo.fsf@gnu.org> References: <83a6hks26v.fsf@gnu.org> <83pmqgqi6e.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24199"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 02 08:43:28 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 1msgka-00067h-Ds for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Dec 2021 08:43:28 +0100 Original-Received: from localhost ([::1]:58944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msgkZ-0002uf-BL for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Dec 2021 02:43:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msgM1-000291-22 for emacs-devel@gnu.org; Thu, 02 Dec 2021 02:18:05 -0500 Original-Received: from [2001:470:142:3::e] (port=33018 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msgM0-0005S6-MB; Thu, 02 Dec 2021 02:18:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=IsgdDqqYsML5ejMFsNqzHwiK3+OYwzFYcCYQWj4SmZE=; b=kVN6TzVcuVET I/GhDLcPd2LhRdedAbVdAEOlLG4a45NmMTr1GWxuU6cPtUGysHDz0HBCi7iDPy6tsferpsDYBlV/h +wvqMYbHZU4MBjNHu0lwmJNQ1vc7LOu36C0JIA+O5MxeKXlsrQy/vTpVEYM73OedV0VM0rKmqg/TG 47EAG/2kOrl/El6kFU9DrCRWk7mVxCPqCFNKRl59TLrUQ2VJiJ/pxAFD2qQ+P16Of4PRshRn1ZaFq qcP+GR1TARba6J5YCzuqzZVbdTmJunjlMPJhd/H1CiGd0cv+yjtBa25bIZmwkduxp7nIgLsGaDThd b+i2W8xJxD4xQX6XEG/kjw==; Original-Received: from [87.69.77.57] (port=1840 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msgM0-0005e0-8G; Thu, 02 Dec 2021 02:18:04 -0500 In-Reply-To: (message from Arthur Miller on Wed, 01 Dec 2021 23:39:23 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:280718 Archived-At: > From: Arthur Miller > Cc: emacs-devel@gnu.org > Date: Wed, 01 Dec 2021 23:39:23 +0100 > > > So M-w followed by C-y works. What doesn't work? > I pasted it with the middle mouse button; so now when you asked, I should > probably say oups :-). It was many months of X11 and very few sessions in win32 > environment. I don't think I understand the "oups" part: does it mean you figured out what caused the problem? > >> >> Also, as seen exec-path is wrong. I started, as recommended, via windows means (shortcuts) instead of > >> >> msys/mingw prompts. > >> > > >> > Wrong how? I don't see anything about exec-path in the image you > >> > posted. > >> > >> Look at warning from the native-comp in window below; it can not find assemblern > >> (gnu as). When looking at exec-path I see no paths from mingw present anywhere, > >> but I did found "." in the path, which I haven't put there myself. > > > > The "." part is added by the MSYS2 Bash. but I still don't understand > > why it gets in the way. Does the directory where you have gas.exe > It is not considered very safe to have it in the path, so I am very suspicisious > to that. MSYS2 does it for good reasons. Since you invoked Emacs from the MSYS2 Bash, something that is generally not recommended, you inherit that, and have to deal with it. > > Does the directory where you have gas.exe > > appear on the system-wide PATH? > > Nope; I haven't manually added any of msys paths to the system, I thought the > build would add some default paths to msys dirs. That's your problem: this is why Emacs started from Bash doesn't find the assembler. The assembler (and GCC/Binutils in general) are not MSYS2 programs, they are native Windows programs. Their directories should be on PATH, so that you could invoke them from anywhere on your system, not just from MSYS2 Bash command line.