[Bug 2011487] [NEW] riscv64 libgccjit stopped working
Sergio Durigan Junior
2011487 at bugs.launchpad.net
Mon Mar 13 23:40:30 UTC 2023
Public bug reported:
Hi,
This bug is affecting Emacs, as can be seen here:
https://launchpad.net/ubuntu/+source/emacs/1:28.2+1-12ubuntu1/+build/25649207
I was able to track this down to a problem with libgccjit and
LIBRARY_PATH on riscv64. Basically, compiling the example program from
https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html and running it
leads to:
$ gcc /tmp/1.c -lgccjit
$ ./a.out
ld: cannot find crtbeginS.o: No such file or directory
libgccjit.so: error: error invoking gcc driver
NULL result
If we explicitly specify LIBRARY_PATH, it works:
$ LIBRARY_PATH=/usr/lib/gcc/ ./a.out
hello world
** Affects: emacs (Ubuntu)
Importance: Undecided
Status: New
** Affects: gcc-12 (Ubuntu)
Importance: High
Status: New
** Tags: update-excuse
** Also affects: emacs (Ubuntu)
Importance: Undecided
Status: New
** Tags added: update-excuse
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-12 in Ubuntu.
https://bugs.launchpad.net/bugs/2011487
Title:
riscv64 libgccjit stopped working
Status in emacs package in Ubuntu:
New
Status in gcc-12 package in Ubuntu:
New
Bug description:
Hi,
This bug is affecting Emacs, as can be seen here:
https://launchpad.net/ubuntu/+source/emacs/1:28.2+1-12ubuntu1/+build/25649207
I was able to track this down to a problem with libgccjit and
LIBRARY_PATH on riscv64. Basically, compiling the example program
from https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html and
running it leads to:
$ gcc /tmp/1.c -lgccjit
$ ./a.out
ld: cannot find crtbeginS.o: No such file or directory
libgccjit.so: error: error invoking gcc driver
NULL result
If we explicitly specify LIBRARY_PATH, it works:
$ LIBRARY_PATH=/usr/lib/gcc/ ./a.out
hello world
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs/+bug/2011487/+subscriptions
More information about the foundations-bugs
mailing list