Hi.
You're missing the flag --enable-host-shared.
Also, it looks like you already do it, but make sure you build libgccjit out-of-tree (gcc cannot be build inside its source directory).
Regards.

Le 08/04/2025 à 06:18, Egor Sozonov a écrit :
Hello, I'm having trouble building libgccjit from source.

I'm following the docs at https://gcc.gnu.org/onlinedocs/jit/internals/ index.html <https://gcc.gnu.org/onlinedocs/jit/internals/index.html>
Running the command from the GCC 14.0.2 source folder (on Arch Linux):

    cd build
    ../gcc/configure  \
         --prefix=/home/username/software/myGcc \
         --enable-checking=release --enable-languages=jit,c++ --disable-
    bootstrap \
         --program-suffix=my


Firstly, Configure doesn't recognize one of the options:

 > configure: WARNING: unrecognized options: --disable-bootstrap

Secondly, Make errors out with

> make: *** No rule to make target '../build-x86_64-linux-gnu/ libiberty/libiberty.a', needed by 'build/genmodes'.  Stop.

Looks like the build instructions are out of date. Could you please share the commands you use to build libgccjit.so from source successfully?

Reply via email to