New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Valgrind spkg to version 3.8.1 #13060
Comments
comment:1
After applying the diff of the above commit, one has to rebuild the configure scripts with autogen.sh (which is available in the svn, not in the usual tarballs). |
comment:2
Here comes a slightly updated spkg: I've applied the two mentioned patches and rerun autogen.sh to regenerate the build system files. Another solution whould be to properly package a recent valgrind svn version, although I'd prefer to use this light solution and wait for a proper stable release to make a real update to valgrind. |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_13060-spkg.diff.gz Spkg diff, for review only. |
comment:3
There might be something wrong with valgrind testsuite. |
comment:4
In fact, the current spkg is not functional at all. It builds correctly, but fails to pass its test suite and Sage does not launch with the -valgrind flag. |
comment:5
The startup problem seem to be caused by strlen being inlined and its symbol not found by valgrind which fails to start. |
Work Issues: testsuite fails |
Author: Jean-Pierre Flori |
comment:6
Installing the debug version of libc6 (libc6-dbg) on my Ubuntu installation solves both the startup problem. |
comment:7
On a debian installation on top of recent hardware (corei7-avx) I'm able to install the old spkg (debian currently ships eglibc 2.13), but get a SIGILL when launching sage, which comes as no surprise: The latest svn version is enough to let sage starts. On the same install, the test suite with the old spkg yields
the one proposed here yields
which was expected.
On the ubuntu install mentioned above, with the
and with the latest svn version
Whatsoever, I'm not sure that the problem of dealing with avx instructions should be dealt with here. About the test suite failure, I'm not convinced it should prevent including the updated p0 spkg proposed here, if they were present before. If we expect these failures to be fixed, I can definitely not take care of this with my little knowledge of valgrind. |
comment:8
Replying to @jpflori:
I know I ran the test suite last time at least once, but I think I saw a few failures on my Mac. Now trying to install it on Sage 5.0 neither will even build. I should have thought to build it when I was testing the betas. The old spkg gives
So it looks like the former is a problem with the new gcc package:
And the spkg for review here gives.
Here |
comment:9
Replying to @gvol:
Oh, I didn't realize that... I'll look into the arch stuff but have no apple stuff to test it. |
comment:10
Just a reminder for myself: indeed the apple gcc supports -arch, but the fsf one does not. |
comment:11
Replying to @jpflori:
Cool, thanks. I just tried it (in the same place) and got the same error though. Perhaps, it's in a different place?
I think if you can force sage to use the gcc spkg it would exhibit the same problem, unless you are already using it. What does It might be worth asking Jeroen (or on sage-devel) since he knows it a lot better. |
comment:12
The spkg is up now, I was a little slow to upload it. About the gcc -arch problem, I think the problem is with Valgrind configure script which adds this flag as soon as it detects that its run on OSX because it assumes that someone on OSX will be using an Apple gcc. |
comment:13
Oh and valgrind.org seems down, so I don't have access to their svn anymore to see if anythig was commited about this gcc thingy lately. We should maybe look into what Fink does: |
comment:14
Replying to @jpflori:
No problem. It works now—except for actually building. :-)
Ah, now I see it. I guess we'll have to patch that, or ask them to do it upstream. Fink simply disabled mpicc http://fink.cvs.sourceforge.net/fink/dists/10.7/stable/main/finkinfo/devel/valgrind.info?view=markup which was the FSF compiler rather than gcc. |
comment:15
Valgrind website is back up. |
comment:16
I've included some autotools magic to test if the -arch i386/x86_64 flag is supported and fall back to the -m32/64. I've put the diffs into the patches directory (although they are already applied because we have to run autoreconf) and will upload them here for review purpose. |
Diff for upstream svn commit r12323; accept glibc 2.15. |
Attachment: valgrind-3.8.1.diff.gz spkg diff, for review only |
comment:22
It looks like the diffs checking for
For the record, the exact way that I made the "fixes" was to add
to Perhaps we should ask the maintainers of valgrind the best way to proceed. |
comment:23
Replying to @gvol:
Yup I did not include the patch we wrote before because it seemed too much of a hassle and did not lead to a successful build of Valgrind.
I think the best way to proceed is unfortunately to use Apple's GCC. |
Changed work issues from Test on OSX to Use Apple compiler on OS X. |
This comment has been minimized.
This comment has been minimized.
comment:27
On Fedora 19, I get:
|
comment:28
I'd say extend the treatment of GLIBC 2.15 in attachment: glibc-2.15.diff (i.e. treat it as 2.14) to GLIBC 2.16 and 2.17. |
comment:29
There is even 2.18 now. |
comment:30
Do you want to update it? I would be fine with the current spkg, too. Its better than what we have and users of cutting-edge distros probably don't need help to install the distro valgrind. |
comment:31
Sure, I'll try to produce the trivial patch tonight. Note we should surely take care of #14097 as well if wa want this spkg to be useful. |
comment:32
I just checked Valgrind svn and the fix from attachment: glibc-2.15.diff is also used for 2.16-18 so providing a fixed spkg will be easy. |
comment:33
References of the valgrind commits: r12743, r13228, r13504. |
Spkg diff, for review only. |
This comment has been minimized.
This comment has been minimized.
comment:34
Attachment: valgrind-3.8.1.p0.diff.gz If we really want to be able to use Valgrind on OS X when Sage built its own GCC, let's do that on another ticket. |
Changed work issues from Use Apple compiler on OS X. to none |
comment:35
Looks good to me, thanks! Harald: please update on the mirrors |
Reviewer: Volker Braun |
comment:37
done, file is on the server |
Valgrind 3.7.0 configure script complains about glibc version 2.15 (which is shipped e.g. with Ubuntu 12.04).
The usual solution is to treat this version as the previous one:
see commit r12323 in the valgrind svn, or tickets on different distribution bug tracker.
Furthermore, the autogen.sh scripts fails with recent automake version.
This is commit r12396.
All these fixes are in Valgrind 3.8.1.
Try spkg at
http://boxen.math.washington.edu/home/jpflori/spkg/valgrind-3.8.1.p0.spkg
Support is announced upstream for OS X from 10.6.X onward, but building Valgrind might fail if you're using a non Apple gcc (such as the FSF one in Sage's spkg).
Upstream: Fixed upstream, but not in a stable release.
CC: @gvol @jpflori @haraldschilly
Component: packages: optional
Keywords: valgrind spkg
Author: Jean-Pierre Flori
Reviewer: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/13060
The text was updated successfully, but these errors were encountered: