unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Make cross-compiling temacs easier: drop gnulib for build intermediates, or use recursive autoconf?
@ 2021-06-26  2:22 James Luke
  2021-06-26  6:26 ` Eli Zaretskii
  2021-06-26 13:56 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: James Luke @ 2021-06-26  2:22 UTC (permalink / raw)
  To: emacs-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-27  6:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-26  2:22 Make cross-compiling temacs easier: drop gnulib for build intermediates, or use recursive autoconf? James Luke
2021-06-26  6:26 ` Eli Zaretskii
2021-06-26 22:56   ` James Luke
2021-06-27  6:08     ` Eli Zaretskii
2021-06-26 13:56 ` Stefan Monnier

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).