The system under which I compile Valgrind mips . The system on the img disk, which I mount to the /mnt/mount_dir . When configuring valgrind naturally set --prefix=/mnt/mount_dir , this is the way to the root, then make and make install But when started on an emulated system, valgrind swears that it cannot find memchek , of course, because it searches for it in the /mnt/mount_dir/lib/valgrind/memcheck-mips32-linux directory /mnt/mount_dir/lib/valgrind/memcheck-mips32-linux , but you need to /lib/valgrind/memcheck-mips32-linux What prefix should I put in the configuration stage so that valgrind considers /mnt/mount_dir be / root?

  • I tried using chroot . /mnt/mount_dir chroot . /mnt/mount_dir does not work, since the system is busybox and /bin/bash does not find chroot: failed to run command '/bin/bash': No such file or directory - Vasiliy Kuramshin

1 answer 1

Google all day, but did not find the sane answer. Witchcraft with --sysroot and --prefix did not help. Tried to set various flags, most of which are simply not supported by vallgrind . The solution to the problem in my case is to create a link /mnt/mount_dir to the root / . Perhaps there is a more human solution, but I did not find it.