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