From: Nicholas N. <n.n...@gm...> - 2009-05-20 00:03:06
|
On Wed, May 20, 2009 at 12:07 AM, Dan Kegel <da...@ke...> wrote: > On Tue, May 19, 2009 at 6:29 AM, Bruno Causse <bc...@le...> wrote: >> when i use valgrind, >> valgrind ./Roxane -h 24 -t 8 ../../fforum-20-39.src >> valgring says "cannot execute binary file" >> >> file Roxane >> >> Mach-O 64 bit executable X86-64 >> >> uname -a >> >> Darwin Kernel version 9.7.0 : "date"; root:xnu-1228.12.14~1/RELEASE_I386 >> i386 > > That seems fine... although I have only used valgrind on 32 bit apps, > can you try building Roxane as a 32 bit executable and see if that works better? It's not fine, it's a 64-bit executable but by default Valgrind-on-Mac only handles 32-bits. (This is because OS 10.5 builds everything as 32-bit by default, even though it's 64-bit capable.) You can either build your executable as 32-bit, as Dan says, or configure with --target=amd64-linux. If you do the latter it may not work, as it hasn't been tested for a while. Nick |