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
shweta_hari set Version to 1.7.1.Jun 23 2016, 8:07 AM
shweta_hari added a subscriber: shweta_hari.

gniibe added a subscriber: gniibe.Jun 23 2016, 9:22 AM

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 ?

Hello,

I posted fix for this issue to mailing-list. See:
http://marc.info/?l=gcrypt-devel&m=146732375910584&w=2

werner added a subscriber: werner.

It has been fixed with commit 4a983e3.

werner closed this task as Resolved.Jul 13 2016, 3:08 PM
werner claimed this task.