1.9.1 build error (cross-build for Windows)

Jussi Kivilinna jussi.kivilinna at iki.fi
Sat Jan 30 12:09:29 CET 2021


Hello,

On 29.1.2021 21.23, Andreas Metzler wrote:
> Hello,
> 
> 1.9.1 does not cross-build for Windows (on Linux):
> 
> libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../random -I.. -I../src -I../../src -I/usr/i686-w64-mingw32/include -g -O0 -fno-delete-null-pointer-checks -Wall -c ../../random/rndjent.c  -DDLL_EXPORT -DPIC -o .libs/rndjent.o
> ../../random/rndjent.c: In function 'is_rng_available':
> ../../random/rndjent.c:240:40: error: 'HWF_INTEL_RDTSC' undeclared (first use in this function)
> 
> libgcrypt is configureed with:
> LDFLAGS="-Xlinker --no-insert-timestamp" CFLAGS="-g -Os" CPPFLAGS= ../configure \
>      --prefix=/usr/i686-w64-mingw32 \
>      --with-libgpg-error-prefix=/usr/i686-w64-mingw32 \
>      --disable-padlock-support --disable-asm \
>      --enable-static \
>      --host i686-w64-mingw32
> [...]
> configure:16746: checking architecture and mpi assembler functions
> configure:16753: result: disabled
> [...]
> 

Building with --disable-asm is broken in 1.9.1. You can try building without --disable-asm or trying attached patch.

Sorry for the inconvenience.

-Jussi

> 
> cu Andreas
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Revert-Define-HW-feature-flags-per-architecture.patch
Type: text/x-patch
Size: 4977 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20210130/e90d17da/attachment-0001.bin>


More information about the Gcrypt-devel mailing list