https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63969
Bug ID: 63969 Summary: gccjit segfaults when it can't locate the correct gcc driver program Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: hp at tmm dot cx When running tut01-hello-world.c with a gccjit installed in a prefix, but PATH not pointing to a gcc-5.0.0 driver the program segfaults. $ LD_LIBRARY_PATH=/home/hp/Apps/gccjit/lib ./tut01-hello-world Segmentation fault It works correctly with a PATH set appropriately $ PATH=/home/hp/Apps/gccjit/bin:$PATH LD_LIBRARY_PATH=/home/hp/Apps/gccjit/lib ./tut01-hello-world hello world gcc trunk r217763, build options ../configure --enable-host-shared --enable-languages=jit --disable-bootstrap --enable-checking=release --prefix=/home/hp/Apps/gccjit make install'd It would be better if an error message was printed rather than a segmentation fault.