unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* libgccjit and gccemacs
@ 2020-03-15 17:30 Formbi
  0 siblings, 0 replies; 3+ messages in thread
From: Formbi @ 2020-03-15 17:30 UTC (permalink / raw)
  To: guix-devel@gnu.org

Hello!

I'd like to make gccemacs work in Guix. Joseph LaFreniere made this libgccjit package:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40045
and I made this: https://termbin.com/06cmr

When I try to build gccemacs, I'm getting errors like this:
ld: cannot find crtbeginS.o: No such file or directory
ld: cannot find -lgcc
ld: cannot find -lgcc
libgccjit.so: error: error invoking gcc driver

This seems to be connected to this problem:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87808
but I don't know how to fix this. I tried adding gcc-toolchain to inputs
of libgccjit and gccemacs, but it didn't help.

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

* libgccjit and gccemacs
@ 2020-03-17  8:46 Andrea Corallo
  2020-11-21  9:19 ` John Soo
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Corallo @ 2020-03-17  8:46 UTC (permalink / raw)
  To: guix-devel

Formbi wrote:

> Hello!
> 
> I'd like to make gccemacs work in Guix. Joseph LaFreniere made this libgccjit 
> package:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40045
> and I made this: https://termbin.com/06cmr
> 
> When I try to build gccemacs, I'm getting errors like this:
> ld: cannot find crtbeginS.o: No such file or directory
> ld: cannot find -lgcc
> ld: cannot find -lgcc
> libgccjit.so: error: error invoking gcc driver
> 
> This seems to be connected to this problem:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87808
> but I don't know how to fix this. I tried adding gcc-toolchain to inputs
> of libgccjit and gccemacs, but it didn't help.

Hi Formbi,

I'm quite ignorant on guix but the libgccjit error is potentially
related to the LIBRARY_PATH value.

Here a nice description of what libgccjit expects to find in that
respect:

https://gcc.gnu.org/onlinedocs/jit/internals/index.html#environment-variables

Hope it helps.

Best Regards

  Andrea

-- 
akrl@sdf.org

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

* Re: libgccjit and gccemacs
  2020-03-17  8:46 Andrea Corallo
@ 2020-11-21  9:19 ` John Soo
  0 siblings, 0 replies; 3+ messages in thread
From: John Soo @ 2020-11-21  9:19 UTC (permalink / raw)
  To: formbi; +Cc: Guix-devel

Hello Andrea, Formbi, and Guix,

I got gccemacs and the no-x version to compile. They do not run
entirely correctly and the closure size is quite large. That said, it
feels snappy!

I submitted patches to issue 44775: https://issues.guix.gnu.org/issue/44775

If someone could investigate the retained closure references and
missing references to the store, that would help a lot!

Thanks and good luck,

John


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

end of thread, other threads:[~2020-11-21  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-15 17:30 libgccjit and gccemacs Formbi
  -- strict thread matches above, loose matches on Subject: below --
2020-03-17  8:46 Andrea Corallo
2020-11-21  9:19 ` John Soo

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).