Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554808 - dev-util/valgrind: configure: error: Valgrind requires glibc version 2.2 - 2.19
Summary: dev-util/valgrind: configure: error: Valgrind requires glibc version 2.2 - 2.19
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-14 00:45 UTC by om3i
Modified: 2016-04-12 08:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (dev-util:valgrind-3.10.1:20150713-231513.log,5.69 KB, text/plain)
2015-07-14 00:48 UTC, om3i
Details
config.log (config.log,27.79 KB, text/plain)
2015-07-14 00:50 UTC, om3i
Details
dev-util:valgrind-3.10.1:20160315-142723.log.gz (dev-util:valgrind-3.10.1:20160315-142723.log.gz,3.32 KB, application/gzip)
2016-03-15 19:52 UTC, Thibaud CANALE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description om3i 2015-07-14 00:45:26 UTC
>checking the GLIBC_VERSION version... unsupported version 2.21
>configure: error: Valgrind requires glibc version 2.2 - 2.19

Reproducible: Always
Comment 1 om3i 2015-07-14 00:48:52 UTC
Created attachment 406724 [details]
build.log
Comment 2 om3i 2015-07-14 00:50:07 UTC
Created attachment 406726 [details]
config.log
Comment 3 Dale Lukas Peterson 2015-07-25 05:26:10 UTC
There is a patch on Linux from Scratch, I have tried applying it via /etc/portage/patches, but it does not work.  Here is the patch:

http://www.linuxfromscratch.org/blfs/view/svn/general/valgrind.html
Comment 4 om3i 2015-07-25 07:03:40 UTC
This patch works if you patch configure.ac instead of configure, i.e.:

--- a/configure.ac 2015-07-14 23:25:50.000000000 +0300
+++ b/configure.ac 2015-07-14 23:32:45.000000000 +0300
@@ -1025,6 +1025,13 @@
 	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
 	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
 	;;
+     2.21)
+	AC_MSG_RESULT(2.21 family)
+	AC_DEFINE([GLIBC_2_21], 1, [Define to 1 if you're using glibc 2.21.x])
+	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
+	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
+	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
+	;;
      darwin)
 	AC_MSG_RESULT(Darwin)
 	AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin])
Comment 5 Daniel Santos 2015-07-28 02:33:05 UTC
I can confirm this error
Comment 6 Tom Li 2015-07-28 14:15:59 UTC
emerging dev-util/valgrind-3.10.1 doesn't recognize glibc 2.20/2.21 on a newer system, configure fails with:

    checking the GLIBC_VERSION version... unsupported version 2.21
    configure: error: Valgrind requires glibc version 2.2 - 2.19

There's already a patch "valgrind-3.9.0-glibc-2.19.patch" to make valgrind recognize glibc 2.19, and ArchLinux just applied a similar patch to make it also recognize glibc 2.20/2.21:

https://projects.archlinux.org/svntogit/packages.git/plain/trunk/valgrind-3.9.0-glibc-2.21.patch?h=packages/valgrind

So this issue is very likely get fixed easily.
Comment 7 Tom Li 2015-07-28 15:22:47 UTC
Just applied the patch, and valgrind seems running smoothly.
Comment 8 Anthony Basile gentoo-dev 2015-07-29 02:49:07 UTC
This is a repeated ritual with valgrind.  Every time a new version of glibc comes out you need to patch configure.ac.  I added epatch_user a while back so users could apply their own patch without waiting for me to get around to it.  Just look in the $FILESDIR for a similar patch and modify it.

Anyhow 3.10.1 should now build against glibc-2.21.  I added the patch to the stable ebuild without revbump.  Reopen this bug if it doesn't work for some reason.
Comment 9 Thibaud CANALE 2016-03-15 19:52:30 UTC
Created attachment 428312 [details]
dev-util:valgrind-3.10.1:20160315-142723.log.gz

Hello Anthony,

(In reply to Anthony Basile from comment #8)
> Anyhow 3.10.1 should now build against glibc-2.21.  I added the patch to the
> stable ebuild without revbump.  Reopen this bug if it doesn't work for some
> reason.

The current stable version 3.10.1 doesn't work with sys-libs/glibc in 2.22 branch (the version 2.22-r2 is installed on my system):
checking the GLIBC_VERSION version... unsupported version 2.22
configure: error: Valgrind requires glibc version 2.2 - 2.19

Thanks for support.
Comment 10 Thibaud CANALE 2016-03-15 19:54:29 UTC
Sorry for the noise, I forgot to mention the currently unstable version (~amd64) 3.11.0 doesn't have this problem (but others, unfortunately… but not related to this bug report).