Re: what GCC 16 configure options is enabling libgccjit (and installing libgccjit.h)

Arsen Arsenović <[email protected]> Thu, 21 May 2026 12:43:40 +0200
Newsgroups gmane.comp.gcc.help
Organization BayLibre
Message-ID <[email protected]>
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Basile STARYNKEVITCH <[email protected]> writes:

> Hello all,
>
> I am often rebuilding GCC 16 (eg 16.1 or a recent snapshot) on
> Linux/Debian/x86-64 (testing or sid) and occasionally on Raspberry
>
> Of course source tree (eg /usr/src/Lang/gcc16snap ..) is different of
> build tree (eg /usr/src/Lang/_BuildGCC16)=20
>
> What is the configure option to get libgccjit.h and libgccjit.so
> installed ?
>
> I am using (probably incorrectly on AMD64 desktop)
>
> /usr/src/Lang/gcc16snap/configure --disable-multilib \
>    --program-suffix=3D-16 --enable-plugins 'CFLAGS=3D-O2 -g' \
>    --enable-shared --enable-plugin --enable-default-pie \
>    --with-tune=3Dnative --enable-checking=3Drelease \
>    --build=3Dx86_64-linux-gnu --host=3Dx86_64-linux-gnu \
>    --target=3Dx86_64-linux-gnu --enable-gnu-unique-object \
>    --enable-threads=3Dposix --with-default-libstdcxx-abi=3Dnew \
>    --enable-jit --enable-lto --enable-host-shared \
>    --enable-shared --enable-linker-build-id \
>    --with-gcc-major-version-only --program-suffix=3D-16

You need to tell it to build libgccjit with --enable-languages=3Djit
rather than --enable-jit.
=2D-=20
Arsen Arsenovi=C4=87

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEKBAEWCgCyFiEE/uKz0RP8AKMWLWBhUsKUMB6ixJMFAmoO4dwbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGRUUyQjNEMTEzRkMwMEEzMTYyRDYw
NjE1MkMyOTQzMDFFQTJDNDkzGBxhYXJzZW5vdmljQGJheWxpYnJlLmNvbQAKCRBS
wpQwHqLEkz8jAQCf9Z2RoCU9O2z+1mvuT+LjEqjhbQFvLR4ef0EW/sPEJAEArER0
QcwDpK2OVdIcDY54LZG/U6sYwwTD95DmvUImBAg=
=cv12
-----END PGP SIGNATURE-----
--=-=-=--