https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85384
Bug ID: 85384 Summary: libgccjit does not work if --with-gcc-major-version is used Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- As noted in this downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1566178 libgccjit does not honor --with-gcc-major-version. Specifically, gcc/configure.ac does not use get_gcc_base_ver when generating gcc-driver-name.h, hence GCC_DRIVER_NAME contains the wrong value when --with-gcc-major-version is used. This leads to link errors as reported in that bug, when using the default embedded driver, and to the driver not being found when using: gcc_jit_context_set_bool_use_external_driver (ctxt, 1); Affects trunk and gcc-7-branch. I'm about to submit a candidate fix.