Building Emacs with Native Compilation Support

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Building Emacs with Native Compilation Support

Postby timoofone » May 5th, '25, 23:39

Hi everyone,

I hope this question was not asked before, but I have not found anything about it with the search.

I'm trying to build Emacs 31 from source and everything works perfectly with the exception of Native Compilation because libgccjit is not available for Mageia. And to be honest, I can't find a way to build it from source aswell without starting a deep dive into building everything in Mageia from source. Does someone know how to get the latest version of Emacs with Native Compilation enabled on Mageia? That would be wonderful!

Thanks for the great work and thanks in advance!
timoofone
 
Posts: 3
Joined: May 25th, '23, 23:20

Re: Building Emacs with Native Compilation Support

Postby doktor5000 » May 6th, '25, 17:43

Hi there, you could try if it's included in the emacs flatpak, even though that's only 30.1
edit: seems to not be included: https://github.com/flathub/org.gnu.emacs/issues/49

You could either compile it yourself or try with something like https://wiki.mageia.org/en/Distrobox
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18039
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Building Emacs with Native Compilation Support

Postby timoofone » May 7th, '25, 19:20

Thanks for the pointer to Distrobox, I'll probably spin up something with it. If I'm very bored I'll try to compile gcc with libgccjit from scratch. :D
timoofone
 
Posts: 3
Joined: May 25th, '23, 23:20


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron