GNU bug report logs -
#62949
libgcrypt version in core-updates
Previous Next
Reported by: Andreas Enge <andreas <at> enge.fr>
Date: Wed, 19 Apr 2023 16:29:03 UTC
Severity: normal
Tags: notabug
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62949 in the body.
You can then email your comments to 62949 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#62949
; Package
guix
.
(Wed, 19 Apr 2023 16:29:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andreas Enge <andreas <at> enge.fr>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 19 Apr 2023 16:29:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
this looks to me like it could be a duplicate of #62936, but since this
bug is closed, I am simply opening a new one.
The libgcrypt version was updated from 1.8.8 to 1.10.1 from master to
core-updates.
This causes ./configure to fail like so:
...
checking for gcry_md_open in -lgcrypt... no
checking for gcrypt.h... yes
configure: error: GNU libgcrypt not found; please install it
I suppose that the same problem occurred in #62936, but did not manifest
itself as clearly since one usually does not rerun configure.
It looks as if the API changed incompatibly between the two versions.
Andreas
Information forwarded
to
bug-guix <at> gnu.org
:
bug#62949
; Package
guix
.
(Wed, 19 Apr 2023 16:38:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 62949 <at> debbugs.gnu.org (full text, mbox):
Hallo!
Andreas Enge <andreas <at> enge.fr> skribis:
> this looks to me like it could be a duplicate of #62936, but since this
> bug is closed, I am simply opening a new one.
>
> The libgcrypt version was updated from 1.8.8 to 1.10.1 from master to
> core-updates.
>
> This causes ./configure to fail like so:
> ...
> checking for gcry_md_open in -lgcrypt... no
> checking for gcrypt.h... yes
> configure: error: GNU libgcrypt not found; please install it
>
> I suppose that the same problem occurred in #62936, but did not manifest
> itself as clearly since one usually does not rerun configure.
Given that the ‘guix’ package builds fine on ‘core-updates’, it’s most
likely a build environment issue.
What does ‘config.log’ say?
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#62949
; Package
guix
.
(Wed, 19 Apr 2023 18:20:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 62949 <at> debbugs.gnu.org (full text, mbox):
Am Wed, Apr 19, 2023 at 06:37:08PM +0200 schrieb Ludovic Courtès:
> Given that the ‘guix’ package builds fine on ‘core-updates’, it’s most
> likely a build environment issue.
> What does ‘config.log’ say?
My environment is Debian on aarch64, with Guix as the package manager.
So it is possible that the Debian environment disturbs what is happening;
but I see the problem depending on whether I install the new or the old
libgcrypt from Guix.
Here are lines from config.log with things related to crypto in them:
configure:8987: checking whether Guile-Gcrypt is available and recent enough
configure:9005: result: yes
...
configure:9062: WARNING: The Guile-Lib requirement was not satisfied (>= 0.2.7);
Some features such as the Go importer will not be usable.
(not crypto related, but suspicious)
...
configure:9435: checking for libgcrypt-config
configure:9458: found /home/andreas/.guix-profile/bin/libgcrypt-config
configure:9470: result: /home/andreas/.guix-profile/bin/libgcrypt-config
configure:9478: checking libgcrypt's library directory
configure:9490: result: /gnu/store/2xsdih7m18d0f2kiicxrh9pwinjfwzkj-libgcrypt-1.10.1/lib
configure:10900: checking for gcry_md_open in -lgcrypt
configure:10922: g++ -o conftest -g -O2 conftest.cpp -lgcrypt >&5
ld: /home/andreas/.guix-profile/lib/libgpg-error.so.0: undefined reference to `pthread_mutex_trylock <at> GLIBC_2.34'
collect2: error: ld returned 1 exit status
configure:10922: $? = 1
configure: failed program was:
...
configure:10932: result: no
configure:10941: checking for gcrypt.h
configure:10941: g++ -c -g -O2 conftest.cpp >&5
configure:10941: $? = 0
configure:10941: result: yes
configure:10950: error: GNU libgcrypt not found; please install it.
So this is not related to libgcrypt, but to libgpg-error.so linked with an old
glibc; we should be at 2.35 in core-updates, no?
Strangely enough, when I do ldd on /home/andreas/.guix-profile/lib/libgpg-error.so.0
then it is linked with /gnu/store/...-glibc-2.35/lib/libc.so.
Where does this pthread_mutex_trylock <at> GLIBC_2.34 come from?
I tried "guix shell --pure -D guix" and then "./configure", but the result
is the same.
I will try again on my pure Guix machine.
Andreas
Information forwarded
to
bug-guix <at> gnu.org
:
bug#62949
; Package
guix
.
(Wed, 19 Apr 2023 20:41:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 62949 <at> debbugs.gnu.org (full text, mbox):
Hi,
Andreas Enge <andreas <at> enge.fr> skribis:
> My environment is Debian on aarch64, with Guix as the package manager.
> So it is possible that the Debian environment disturbs what is happening;
> but I see the problem depending on whether I install the new or the old
> libgcrypt from Guix.
>
> Here are lines from config.log with things related to crypto in them:
> configure:8987: checking whether Guile-Gcrypt is available and recent enough
> configure:9005: result: yes
> ...
> configure:9062: WARNING: The Guile-Lib requirement was not satisfied (>= 0.2.7);
> Some features such as the Go importer will not be usable.
> (not crypto related, but suspicious)
> ...
> configure:9435: checking for libgcrypt-config
> configure:9458: found /home/andreas/.guix-profile/bin/libgcrypt-config
> configure:9470: result: /home/andreas/.guix-profile/bin/libgcrypt-config
> configure:9478: checking libgcrypt's library directory
> configure:9490: result: /gnu/store/2xsdih7m18d0f2kiicxrh9pwinjfwzkj-libgcrypt-1.10.1/lib
> configure:10900: checking for gcry_md_open in -lgcrypt
> configure:10922: g++ -o conftest -g -O2 conftest.cpp -lgcrypt >&5
> ld: /home/andreas/.guix-profile/lib/libgpg-error.so.0: undefined reference to `pthread_mutex_trylock <at> GLIBC_2.34'
That’s the thing: you have libgpg-error.so linked against glibc 2.33
popping up, and that doesn’t fly with glibc 2.35¹.
You need to pick up one consistent environment (with a single glibc
version) and stick to it. The most reliable way to do that is by using
‘guix shell -C -D guix’ and then running “make clean” to begin with.
HTH!
Ludo’.
¹ The details are in the ‘NEWS’ for glibc 2.34:
* In order to support smoother in-place-upgrades and to simplify
the implementation of the runtime all functionality formerly
implemented in the libraries libpthread, libdl, libutil, libanl has
been integrated into libc. New applications do not need to link with
-lpthread, -ldl, -lutil, -lanl anymore.
Added tag(s) notabug.
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 19 Apr 2023 20:42:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
62949 <at> debbugs.gnu.org and Andreas Enge <andreas <at> enge.fr>
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 19 Apr 2023 20:42:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 18 May 2023 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.