From: James Luke <james92856@gmail.com>
To: emacs-devel@gnu.org
Subject: Make cross-compiling temacs easier: drop gnulib for build intermediates, or use recursive autoconf?
Date: Fri, 25 Jun 2021 19:22:10 -0700 [thread overview]
Message-ID: <CAFOX7SizgGTBJdakSnLcttkgUgGO0MeWdx01PghoX8oYWfBZsA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1374 bytes --]
I'm interested in making cross-compilation of emacs easier. Or rather,
making cross-compilation of temacs easier, such that one can run temacs on
the host machine to finish the build. This would make it easier to create
reproducible builds (particularly with Guix/NixOS as the build machine),
and means one doesn't need a C compiler on the host. Right now the problem
I'm running into is caused by build intermediates that must be built then
run on the builder: the programs "lib-src/make-docfile.c" and
"lib-src/make-fingerprint.c".
These intermediates both use gnulib (with #include <config.h> etc), but
configure.ac only configures gnulib for the host machine. So the headers,
#defines, and library are all wrong for the build machine and compilation
fails. To fix this, I'd like to rewrite make-fingerprint.c and
make-docfile.c to avoid non-portable constructs and thus the dependency on
gnulib, but I don't know if this is considered acceptable for a GNU
project. The alternative is a larger overhaul of the build system, with a
nested configure script (to run configure for the builder when doing a
cross build), another makefile, and another gnulib tree (for the modules
needed only for the intermediates). I suspect the latter would be more
fragile and produce a much larger maintenance burden than the former.
Would there be any objections to the simple rewrite?
[-- Attachment #2: Type: text/html, Size: 1532 bytes --]
next reply other threads:[~2021-06-26 2:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-26 2:22 James Luke [this message]
2021-06-26 6:26 ` Make cross-compiling temacs easier: drop gnulib for build intermediates, or use recursive autoconf? Eli Zaretskii
2021-06-26 22:56 ` James Luke
2021-06-27 6:08 ` Eli Zaretskii
2021-06-26 13:56 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFOX7SizgGTBJdakSnLcttkgUgGO0MeWdx01PghoX8oYWfBZsA@mail.gmail.com \
--to=james92856@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).