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: Tue, 15 Aug 2023 14:44:42 +0300 Message-ID: <83r0o4a5sl.fsf@gnu.org> References: <83fs4uok3p.fsf@gnu.org> <877cq61hlq.fsf@yahoo.com> <87jzu4yioy.fsf@yahoo.com> <83pm3rcxh7.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14584"; 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 Tue Aug 15 13:46: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 1qVsV9-0003Pq-5e for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Aug 2023 13:46:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVsTr-0001pl-2R; Tue, 15 Aug 2023 07:45:00 -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 1qVsTl-0001pG-9v for emacs-devel@gnu.org; Tue, 15 Aug 2023 07:44:53 -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 1qVsTk-0007t4-3w; Tue, 15 Aug 2023 07:44:52 -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=MOst30gZuFVU65Kysdcyv9B3//zdCwFJ9WCBwJbSzh8=; b=RnSrIdPU0xLC vgLcjJmeiA6OueWW8j18rlzKfNVzi3biWZJgq3coPeaAN2qBLKVRaPxG+Cvun3GdZWilSM33lXYsc YZ/qUXkg5yeRUaPkwDtYonR3djF51s7aZjfmB3SznOwZ3nSLeN+wR7M+UQshzgDbCyNPcJMuJjVzv dk4J8lclbsZtY4mev5/9ixvQEK/9uiGXDKBSAEyxUTMXh/tNyKJ59Ao2DMoRFN44GToOe0wTOg+yq retKKI+7nRkBYu0iCEo9AJzU+QDPadOis6Nunmrme399fmqv1JGYGee5A/sQr8f3M/s2xdLBYj2pF tsxolumYIiE+QGE//2XfRw==; In-Reply-To: (message from Helmut Eller on Tue, 15 Aug 2023 10:05:45 +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:308754 Archived-At: > From: Helmut Eller > Cc: rms@gnu.org, luangruo@yahoo.com, emacs-devel@gnu.org > Date: Tue, 15 Aug 2023 10:05:45 +0200 > > On Sun, Aug 13 2023, Eli Zaretskii wrote: > > >> From: Richard Stallman > >> So I think it should have worked to make `temacs' cross-compiling > >> and then run the rest on the target machine. That should have been > >> easy because it did not need to compile or link any C code. > > > > This should still work, although I doubt if anyone tried it lately. > > Emacs with native-compilation cannot be built that way, because the > > native-code *.eln files are produced at build time, and cannot be > > included in the tarball (they depend on the architecture of the target > > machine and include signatures of the Emacs binary and the location of > > the source *.el files). But Emacs without native-compilation could be > > produced in such two steps, except that the target environment still > > needs some support tools: GNU Make, cp and rm. (Alternatively, they > > could invoke the final build commands by hand, if they know how.) > > 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. You'd still need some GNU tools on the target, as indicated above, or you will have to type the relevant commands manually on the target. > Debian has a package gcc-mingw-w64-x86-64, so I suppose installing the > cross compiler itself is fairly easy. Yes, it is. (You need Binutils as well, and the headers of the optional libraries, like XPM, JPEG, GnuTLS, etc.).