https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118780
Bug ID: 118780
Summary: GCC build fails when enabling JIT but not plugins
Product: gcc
Version: 14.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: jit
Assignee: dmalcolm at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
CC: antoyo at gcc dot gnu.org
Target Milestone: ---
When building with
--enable-languages=jit --enable-host-shared --disable-plugin
then system.h lacks the dlfcn.h include and the JIT build fails with
[ 759s] ../../gcc/jit/jit-playback.cc:3322:3: error: 'dlerror' was not
declared in this scope; did you mean 'perror'?
[ 759s] 3322 | dlerror ();
[ 759s] | ^~~~~~~
[ 759s] | perror
[ 759s] ../../gcc/jit/jit-playback.cc:3325:20: error: 'RTLD_NOW' was not
declared in this scope
[ 759s] 3325 | RTLD_NOW | RTLD_LOCAL);
[ 759s] | ^~~~~~~~
[ 759s] ../../gcc/jit/jit-playback.cc:3325:31: error: 'RTLD_LOCAL' was not
declared in this scope
[ 759s] 3325 | RTLD_NOW | RTLD_LOCAL);
[ 759s] | ^~~~~~~~~~
[ 759s] ../../gcc/jit/jit-playback.cc:3324:12: error: 'dlopen' was not
declared in this scope; did you mean 'popen'?
[ 759s] 3324 | handle = dlopen (m_tempdir->get_path_so_file (),
[ 759s] | ^~~~~~
[ 759s] | popen