Page MenuHome GnuPG

libgcrypt 1.7.1 not compiling
Closed, ResolvedPublic

Description

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 libgcrypt.la
-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/libgcrypt.so
-L/usr/local/lib /usr/local/lib/libgpg-error.so -Wl,-rpath -Wl,/usr/local/lib
./.libs/libgcrypt.so: 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'
make[1]:
* [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

Details

Version
1.7.1

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. )

Hi,

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

werner claimed this task.