I have the same problem building Valgrind 3.5.0 on Debian. However, it
seems to be a gcc-4.{3,4} issue. This is the result of the configure
test when trying to build a 32 bit code:

configure:4326: checking for 32 bit build support
configure:4349: gcc -o conftest -m32   conftest.c  >&5
/usr/bin/ld: skipping
incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/libgcc.a when searching
for -lgcc
/usr/bin/ld: skipping
incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/libgcc.a when searching
for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status

On Thu, 2009-09-24 at 08:58 +1000, Nicholas Nethercote wrote:
> On Wed, Sep 23, 2009 at 9:46 PM, Banibrata Dutta
> <[email protected]> wrote:
> >
> > I have a x86_64 arch system, running RHEL4.6 x86_64. However, the 
> > application
> > I would like to use Valgrind on, is a 32-bit application (due to some legacy
> > library dependencies, which are available 32-bit only).
> >
> > Should I be using the Valgrind v3.5.0 x86_64 version, or the i386 version 
> > (x86)
> > in this environment ? Also, I believe, installation of the x86 version might
> > meet with lot of unfulfilled dependencies (glibc specific version, x86 
> > flavour
> > etc.)!
> 
> Use the x86_64 version.  It builds two versions of Valgrind, one that
> handles 64-bit programs and one that handles 32-bit programs, and it
> will transparently choose the appropriate one.  In other words, It
> Should Just Work.
> 
> Nick
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Valgrind-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/valgrind-users


-- 
Andrés Roldán
Ingeniero de Proyectos
DD - Official Debian Developer
C|EH - Certified Ethical Hacker
Fluidsignal Group S.A.
Where security meets business
http://www.fluidsignal.com/
ISO 9001:2000 ISO/IEC 27001:2005
Teléfono: +57 (4) 3522627 ext. 205
Móvil: +57 313-6463678
PGP Key-ID: 0xB29396EB

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to