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

--- Comment #4 from Matthias Klose <doko at debian dot org> ---
Understood, that I need binutils. However if you remove the driver (or rename
it on your system), then the debug output reads:

JIT:    entering: virtual void
gcc::jit::playback::compile_to_memory::postprocess(const char*)
JIT:     entering: void gcc::jit::playback::context::convert_to_dso(const
char*)
JIT:      entering: void gcc::jit::playback::context::invoke_driver(const
char*, const char*, const char*, timevar_id_t, bool, bool)
JIT:       entering: void
gcc::jit::playback::context::add_multilib_driver_arguments(vec<char*, va_heap,
vl_ptr>*)
JIT:       exiting: void
gcc::jit::playback::context::add_multilib_driver_arguments(vec<char*, va_heap,
vl_ptr>*)
JIT:       argv[0]: x86_64-linux-gnu-gcc-9
JIT:       argv[1]: -m64
JIT:       argv[2]: -shared
JIT:       argv[3]: /tmp/libgccjit-p43Zl1/fake.s
JIT:       argv[4]: -o
JIT:       argv[5]: /tmp/libgccjit-p43Zl1/fake.so
JIT:       argv[6]: -fno-use-linker-plugin
JIT:       entering: void
gcc::jit::playback::context::invoke_embedded_driver(const vec<char*, va_heap,
vl_ptr>*)
ld: cannot find crtbeginS.o: No such file or directory
ld: cannot find -lgcc
ld: cannot find -lgcc_s
JIT:        entering: void
gcc::jit::recording::context::add_error_va(gcc::jit::recording::location*,
const char*, __va_list_tag*)
JIT:         error 0: error invoking gcc driver
libgccjit.so: error: error invoking gcc driver
JIT:        exiting: void
gcc::jit::recording::context::add_error_va(gcc::jit::recording::location*,
const char*, __va_list_tag*)
JIT:       exiting: void
gcc::jit::playback::context::invoke_embedded_driver(const vec<char*, va_heap,
vl_ptr>*)
JIT:      exiting: void gcc::jit::playback::context::invoke_driver(const char*,
const char*, const char*, timevar_id_t, bool, bool)
JIT:     exiting: void gcc::jit::playback::context::convert_to_dso(const char*)
JIT:    exiting: virtual void
gcc::jit::playback::compile_to_memory::postprocess(const char*)

so something is calling the external driver ...

Reply via email to