Subject: bug#51518: native-compilation on OpenBSD

From: Eli Zaretskii <[email-masked]>
Date: Sat, 30 Oct 2021 21:55:29 +0300

> Date: Sat, 30 Oct 2021 20:00:21 +0200
> From: Han Boetes <[email-masked]>
> 
> 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: emacs-lisp/macroexp.elc] Error 137
> gmake[2]: *** Waiting for unfinished jobs....
> bootstrap-emacs:/usr/local/lib/libgccjit.so.0.0.1: undefined symbol '_Z15fname_as_stringi'
> ld.so: bootstrap-emacs: lazy binding failed!

It looks like something is wrong with your installation of libgccjit.
I suggest to report this to the maintainers of the OpenBSD libgccjit
package.