-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Package request: libgccjit (for trying gccemacs) #75288
Comments
@bhipple While testing your package for |
Hi, I know nothing of nix but I think you could add a |
@AndreaCorallo Thanks for the info! Do you happen to know if there’s a way to tell the libgccjit configure where the header files (which are usually in |
Status update: I forked the entire gcc9 directory into my nixpkgs-user-repository, got
Even adding this onto the RPath, I still get issues. Here's the code: gccjit can be compiled from my NUR repository by adding the overlay: And then running:
This will pass the build, but fail at runtime, since the jitter doesn't work due to missing libs as mentioned. Here's a minimal test case to reproduce:
where hello.c is the first file from the tutorial here: You'll see it immediately crash due to missing crti.o, even though I've made Not sure when I'll get more time to hack on it, so I figured I'd post some The actual emacs part will be trivial once we get the jitter going, and I'll |
Thanks for the progress so far! |
@matthewbauer cracked the puzzle above: #87157 (comment) That will eventually work its way through staging -> staging-next -> master, at which point we'll have an operational Since we now have a working |
Project description
libgccjit
lives in thegcc
src package and is an optionalconfigure
flag to build, just like the other backends:https://gcc.gnu.org/onlinedocs/gcc-8.3.0/jit/internals/index.html
There was a previous attempt at allowing an option for this here:
#13400
Motivation: In the emacs world, recently there's been a lot of interest in trying to improve performance of elisp, including adding some threading support, adding
libjansson
for C JSON serialization/deserialization, etc. One such project in this camp isgccemacs
, which adds native compilation to elisp files withlibgccjit
:http://akrl.sdf.org/gccemacs.html
https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg01137.html
It's possible the author may succeed in getting it into emacs master, in which case we'll need to add
libgccgit
support regardless, but in the meantime packaging it would allow us to easily support agccemacs
build in one of the NUR emacs overlays.Metadata
All metadata is shared with
gcc
, since it's in the same src repo with the same license.The text was updated successfully, but these errors were encountered: