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: The 'cross' directory Date: Thu, 17 Aug 2023 10:44:20 +0300 Message-ID: <834jky6rl7.fsf@gnu.org> References: <83fs4uok3p.fsf@gnu.org> <877cq61hlq.fsf@yahoo.com> <87jzu4yioy.fsf@yahoo.com> <83pm3rcxh7.fsf@gnu.org> <83r0o4a5sl.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, luangruo@yahoo.com, emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 17 09:45:20 2023 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 1qWXh1-0004ul-9s for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Aug 2023 09:45:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWXgC-0003TJ-Gz; Thu, 17 Aug 2023 03:44:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWXg7-0003Sr-Vl for emacs-devel@gnu.org; Thu, 17 Aug 2023 03:44:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWXg7-0000kf-HP; Thu, 17 Aug 2023 03:44:23 -0400 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=XDHMw9c/A14JGLypP7m2Ln4qgj9Q3xo8IkcDvhfHx6k=; b=Qov4+8nJvG9W nAFg1HKLZyMJGj5qwWu5bVUS0JlXKHPyaA0IaWBxr3yJAQuMCEIGISyez1lQE05lgc4AaL8/ZvBCE m8KWNTdpPpLJDtKZhNUUIGtRl+3EfgePa8bhvGra0fvEw5T9G4QEl7kezn0i2DQGtnKL7/YhMjMc7 pQAXbxIivkurQJmPRS4TwTZQfx/N1pdc2wm8QV/UNDrm10SQciY2apeVIEuWswx0GEhyCG8yzFzcK QaKybnALCW8zyoRmH4GplSVKE46XykCsLjMUtfK5bJLhfXWyP8Zz6T1KxoT5N+y8KQ4lfrtgRfSsw pBEdh3x02rpX1xNluZYYJg==; In-Reply-To: (message from Helmut Eller on Wed, 16 Aug 2023 23:32:46 +0200) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308848 Archived-At: > From: Helmut Eller > Cc: rms@gnu.org, luangruo@yahoo.com, emacs-devel@gnu.org > Date: Wed, 16 Aug 2023 23:32:46 +0200 > > On Tue, Aug 15 2023, Eli Zaretskii wrote: > > >> From: Helmut Eller > >> Is it possible/easy to cross-compile Emacs for Windows on a Unix > >> machine? Possibly with the help of Wine for dumping. > > > > Maybe, I don't know. I never tried, and neither I think has anyone > > else. > > I tried it now. It kinda works, but it's not easy. What follows is a > summary of the steps that I did, for the unlikely case that somebody is > interested in these things: Thanks. The use of Posix configury for building Emacs for Windows was designed and tested only for native (host = target) builds, and was never tested otherwise, so some hidden assumptions and other similar issues are not surprising. > 4. Executing "make" now wants to execute make-docfile.exe, but can't. I believe this is not a Windows specific issue. > 6. Now "make RUN_TEMACS=$(pwd)/src/wine-temacs.sh" wants run bootstrap-emacs > to produce all the .elc files. Only if you build from Git. If you build from the release tarball, all the *.elc files are supposed to be already present in the tree. > 8. Even with all the .elc files in place, make still wants to execute > bootstrap-emacs for things like > > GEN ../lisp/leim/quail/CCDOSPY.el > or > GEN ../../lisp/cedet/semantic/bovine/c-by.el > or > ELC ../lisp/loaddefs.elc > > I just waited and let it proceed, as I didn't know any shortcuts. Why is this a problem? If it runs on the host (which it should), that's okay. If it runs only after Emacs was dumped, that's indeed a problem, but again: in a release tarball all those *.elc files should already be present.