-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling luatex #1139
Comments
Awesome! Maybe you can submit a PR to superconfigure (cc @ahgamut). For posterity, this is where cosmopolitan/libc/integral/c.inc Lines 179 to 182 in 0ef3648
@jart perhaps |
Hi, this is awesome! We have a similar project with slightly broader scope: we also compile other TeX binaries, such as pdfTeX and XeTeX, into a single busytex-style binary. We also managed to compile our project with Cosmo, making Cosmo fixes along the way. I think we stumbled upon everything you described, and made some workarounds on our side. It would be great to fix those properly!
|
Hi all,
I have managed to compile
(or I should said κόσμος-compile ) luatex and luahbtex from
https://gitlab.lisn.upsaclay.fr/texlive/luatex
under Linux Ubuntu x86_64, using its build.sh script.
building is done in 2 steps, one with CC="x86_64-unknown-cosmo-cc
and one with CC="aarch64-unknown-cosmo-cc because the arm step needs
the "--enable-arm-neon=on option at config time.
Then I build the ape binary following the example in cosmocc --help.
Two steps are ok but I would like to use a single step with CC=cosmocc, any suggestion is welcome.
llround
is unresolved at linking time: I have replaced it withlround
but I am not sure if it can be solved in another way.
texk/web2c/luatexdir/tex/maincontrol.h has
extern boolean privileged(void);
that seem to conflicts with a privileged symbol used by cosmocc; I have fixed with
There are also a few other patches to some config.ac, but I think that they can go upstream (to TexLive, I mean),
and texk/web2c/luatexdir/luasocket/src/usocket.c
has
that I think I cannot avoid.
The ape format runs on Linux / Windows / FreeBSD x86_64 (I have to check aarch64 with a rpi) but
I haven't done extensive testing yet.
--
luigi
The text was updated successfully, but these errors were encountered: