https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103016
Bug ID: 103016 Summary: libgccjit on OpenBSD-7.0 fails with bootstrap-emacs:/usr/local/lib/libgccjit.so.0.0.1: undefined symbol '_Z15fname_as_stringi' Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: hboetes at gmail dot com Target Milestone: --- I already reported this bug to the Emacs bug list and Eli Zaretskii, the Emacs maintainer, insisted it was an issue with GCC. Please bear with me, since this is not a normal bug-report. Whilst compiling Emacs with the --with-native-compilation, which uses libgccjit, I ran into the following issue: gmake[2]: Entering directory '/usr/obj/work/emacs/src/emacs/lisp' ELC+ELN international/titdic-cnv.elc bootstrap-emacs:/usr/local/lib/libgccjit.so.0.0.1: undefined symbol '_Z15fname_as_stringi' ld.so: bootstrap-emacs: lazy binding failed! Killed gmake[2]: *** [Makefile:316: international/titdic-cnv.elc] Error 137 gmake[2]: Leaving directory '/usr/obj/work/emacs/src/emacs/lisp' gmake[1]: *** [Makefile:835: ../lisp/loaddefs.el] Error 2 gmake[1]: Leaving directory '/usr/obj/work/emacs/src/emacs/src' gmake: *** [Makefile:450: src] Error 2 Since OpenBSD ports & packages does not yet include libgccjit I modified the port (instructions to build a package) to include the required options as per https://gcc.gnu.org/onlinedocs/gcc-11.2.0/jit/internals/index.html, bootstrapped GCC and, got a package with libgccjit. % egcc --version egcc (GCC) 11.2.0 The OpenBSD version is: 7.0-amd64 How can I help debugging this problem? Thanks, Han