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)

Portfile-valgrind.diff (489 bytes) - added by guillaume-jean@… 15 years ago.
Patch for the valgrind Portfile
patch-valgrind-global.diff (39.0 KB) - added by guillaume-jean@… 15 years ago.
Global patch for the valgrind sourcefiles

Download all attachments as: .zip

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: newassigned

Will have to wait for valgrind 3.5.1, see https://bugs.kde.org/show_bug.cgi?id=205241

comment:3 Changed 15 years ago by kenny@…

Cc: kenny@… added

Cc Me!

comment:4 Changed 15 years ago by nitayj@…

Cc: nitayj@… added

Cc Me!

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:6 Changed 15 years ago by posco2k5@…

Cc: posco2k5@… added

Cc Me!

comment:7 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:9 Changed 15 years ago by nerdling (Jeremy Lavergne)

Any updates on this?

comment:10 Changed 15 years ago by clusty1@…

Cc: clusty1@… added

Cc Me!

comment:11 Changed 15 years ago by julian9@…

Cc: julian9@… added

Cc Me!

comment:12 Changed 15 years ago by mjhsieh@…

Cc: mjhsieh@… added

Cc Me!

comment:13 Changed 15 years ago by domiman@…

Cc: domiman@… added

Cc Me!

comment:14 Changed 15 years ago by arto.bendiken@…

Cc: arto.bendiken@… added

Cc Me!

comment:15 Changed 15 years ago by gamperl@…

Cc: gamperl@… added

Cc Me!

comment:16 Changed 15 years ago by francois.pradel@…

Cc: francois.pradel@… added

Cc Me!

comment:17 Changed 15 years ago by clusty1@…

Cc: clusty1@… removed

Cc Me!

comment:18 Changed 15 years ago by clusty1@…

Cc: clusty1@… added

Cc Me!

comment:19 Changed 15 years ago by igenbergs@…

Cc: igenbergs@… added

Cc Me!

comment:20 Changed 15 years ago by vsbuffalo@…

Cc: vsbuffalo@… added

Cc Me!

comment:21 Changed 15 years ago by francesco086@…

Cc: francesco086@… added

Cc Me!

comment:22 Changed 15 years ago by bgschaid@…

Cc: bgschaid@… added

Cc Me!

comment:23 Changed 15 years ago by camilo.aguilar@…

Cc: camilo.aguilar@… added

Cc Me!

comment:24 Changed 15 years ago by pramsey@…

Cc: pramsey@… added

Cc Me!

comment:25 in reply to:  7 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:27 Changed 15 years ago by mak.972@…

Cc Me!

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: assignedclosed

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.

Note: See TracTickets for help on using tickets.