Page MenuHome GnuPG

libgcrypt 1.7.1 not compiling
Closed, ResolvedPublic


We are getting an error while compiling the latest version of libgcrypt 1.7.1

See below text :

make[2]: Entering directory `/sapwork/GnuPG/gnupg-2.0.30/libgcrypt-1.7.1/src'
/bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/local/include -g -O2
-fvisibility=hidden -Wall -o mpicalc mpicalc-mpicalc.o
-L/usr/local/lib -lgpg-error
libtool: link: gcc -I/usr/local/include -g -O2 -fvisibility=hidden -Wall
-o .libs/mpicalc mpicalc-mpicalc.o ./.libs/
-L/usr/local/lib /usr/local/lib/ -Wl,-rpath -Wl,/usr/local/lib
./.libs/ undefined reference to `_gcry_sha1_transform_amd64_avx'
collect2: ld returned 1 exit status
make[2]: * [mpicalc] Error 1
make[2]: Leaving directory `/sapwork/GnuPG/gnupg-2.0.30/libgcrypt-1.7.1/src'
* [all-recursive] Error 1
make[1]: Leaving directory `/sapwork/GnuPG/gnupg-2.0.30/libgcrypt-1.7.1'
make: *** [all] Error 2

-I noticed that this error is similar to big fix ID- 1619 but I see no
resolution steps mentioned. Attaching the log file for reference



Event Timeline

I think that it requires GCC version 4.6 or later for AVX instruction.
4.9 or later is better.
Ideally, configure should check GCC version.

Can you please let me know how we can fix this bug. We are using Redhat Linux 6
and the highest version it supports for gcc is 4.4.x . If we need to go for a
higher version we need to download source code and do the rpm( which may take
more time. )


Can you please let me know if we could get hold of the older version than
1.7.1 of libgcrypt ?

werner added a subscriber: werner.

It has been fixed with commit 4a983e3.

werner claimed this task.