Build with --disable-gpg fails

John Scott jscott at
Wed May 27 03:49:54 CEST 2020


I've been trying to build GnuPG 2.2.19 and 2.2.20 today and found that, with 
./configure --disable-gpg, and with --disable-all-tests in addition too, I got 
the error
make[4]: *** No rule to make target '../../g10/gpg.exe', needed by 'all-
local'.  Stop.
make[4]: Leaving directory '/home/john/foo/gnupg-2.2.20/tests/openpgp'

This isn't specific to Windows cross-building. Doing it natively got the 
similar but different error
gcc -Wall -Wno-pointer-sign -Wpointer-arith -g -O2    ../../g10/gpg.c   -o 
../../g10/gpg.c:22:10: fatal error: config.h: No such file or directory
   22 | #include <config.h>
      |          ^~~~~~~~~~
compilation terminated.
make[3]: *** [<builtin>: ../../g10/gpg] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/fake-pinentry.Tpo .deps/fake-pinentry.Po
make[3]: Leaving directory '/home/john/bar/gnupg-2.2.20/tests/openpgp'

I'd also like to inform you that [1] says bug reports should be sent to this 
mailing list, in case that's outdated in light of

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the Gnupg-devel mailing list