|
From: Bruno C. <bc...@le...> - 2009-05-19 11:58:26
|
hi all i am newby i have command line program i launch it in terminal same this (compile gcc 4.2 option -g) ./Roxane -h 24 -t 8 ../../fforum-20-39.src when i use valgrind, valgrind ./Roxane -h 24 -t 8 ../../fforum-20-39.src valgring says "cannot execute binary file" what is a probleme? -- Bruno Causse |
|
From: Dan K. <da...@ke...> - 2009-05-19 13:12:18
|
On Tue, May 19, 2009 at 4:58 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" What does file Roxane say? And what does uname -a say? |
|
From: Bruno C. <bc...@le...> - 2009-05-19 13:29:44
|
Le 19 mai 09 à 15:12, Dan Kegel a écrit : > On Tue, May 19, 2009 at 4:58 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" > > What does > 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 > -- Bruno Causse |
|
From: Dan K. <da...@ke...> - 2009-05-19 14:07:20
|
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? Also, how did you get and build your copy of valgrind? |
|
From: Bruno C. <bc...@le...> - 2009-05-19 14:58:44
|
Le 19 mai 09 à 16:07, Dan Kegel a écrit : > 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? > > Also, how did you get and build your copy of valgrind? http://blog.kowalczyk.info/article/Valgrind-on-mac.html -- Bruno Causse |
|
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 |