No idea - that will be down to your cross build toolchain.

Tom

On 10/01/2021 18:21, mihir amrelia wrote:
Tom,

Thanks a lot for your response.
Yes, it doesn't look like the one I should be expecting..

file /var/tmp/cavium/bin/valgrind
/var/tmp/cavium/bin/valgrind: ELF 64-bit MSB executable, MIPS, MIPS64 rel2 version 1 (SYSV), dynamically linked, interpreter /lib64-f, for GNU/Linux 2.6.32, not stripped

How to fix this?

-Mihir
On Thursday, 7 January, 2021, 04:36:45 pm IST, Tom Hughes <t...@compton.nu> wrote:


On 07/01/2021 10:54, mihir amrelia via Valgrind-users wrote:


 > I am trying to get valgrind running on cavium octeon 3 processor.
 >
 >
 > Couldn't find any specific build configs for this other than some hints
 > on the valgrind wiki.
 > *
 > *
 > *
 > The steps executed to build valgrind for cavium were (on x86_64 host):
 > *export CC=/opt/cavium-64bit/tools-3535/bin/mips64-octeon-linux-gnu-gcc
 > export CXX=/opt/cavium-64bit/tools-3535/bin/mips64-octeon-linux-gnu-g++
 > export PATH=$PATH:/opt/cavium-64bit/tools-3535/bin/
 > ./configure --host=mips64-linux-gnu --target=mips64-octeon-linux
 > --prefix=/home/mihira/workspace/mylab/valgrind/cavium
 > --exec-prefix=/var/tmp/cavium --disable-tls
 > make && make install
 >
 > *While trying to run it on target (copied the elfs to /var/tmp/cavium/
 > dir on the target):*
 > export VALGRIND_LIB=/var/tmp/cavium/lib/valgrind/
 > export PATH=$PATH:/var/tmp/cavium/bin/
 > valgrind -h
 > -bash: /var/tmp/cavium/bin/valgrind: No such file or directory
 >
 >
 > What's that blunder I am doing?


At a guess the ELF interpreter specified in the compiled
valgrind launcher doesn't exist - that can lead to that
confusing error when running a executable that exists.

Try "file /var/tmp/cavium/bin/valgrind" and see what it says
about it - part of the result should be something like this:

   interpreter /lib64/ld-linux-x86-64.so.2

which will tell what interpreter it is using.

Tom

--
Tom Hughes (t...@compton.nu <mailto:t...@compton.nu>)
http://compton.nu/ <http://compton.nu/>



--
Tom Hughes (t...@compton.nu)
http://compton.nu/


_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to