Re: set up Valgrind for multiple targets

Paul Floyd via Valgrind-users <[email protected]> Fri, 16 Jan 2026 21:54:54 +0100
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>
On 2026-01-16 21:05, Mark Roberts wrote:
> I'd like to be able to use Valgrind on both x86 and x86-64 binaries running
> on my x64-64 linux system.  I quite familiar with building and using
> Valgrind on X86-64 binaries, we use Valgrind as the framework to build our
> DynComp tool to do comparability analysis and type inference of C/C++
> programs.  I would like to do the same for x86 binaries, but I am unsure of
> the process to setup a secondary target.
>
Hi Mark

What OS are you using?

At the moment I mainly use FreeBSD amd64, Fedora Linux amd64 and a bit 
of openSUSE amd64.

For systems where I have the full 32bit subsystem installed then all I 
have to do is run

configure.

Autoconf should detect both amd64 and x86 and build both of them.

So really all that you need to to is to install the x86 libc. You need 
the x86 C++ standard lib if you want to run the regression tests.

openSUSE has removed the x86 startup file from gcc so it can no longer 
build x86 binaries (it will still run them). So in some cases you may 
need to build a compiler for the platform.

Regards

Paul