https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103016
--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
I'm not sure how best to debug this.

$ echo _Z15fname_as_stringi | c++filt
fname_as_string(int)

and indeed, that seems to be just for the C/C++ frontends, not for libgccjit.

Some ideas:
Given:
  bootstrap-emacs:/usr/local/lib/libgccjit.so.0.0.1: undefined symbol
'_Z15fname_as_stringi'
  ld.so: bootstrap-emacs: lazy binding failed!
...it appears to be an issue with dynamic linkage.

You could try turning up the verbosity of the dynamic linker; if it's glibc you
could try setting
  LD_DEBUG=all
in the environment, which I believe is the most verbose option (see "man ld.so"
for other options, if that's overkill).  Hopefully that will give a hint as to
where that symbol is coming from.

If that doesn't help, is there a way to figure out what the command line is at
the point of failure, and what it's trying to do?

Reply via email to