Subject: Re: bug#57380: 29.0.50; configure --config-cache --with-native-compilation failing

From: Eli Zaretskii <[email-masked]>
Date: Wed, 24 Aug 2022 15:31:20 +0300

> From: Gerd Möllmann <[email-masked]>
> Date: Wed, 24 Aug 2022 14:09:07 +0200
> 
> The second configure, in the first recipe this is './config.status
> --recheck', fails with
> 
> checking for gcc_jit_context_acquire in -lgccjit... (cached) yes
> checking for libgccjit.h... (cached) yes
> configure: error: The installed libgccjit failed to compile and run a test program using
> the libgccjit library; see config.log for the details of the failure.
> 
> Config.log says
> 
> configure:19611: checking for libgccjit.h
> configure:19611: result: yes
> configure:19674: gcc -o conftest -g -O2     conftest.m -lgccjit -lsqlite3   -L/opt/homebrew/Cellar/libgccjit/12.1.0/lib/gcc/current >&5
> conftest.m:131:12: fatal error: 'libgccjit.h' file not found
>   #include <libgccjit.h>
>            ^~~~~~~~~~~~~
> 1 error generated.

Does the command to compile the test program look different in a
config.log from a successful build?  If so, what is the difference?
(Perhaps some -I switch is missing?)  And if there's no difference,
how come the same command sometimes succeeds and sometimes fails?