|
From: nandhini c. <nan...@gm...> - 2013-03-03 15:21:47
|
Hi I am trying to use valgrind to observe memory access patterns of certain benchmarks on ARM core. I have a pandaboard with arm-cortexA9. On my x86 machine, i have sourcery codebench cross compilation tools installed. I cross compiled valgrind -- ./configure --target=arm-none-linux-gnueabi --host=armv7-none-linux-gnueabi --prefix=<installation-path> CFLAGS=-static make make install Everything was fine. Then I copied the installation folder to my pandaboard. When i try to run valgrind, i only get "cannot execute binary executable ". Am I doing something wrong here ? I tried changing options from -marm -mcpu=cortex-a8 to -march=armv7 -mcpu=cortex-a9. it does not work. Coud you please help ? I really need to get this working as quickly as possible. thanks, Nandhini |
|
From: Dan K. <da...@ke...> - 2013-03-03 15:40:35
|
On Sun, Mar 3, 2013 at 7:21 AM, nandhini chandramoorthy <nan...@gm...> wrote: > I am trying to use valgrind to observe memory access patterns of certain > benchmarks on ARM core. I have a pandaboard with arm-cortexA9. On my x86 > machine, i have sourcery codebench cross compilation tools installed. I > cross compiled valgrind -- > ./configure --target=arm-none-linux-gnueabi --host=armv7-none-linux-gnueabi > --prefix=<installation-path> CFLAGS=-static > make > make install > > Everything was fine. Then I copied the installation folder to my pandaboard. > When i try to run valgrind, i only get "cannot execute binary executable ". Which toolchain? (You're compiling the benchmarks and valgrind with the same toolchain, right?) What does 'file' say about the bad binary, and about good ones? - Dan |
|
From: nandhini c. <nan...@gm...> - 2013-03-03 16:05:40
|
Hi I tried the following 3 things : 1. I used Code Sourcery tool chain (arm-none-linux-gnueabi-gcc) and changed $CC, $CPP, $CXX etc . Then I did ./configure --target=arm-none-linux-gnueabi --host=armv7-none-linux-gnueabi --prefix=<installation-path> CFLAGS=-static make make install Then I copied the installation directory to pandaboard. When I type "valgrind --tool=cachegrind " I get "failed to start tool cachegrind for platform 'arm-linux': permission denied." 2. I have ubuntu 11.10 installed on the pandaboard. I used gcc toolchain to compile and install valgrind on pandaboard directly and when I try to run it, i get the same error message. 3. In all the Makefiles I changed options to cortex-a9. The original switches are -marm -mcpu=cortex-a8. I changed everything to -march=armv7 -mcpu=cortex-a9 -mfpu=neon. Then on the PANDABOARD, I used gcc toolchain to compile and make. ./configure --prefix=<installation-path> make During make I get a number of warnings "m-libassert.c warning : switch -mcpu=cortex-a9 conflicts with -march=armv7 switch [eabled by default] " Then make exited with an error (an assembler message) Could you please tell me what mistake I am making ? On Sun, Mar 3, 2013 at 10:40 AM, Dan Kegel <da...@ke...> wrote: > On Sun, Mar 3, 2013 at 7:21 AM, nandhini chandramoorthy > <nan...@gm...> wrote: > > I am trying to use valgrind to observe memory access patterns of certain > > benchmarks on ARM core. I have a pandaboard with arm-cortexA9. On my x86 > > machine, i have sourcery codebench cross compilation tools installed. I > > cross compiled valgrind -- > > ./configure --target=arm-none-linux-gnueabi > --host=armv7-none-linux-gnueabi > > --prefix=<installation-path> CFLAGS=-static > > make > > make install > > > > Everything was fine. Then I copied the installation folder to my > pandaboard. > > When i try to run valgrind, i only get "cannot execute binary executable > ". > > Which toolchain? > (You're compiling the benchmarks and valgrind with the same toolchain, > right?) > What does 'file' say about the bad binary, and about good ones? > - Dan > |
|
From: Dan K. <da...@ke...> - 2013-03-03 16:13:02
|
Why did you add -static? In ubuntu 11.10, when you compiled valgrind on the pandaboard, how did you do it? |
|
From: Alina <ali...@ya...> - 2016-01-16 23:00:15
|
nandhini chandramoorthy <nandhini.leo <at> gmail.com> writes: > > > HiI tried the following 3 things : 1. I used Code Sourcery tool chain (arm-none-linux-gnueabi-gcc) and changed $CC, $CPP, $CXX etc . Then I did ./configure --target=arm-none-linux-gnueabi --host=armv7-none-linux-gnueabi --prefix=<installation-path> CFLAGS=-static > make > make installThen I copied the installation directory to pandaboard. When I type "valgrind --tool=cachegrind " I get "failed to start tool cachegrind for platform 'arm-linux': permission denied."2. I have ubuntu 11.10 installed on the pandaboard. I used gcc toolchain to compile and install valgrind on pandaboard directly and when I try to run it, i get the same error message. 3. In all the Makefiles I changed options to cortex-a9. The original switches are -marm -mcpu=cortex-a8. > I changed everything to -march=armv7 -mcpu=cortex-a9 -mfpu=neon. Then on the PANDABOARD, I used gcc toolchain to compile and make. ./configure --prefix=<installation-path> makeDuring make I get a number of warnings "m-libassert.c warning : switch -mcpu=cortex-a9 conflicts with -march=armv7 switch [eabled by default] " Then make exited with an error (an assembler message) Could you please tell me what mistake I am making ?On Sun, Mar 3, 2013 at 10:40 AM, Dan Kegel <dank <at> kegel.com> wrote: > On Sun, Mar 3, 2013 at 7:21 AM, nandhini chandramoorthy > <nandhini.leo <at> gmail.com> wrote: > > I am trying to use valgrind to observe memory access patterns of certain > > benchmarks on ARM core. I have a pandaboard with arm-cortexA9. On my x86 > > machine, i have sourcery codebench cross compilation tools installed. I > > cross compiled valgrind -- > > ./configure --target=arm-none-linux-gnueabi --host=armv7-none-linux-gnueabi > > --prefix=<installation-path> CFLAGS=-static > > make > > make install > > > > Everything was fine. Then I copied the installation folder to my pandaboard. > > When i try to run valgrind, i only get "cannot execute binary executable ". > Which toolchain? > (You're compiling the benchmarks and valgrind with the same toolchain, right?) > What does 'file' say about the bad binary, and about good ones?- Dan > > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > > _______________________________________________ > Valgrind-users mailing list > Valgrind-users <at> lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/valgrind-users > Hi, How did you solve it? I have same issue. Thank you! Alina |