https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103016

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #10)
> I looked and I see openbsd has a patch which adds fname_as_string to one of
> the generic parts of GCC which is causing this.
> apinski@xeond:~/src/openbsd-ports/lang/gcc/11/patches$ git grep
> fname_as_string
> patch-gcc_ada_adaint_c:+fname_as_string(int pretty_p
> __attribute__((__unused__)))
> patch-gcc_d_d-lang_cc:+fname_as_string(int pretty_p
> __attribute__((__unused__)))
> patch-gcc_fortran_f95-lang_c:+fname_as_string(int pretty_p
> __attribute__((__unused__)))
> patch-gcc_go_go-lang_c:+fname_as_string(int pretty_p
> __attribute__((__unused__)))
> patch-gcc_lto_lto-common_c:+fname_as_string(int pretty_p
> __attribute__((__unused__)))
> patch-gcc_targhooks_c:+  if (NULL == (tmp_name = fname_as_string (0))) {

Basically you need to do a similar patch to the jit sources as was done for
Ada, D, go, and lto front-ends.

Reply via email to