Page MenuHome GnuPG

libgcrypt cross-compilation error
Closed, InvalidPublic

Description

Hello,
Error report in regard to git://git.gnupg.org/libgcrypt.git
Cross-compiling with target Win10 x64, using mingw64 under ubuntu 21.10,
It cross-compiles successfully with this commit: 5e0187d84fc16d9ff0fbb0ccd4348657fea90d36
It does NOT cross-compile on and after commit : 3bacdac611b9eb3bd5ae8d78156b1110e77e9518
Error log:

libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -D_FORTIFY_SOURCE=2 -I/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/include -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -Wall -MT random-system.lo -MD -MP -MF .deps/random-system.Tpo -c random-system.c -o random-system.o
libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -D_FORTIFY_SOURCE=2 -I/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/include -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -Wall -MT random.lo -MD -MP -MF .deps/random.Tpo -c random.c -o random.o
libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -D_FORTIFY_SOURCE=2 -I/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/include -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -Wall -MT rndhw.lo -MD -MP -MF .deps/rndhw.Tpo -c rndhw.c -o rndhw.o
libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -D_FORTIFY_SOURCE=2 -I/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/include -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -Wall -c ./rndjent.c -o rndjent.o
libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -D_FORTIFY_SOURCE=2 -I/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/include -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -Wall -MT random-csprng.lo -MD -MP -MF .deps/random-csprng.Tpo -c random-csprng.c -o random-csprng.o
In file included from ./jitterentropy.h:98,
                 from ./jitterentropy-base.c:32,
                 from ./rndjent.c:86:
./jitterentropy-base-user.h: In function 'jent_yield':
./jitterentropy-base-user.h:298:9: warning: implicit declaration of function 'sched_yield' [-Wimplicit-function-declaration]
  298 |         sched_yield();
      |         ^~~~~~~~~~~
In file included from ./jitterentropy-base.c:32,
                 from ./rndjent.c:86:
./jitterentropy.h: At top level:
./jitterentropy.h:394:9: error: unknown type name 'pthread_attr_t'
  394 |         pthread_attr_t notime_pthread_attr;     /* pthreads library */
      |         ^~~~~~~~~~~~~~
./jitterentropy.h:395:9: error: unknown type name 'pthread_t'
  395 |         pthread_t notime_thread_id;             /* pthreads thread ID */
      |         ^~~~~~~~~
./jitterentropy.h:401:5: warning: 'jent_notime_init' declared 'static' but never defined [-Wunused-function]
  401 | int jent_notime_init(void **ctx);
      |     ^~~~~~~~~~~~~~~~
./jitterentropy.h:404:6: warning: 'jent_notime_fini' declared 'static' but never defined [-Wunused-function]
  404 | void jent_notime_fini(void *ctx);
      |      ^~~~~~~~~~~~~~~~
In file included from ./rndjent.c:86:
./jitterentropy-base.c:729:5: warning: 'jent_entropy_switch_notime_impl' defined but not used [-Wunused-function]
  729 | int jent_entropy_switch_notime_impl(struct jent_notime_thread *new_thread)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./jitterentropy-base.c:260:9: warning: 'jent_read_entropy_safe' defined but not used [-Wunused-function]
  260 | ssize_t jent_read_entropy_safe(struct rand_data **ec, char *data, size_t len)
      |         ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./jitterentropy.h:98,
                 from ./jitterentropy-base.c:32,
                 from ./rndjent.c:86:
./jitterentropy-base-user.h:67:1: warning: 'jent_get_nstime' defined but not used [-Wunused-function]
   67 | jent_get_nstime(u64 *out)
      | ^~~~~~~~~~~~~~~
make[2]: *** [Makefile:746: rndjent.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/random-system.Tpo .deps/random-system.Plo
mv -f .deps/random.Tpo .deps/random.Plo
mv -f .deps/rndhw.Tpo .deps/rndhw.Plo
mv -f .deps/random-drbg.Tpo .deps/random-drbg.Plo
mv -f .deps/random-csprng.Tpo .deps/random-csprng.Plo
make[2]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/random'
make[1]: *** [Makefile:502: all-recursive] Error 1
make[1]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git'
make: *** [Makefile:434: all] Error 2

Details

Version
git commit 3bacdac611b9eb3bd5ae8d78156b1110e77e9518

Event Timeline

cross-compilation settings:

{ # 2019.12.13 # https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=summary # This DAMN thing fails to build with "versioninfo.rc.in:21: syntax error" if not built directly from a GIT clone
	#'repo_type' : 'archive',
	#'url' : 'https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.3.tar.bz2',
	'repo_type' : 'git',
	'recursive_git' : True,
	'depth_git' : 0, # 2019.12.13 otherwise too shallow for the specfified commit to fetch
	'url' : 'git://git.gnupg.org/libgcrypt.git',
    'branch' : '5e0187d84fc16d9ff0fbb0ccd4348657fea90d36',  # works: '5e0187d84fc16d9ff0fbb0ccd4348657fea90d36' breaks on and after: '3bacdac611b9eb3bd5ae8d78156b1110e77e9518'
	'patches' : [
		('libgcrypt/libgcrypt.patch', '-p1'),   # 2021.09.18 undo commit d2b3d046fc66a3166dc0c003a430ce756532ff74
	],
	'configure_options': '--host={target_host} --prefix={target_prefix} --with-gpg-error-prefix={target_prefix} --disable-shared --enable-static --disable-doc --enable-threads=windows ', # --disable-asm 
	'custom_cflag' : ' {original_fortify_source_trim} ', # 2019.12.13 this does not like -O3 -fstack-protector-all ... use one or more of {original_cflag_trim} {original_stack_protector_trim} {original_fortify_source_trim}
	'run_post_regexreplace' : (
		#'./autogen.sh --find-version',
		'autoreconf -fiv',
	),
	'depends_on' : (
		'libgpg_error', 
	),
}

It was in the middle of merging jitterentropy. Please see T5692 (newer jitterentropy uses pthread by default, which was disabled now).

Thank you, it successfully cross-compiles from latest git commit (not sure if it "runs", not tested it).

Three cases, one of which succeeds in cross-compiling.
(a) Fails: without 'autoreconf -fiv ' then with './autogen.sh --force --build-w64 --prefix={target_prefix}'
(b) Fails: with 'autoreconf -fiv ' then with './autogen.sh --force --build-w64 --prefix={target_prefix}'
(c) Succeeds: with 'autoreconf -fiv ' then without './autogen.sh --force --build-w64 --prefix={target_prefix}'

Logs below in case they are of any use to you. Probably not since I don't know what I am doing ...

(a) Fails: Tail of Log without 'autoreconf -fiv ' then with './autogen.sh --force --build-w64 --prefix={target_prefix}'

[23:58:07][INFO] Running run_post_regexreplace-command: './autogen.sh --force --build-w64 --prefix=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32'
[23:58:07][DEBUG] Running './autogen.sh --force --build-w64 --prefix=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32' in '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git'
autogen.sh: Using /home/u/w64root as standard install directory
./autogen.sh: 348: /home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/configure: not found

(b) Fails: Tail of Log with 'autoreconf -fiv ' then with './autogen.sh --force --build-w64 --prefix={target_prefix}'

23:59:41][INFO] Running run_post_regexreplace-command: 'autoreconf -fiv '
[23:59:41][DEBUG] Running 'autoreconf -fiv ' in '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git'
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:145: installing 'build-aux/compile'
configure.ac:79: installing 'build-aux/missing'
cipher/Makefile.am: installing 'build-aux/depcomp'
autoreconf: Leaving directory `.'
[23:59:49][INFO] Running run_post_regexreplace-command: './autogen.sh --force --build-w64 --prefix=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32'
[23:59:49][DEBUG] Running './autogen.sh --force --build-w64 --prefix=/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32' in '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git'
autogen.sh: Using /home/u/w64root as standard install directory
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-w64-mingw32
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking whether make sets $(MAKE)... (cached) yes
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-w64-mingw32-gcc accepts -g... yes
checking for x86_64-w64-mingw32-gcc option to accept ISO C89... none needed
checking whether x86_64-w64-mingw32-gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of x86_64-w64-mingw32-gcc... gcc3
checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E
checking dependency style of x86_64-w64-mingw32-gcc... gcc3
checking for library containing strerror... none required
checking for gawk... (cached) mawk
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for build system executable suffix... no
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by x86_64-w64-mingw32-gcc... /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin/ld
checking if the linker (/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-nm -B
checking the name lister (/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-w64-mingw32 format... func_convert_file_nix_to_w32
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin/ld option to reload object files... -r
checking for x86_64-w64-mingw32-objdump... x86_64-w64-mingw32-objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for x86_64-w64-mingw32-dlltool... x86_64-w64-mingw32-dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar
checking for archiver @FILE support... @
checking for x86_64-w64-mingw32-strip... (cached) x86_64-w64-mingw32-strip
checking for x86_64-w64-mingw32-ranlib... x86_64-w64-mingw32-ranlib
checking command to parse /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-nm -B output from x86_64-w64-mingw32-gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-w64-mingw32-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for x86_64-w64-mingw32-as... x86_64-w64-mingw32-as
checking for x86_64-w64-mingw32-dlltool... (cached) x86_64-w64-mingw32-dlltool
checking for x86_64-w64-mingw32-objdump... (cached) x86_64-w64-mingw32-objdump
checking for objdir... .libs
checking if x86_64-w64-mingw32-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-w64-mingw32-gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if x86_64-w64-mingw32-gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if x86_64-w64-mingw32-gcc static flag -static works... yes
checking if x86_64-w64-mingw32-gcc supports -c -o file.o... yes
checking if x86_64-w64-mingw32-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-w64-mingw32-gcc linker (/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for x86_64-w64-mingw32-windres... x86_64-w64-mingw32-windres
checking whether byte ordering is bigendian... no
checking size of unsigned short... 2
checking size of unsigned int... 4
checking size of unsigned long... 4
checking size of unsigned long long... 8
checking size of void *... 8
checking for uintptr_t... yes
checking for UINT64_C... yes
checking size of uint64_t... 8
checking which symmetric ciphers to include... arcfour blowfish cast5 des aes twofish serpent rfc2268 seed camellia idea salsa20 gost28147 chacha20 sm4
checking which public-key ciphers to include... dsa elgamal rsa ecc
checking which message digests to include... crc gostr3411-94  md4 md5 rmd160 sha1 sha256 sha512 sha3 tiger whirlpool stribog blake2 sm3
checking which key derivation functions to include... s2k pkdf2 scrypt
checking which random module to use... default
checking whether use of /dev/random is requested... yes
checking whether the experimental random daemon is requested... no
checking whether MPI and cipher assembler modules are requested... yes
checking whether memory guard is requested... no
checking whether to run large data tests... no
checking whether 'soft' HW feature bits are forced on... no
checking whether use of capabilities is requested... no
checking whether a HMAC binary check is requested... no
checking whether jitter entropy support is requested... yes
checking whether padlock support is requested... yes
checking whether AESNI support is requested... yes
checking whether SHAEXT support is requested... yes
checking whether PCLMUL support is requested... yes
checking whether SSE4.1 support is requested... yes
checking whether DRNG support is requested... yes
checking whether AVX support is requested... yes
checking whether AVX2 support is requested... yes
checking whether NEON support is requested... yes
checking whether ARMv8 Crypto Extension support is requested... yes
checking whether PPC crypto support is requested... yes
checking whether a -O flag munging is requested... yes
checking whether a instrumentation (-fprofile, -fsanitize) munging is requested... yes
checking whether to enable AMD64 as(1) feature detection... yes
checking for gpg-error-config... no
checking for gpgrt-config... no
checking for GPG Error - version >= 1.27... no
configure: error: libgpg-error is needed.
                See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .

(c) Succeeds: Tail of Log with 'autoreconf -fiv ' then without './autogen.sh --force --build-w64 --prefix={target_prefix}'

[00:01:50][INFO][MAKE] Installing 'libgcrypt' with 'install_options': 
[00:01:50][DEBUG] make install  -j 6
[00:01:50][DEBUG] Running 'make install  -j 6' in '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git'
Making install in compat
make[1]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/compat'
make[2]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/compat'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/compat'
make[1]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/compat'
Making install in mpi
make[1]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/mpi'
make[2]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/mpi'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/mpi'
make[1]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/mpi'
Making install in cipher
make[1]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/cipher'
make[2]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/cipher'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/cipher'
make[1]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/cipher'
Making install in random
make[1]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/random'
make[2]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/random'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/random'
make[1]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/random'
Making install in src
make[1]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/src'
make[2]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/src'
/usr/bin/install -c -d /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib
 /usr/bin/mkdir -p '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib'
 /usr/bin/mkdir -p '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libgcrypt.la '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib'
 /usr/bin/mkdir -p '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/aclocal'
/usr/bin/install -c ./libgcrypt.def /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libgcrypt.def
 /usr/bin/mkdir -p '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/include'
 /usr/bin/install -c libgcrypt-config '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin'
 /usr/bin/mkdir -p '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/pkgconfig'
 /usr/bin/install -c -m 644 libgcrypt.m4 '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/share/aclocal'
 /usr/bin/install -c -m 644 gcrypt.h '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/include'
 /usr/bin/install -c -m 644 libgcrypt.pc '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/pkgconfig'
libtool: install: /usr/bin/install -c .libs/libgcrypt.lai /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libgcrypt.la
libtool: install: /usr/bin/install -c .libs/libgcrypt.a /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libgcrypt.a
libtool: install: chmod 644 /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libgcrypt.a
libtool: install: x86_64-w64-mingw32-ranlib /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/libgcrypt.a
 /usr/bin/mkdir -p '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin'
  /bin/bash ../libtool   --mode=install /usr/bin/install -c dumpsexp.exe hmac256.exe mpicalc.exe '/home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin'
libtool: install: /usr/bin/install -c dumpsexp.exe /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin/dumpsexp.exe
libtool: install: /usr/bin/install -c hmac256.exe /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin/hmac256.exe
libtool: install: /usr/bin/install -c mpicalc.exe /home/u/Desktop/_working/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/bin/mpicalc.exe
make[2]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/src'
make[1]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/src'
Making install in tests
make[1]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/tests'
make[2]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/tests'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/tests'
make[1]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git/tests'
make[1]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git'
make[2]: Entering directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git'
make[1]: Leaving directory '/home/u/Desktop/_working/workdir/x86_64/libgcrypt_git'
Changing dir from /home/u/Desktop/_working/workdir/x86_64/libgcrypt_git to ..
[00:01:50][DEBUG] cd ..
[00:01:50][INFO] Building dependency 'libgcrypt': Done!

Cross-compilation build parameters:

{ # 2019.12.13 # https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=summary # This DAMN thing fails to build with "versioninfo.rc.in:21: syntax error" if not built directly from a GIT clone
																									 
	#'repo_type' : 'archive',
	#'url' : 'https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.3.tar.bz2',
	'repo_type' : 'git',
	'recursive_git' : True,
	'depth_git' : 0, # 2019.12.13 otherwise too shallow for the specfified commit to fetch
	'url' : 'git://git.gnupg.org/libgcrypt.git',
	##'branch' : 'tags/libgcrypt-1.9.2',  # 1.9.3 onward fails 2021.09.18 on commit d2b3d046fc66a3166dc0c003a430ce756532ff74
	#'branch' : '5e0187d84fc16d9ff0fbb0ccd4348657fea90d36',  # works: '5e0187d84fc16d9ff0fbb0ccd4348657fea90d36' breaks on and after: '3bacdac611b9eb3bd5ae8d78156b1110e77e9518'
	'patches' : [
		('libgcrypt/libgcrypt.patch', '-p1'),   # 2021.09.18 undo commit d2b3d046fc66a3166dc0c003a430ce756532ff74
	],
	'custom_cflag' : ' {original_fortify_source_trim} ', # 2019.12.13 this does not like -O3 -fstack-protector-all ... use one or more of {original_cflag_trim} {original_stack_protector_trim} {original_fortify_source_trim}
	'run_post_regexreplace' : (
		'autoreconf -fiv ', # https://dev.gnupg.org/T5696
		'#./autogen.sh --force --build-w64 --prefix={target_prefix}',     # https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=blob_plain;f=README.GIT;hb=HEAD https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=blob_plain;f=README;hb=HEAD
	),
	'configure_options': '--host={target_host} --prefix={target_prefix} --with-gpg-error-prefix={target_prefix} --disable-shared --enable-static --disable-doc --enable-threads=windows ', # --disable-asm 
	'depends_on' : (
		'libgpg_error', 
	),
	'update_check' : { 'type' : 'git', },
	'_info' : { 'version' : 'git', 'fancy_name' : 'libgcrypt for libaacs' },
}