From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: [feature/native-comp] breakage on build Date: Sun, 07 Feb 2021 05:14:24 +0100 Message-ID: <87k0rkldjz.fsf@telefonica.net> References: <87lfca7lsb.fsf@russet.org.uk> <83sg6h6s6d.fsf@gnu.org> <8335yf7qtf.fsf@gnu.org> <831rdy5i2r.fsf@gnu.org> <87y2g5p0q8.fsf@russet.org.uk> <87im7799s9.fsf@russet.org.uk> <87wnvn5yoz.fsf@russet.org.uk> <87eehuomn2.fsf@russet.org.uk> <83lfc2px16.fsf@gnu.org> <87czxe45f8.fsf@russet.org.uk> <8335yap6p8.fsf@gnu.org> <87wnvm2nhb.fsf@russet.org.uk> <83wnvlod0k.fsf@gnu.org> <87wnvlmjxo.fsf@russet.org.uk> <87sg68lj2k.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19525"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:jPCK6kTA8HOXWGPA6l69BYjvtG0= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 07 05:16:24 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 1l8bUm-0004zw-2w for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Feb 2021 05:16:24 +0100 Original-Received: from localhost ([::1]:36176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8bUl-0000UW-5A for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Feb 2021 23:16:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8bSz-0007iu-BU for emacs-devel@gnu.org; Sat, 06 Feb 2021 23:14:34 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:54180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8bSx-0003Lj-Ib for emacs-devel@gnu.org; Sat, 06 Feb 2021 23:14:33 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1l8bSu-0002su-B3 for emacs-devel@gnu.org; Sun, 07 Feb 2021 05:14:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:264099 Archived-At: Óscar Fuentes writes: > Phillip Lord writes: > >> So, I did this: >> >> - Installed a fresh msys to a clean directory on my desktop. >> - Dropped the emacs-no-deps.zip directory on top of the mingw64 directory. >> - clicked on runemacs.exe from windows shell -- Emacs fails to launch >> because of libgmp >> - pacman installed all the dependencies of Emacs >> - clicked on runemacs.exe -- Emacs launches, native-comp fails as >> described >> - run mingw64 shell form the mys installation >> - ./runemacs.exe in that shell >> - Emacs launches, native-comp works >> - ~/ and thus ~/.emacs.d/eln-cache is a different location with the two >> launch methods >> >> I believe that msys is mostly portable and a new installation is nearly >> clean (except for .bashrc and such like). >> >> Conclusions: >> >> - emacs is picking up dependencies from mingw64 run in either way, >> because otherwise it wouldn't run at all from the shell >> - Emacs is picking up the environment from mingw64 when launched from >> within it, hence the differences in location of ~ >> - Native-comp has everything it needs to run, or it couldn't run at >> all. >> - It is missing something from the environment when run in the windows >> shell. >> >> This is export run inside the mingw64 window. So, lots of options there. > > If, at the top of .emacs.el, you add the binary directory of emacs.exe > to exec-path, does native-comp work when you start emacs from the > desktop's icon? > > Also, some days ago I sent you an e-mail off-list. Have you seen it? On second thought, exec-path solves the problem of emacs.exe running other executables, but it is not enough when those executables run other executables on turn. So emacs.exe will launch gcc.exe just fine, but gcc.exe will fail to run as.exe, ld.exe, etc. So we must set PATH too.