New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21525 (closed update: fixed)

Opened 2 years ago

Last modified 22 months ago

valgrind does not install on Snow Leopard

Reported by: godisgovernment@… Owned by: raimue@…
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

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

Change History

  Changed 2 years ago by jmr@…

  • owner changed from macports-tickets@… to raimue@…

  Changed 2 years ago by raimue@…

  • status changed from new to assigned

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

  Changed 2 years ago by kenny@…

  • cc kenny@… added

Cc Me!

  Changed 2 years ago by nitayj@…

  • cc nitayj@… added

Cc Me!

  Changed 2 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.

  Changed 2 years ago by posco2k5@…

  • cc posco2k5@… added

Cc Me!

follow-up: ↓ 25   Changed 2 years ago by 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?

  Changed 2 years ago by posco2k5@…

I've only tested the memcheck tool and that does work, so you are probably right.

  Changed 2 years ago by snc@…

Any updates on this?

  Changed 2 years ago by clusty1@…

  • cc clusty1@… added

Cc Me!

  Changed 2 years ago by julian9@…

  • cc julian9@… added

Cc Me!

  Changed 2 years ago by mjhsieh@…

  • cc mjhsieh@… added

Cc Me!

  Changed 2 years ago by domiman@…

  • cc domiman@… added

Cc Me!

  Changed 2 years ago by arto.bendiken@…

  • cc arto.bendiken@… added

Cc Me!

  Changed 2 years ago by gamperl@…

  • cc gamperl@… added

Cc Me!

  Changed 2 years ago by francois.pradel@…

  • cc francois.pradel@… added

Cc Me!

  Changed 2 years ago by clusty1@…

  • cc clusty1@… removed

Cc Me!

  Changed 2 years ago by clusty1@…

  • cc clusty1@… added

Cc Me!

  Changed 2 years ago by igenbergs@…

  • cc igenbergs@… added

Cc Me!

  Changed 2 years ago by vsbuffalo@…

  • cc vsbuffalo@… added

Cc Me!

  Changed 2 years ago by francesco086@…

  • cc francesco086@… added

Cc Me!

  Changed 2 years ago by bgschaid@…

  • cc bgschaid@… added

Cc Me!

  Changed 2 years ago by camilo.aguilar@…

  • cc camilo.aguilar@… added

Cc Me!

  Changed 2 years ago by pramsey@…

  • cc pramsey@… added

Cc Me!

in reply to: ↑ 7   Changed 2 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 2 years ago by guillaume-jean@…

Patch for the valgrind Portfile

Changed 2 years ago by guillaume-jean@…

Global patch for the valgrind sourcefiles

  Changed 23 months ago by raimue@…

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

  Changed 22 months ago by mak.972@…

Cc Me!

  Changed 22 months 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.....

  Changed 22 months ago by raimue@…

  • status changed from assigned to closed
  • resolution set to fixed

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.