A new entry in the annals of unfortunate software release dates:
- On August 19, Valgrind 3.5.0 was released. It added support for Mac OS 10.5.
- On August 28, Mac OS 10.6 was released.
- Valgrind 3.5.0 does not support Mac OS 10.6.
If you try to install Valgrind on a machine running Mac OS 10.6, it will fail at configure-time. If you hack the configure file appropriately so that the install completes, Valgrind will run but crash quickly on any program. Bug 205241 has the details. Greg Parker says he has a series of patches to make Valgrind work and he’s just waiting for the open source release of xnu (the core of Mac OS X) before making them public. With some luck, these fixes will make it into Valgrind 3.5.1 relatively soon.
However, once that’s fixed, there’s another problem. Mac OS 10.6 uses 64-bit executables by default. In comparison, 10.5 uses 32-bit executables by default, even though it’s capable of creating and running 64-bit executables. Unfortunately Valgrind’s support for 64-bit executables on Mac OS X isn’t very good. The main problem is that start-up is sloooooow, which means that even Hello World takes over four seconds to run on my MacBook Pro. Fixing this one will be harder, as it will require reworking the Mac OS X start-up sequence. Bug 205938 is tracking this problem.
Related to this: does anyone know if there is an easy way to have both 10.5 and 10.6 installed on a single machine? That would be a big help when it comes to developing and testing Valgrind’s Mac OS X support.