Opened 15 years ago
Closed 15 years ago
#21525 closed update (fixed)
valgrind does not install on Snow Leopard
Reported by: | godisgovernment@… | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | SnowLeopard | Cc: | kenny@…, nitayj@…, posco2k5@…, julian9@…, mjhsieh@…, domiman@…, arto.bendiken@…, gamperl@…, francois.pradel@…, clusty1@…, igenbergs@…, vsbuffalo@…, francesco086@…, bgschaid@…, camilo.aguilar@…, pramsey@… |
Port: | valgrind |
Description
The package needs to be updated a little for kernel 10.0.0
Attachments (2)
Change History (31)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to raimue@… |
---|
comment:2 Changed 15 years ago by raimue (Rainer Müller)
Status: | new → assigned |
---|
comment:5 Changed 15 years ago by posco2k5@…
I have been able to successfully apply and build valgrind using snowleopard.patch from https://bugs.kde.org/show_bug.cgi?id=205241
From what I can tell, valgrind builds as 32-bit and can only be used on 32-bit binaries. This might be related to 'uname -m' returning 'i386' on Snow Leopard? I know that has caused some issues with configure scripts on other ports.
Looks like progress is moving forward on valgrind's end though.
comment:7 follow-up: 25 Changed 15 years ago by raimue (Rainer Müller)
I already tried the patch when I first linked to the upstream bug report, but it still failed with #error unknown darwin version
in coregrind. Probably only the memcheck tool has been patched?
comment:8 Changed 15 years ago by posco2k5@…
I've only tested the memcheck tool and that does work, so you are probably right.
comment:25 Changed 15 years ago by guillaume-jean@…
Replying to raimue@…:
I already tried the patch when I first linked to the upstream bug report, but it still failed with
#error unknown darwin version
in coregrind. Probably only the memcheck tool has been patched?
Hi all, I had similar issues while compiling valgrind. Therefore, I updated the patch file from https://bugs.kde.org/show_bug.cgi?id=205241 and created a corresponding Portfile patch to integrate this patch during the installation process. With this I successfully compiled valgrind and compiled it for both x86 and amd64 archs. I haven't extensively tested the build, so some feedback from that might be appreciated.
I'll attach both patch files.
Changed 15 years ago by guillaume-jean@…
Attachment: | Portfile-valgrind.diff added |
---|
Patch for the valgrind Portfile
Changed 15 years ago by guillaume-jean@…
Attachment: | patch-valgrind-global.diff added |
---|
Global patch for the valgrind sourcefiles
comment:26 Changed 15 years ago by raimue (Rainer Müller)
This still does not build for me:
/usr/bin/gcc-4.2 -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement -fno-stack-protector -L/opt/local/lib -arch x86_64 -o vgpreload_memcheck-x86-darwin.so -dynamic -dynamiclib -all_load -arch i386 ../coregrind/libreplacemalloc_toolpreload-x86-darwin.a vgpreload_memcheck_x86_darwin_so-mc_replace_strmem.o ld: warning: in ../coregrind/libreplacemalloc_toolpreload-x86-darwin.a, file is not of required architecture
comment:28 Changed 15 years ago by wiking@…
I haven't got time to check the patches by guillaume-jean, but there's a very short tutorial how to build your valgrind on 10.6 http://code.google.com/p/data-race-test/wiki/ValgrindOnSnowLeopard
it works for me! now only a Portfile is missing.....
comment:29 Changed 15 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
There is now a valgrind-devel port as of r66719 which installs a snapshot from Subversion with additional patches. It works for me on Snow Leopard, but please report any functional problems directly to upstream.
Will have to wait for valgrind 3.5.1, see https://bugs.kde.org/show_bug.cgi?id=205241