|
From: Wayne C. <wa...@4r...> - 2005-01-19 01:03:49
|
I know that valgrind will not run (yet) on the Opteron in 64-bit mode. But I am trying to compile it on a SuSE 9.1 machine as a 32-bit executable. I tried (after some trial and error): ./configure --build=ix86-pc-linux make CFLAGS=-m32 CCASFLAGS=-m32 LDFLAGS=-m32 but I still get errors about 64-bit libraries contaminating the links. Before I delve any deeper into the makefiles, has anybody gotten this to work, or is there a reason it's impossible? Thanks, Wayne |
|
From: Nicholas N. <nj...@ca...> - 2005-01-19 04:10:01
|
On Tue, 18 Jan 2005, Wayne Christopher wrote: > I know that valgrind will not run (yet) on the Opteron in 64-bit mode. But I > am trying to compile it on a SuSE 9.1 machine as a 32-bit executable. I > tried (after some trial and error): > > ./configure --build=ix86-pc-linux > make CFLAGS=-m32 CCASFLAGS=-m32 LDFLAGS=-m32 > > but I still get errors about 64-bit libraries contaminating the links. Before > I delve any deeper into the makefiles, has anybody gotten this to work, or is > there a reason it's impossible? I've never tried that, but I have had success with running 32-bit programs under a 32-bit Valgrind (built on a 32-bit machine) on a 64-bit machine. I can't remember if 2.1.2 could do that, if not, try the latest CVS version. N |
|
From: Bryan O'S. <bo...@se...> - 2005-01-19 07:44:57
|
On Tue, 2005-01-18 at 17:00 -0800, Wayne Christopher wrote: > I know that valgrind will not run (yet) on the Opteron in 64-bit mode. > But I am trying to compile it on a SuSE 9.1 machine as a 32-bit > executable. I tried (after some trial and error): > > ./configure --build=ix86-pc-linux > make CFLAGS=-m32 CCASFLAGS=-m32 LDFLAGS=-m32 > > but I still get errors about 64-bit libraries contaminating the links. > Before I delve any deeper into the makefiles, has anybody gotten this to > work, or is there a reason it's impossible? I don't think anyone has tried. It is not possible (without moderate to severe pain) to build some 32-bit programs on Opteron machines running 64-bit distros due to include file conflicts that preclude installing the 32-bit devel packages. Whether or not this is the case for valgrind remains to be seen. By the way, you should be passing the CFLAGS and friends to configure, not to make. <b |
|
From: Esben M. H. <kd...@mo...> - 2005-01-19 17:28:43
|
On Wednesday 19 January 2005 07:44, Bryan O'Sullivan wrote: > On Tue, 2005-01-18 at 17:00 -0800, Wayne Christopher wrote: > > I know that valgrind will not run (yet) on the Opteron in 64-bit mode. > > But I am trying to compile it on a SuSE 9.1 machine as a 32-bit > > executable. I tried (after some trial and error): > > > > ./configure --build=ix86-pc-linux > > make CFLAGS=-m32 CCASFLAGS=-m32 LDFLAGS=-m32 > > > > but I still get errors about 64-bit libraries contaminating the links. > > Before I delve any deeper into the makefiles, has anybody gotten this to > > work, or is there a reason it's impossible? > Go to Gentoo's forums (forums.gentoo.org) and look in the Athlon forum. I'm sure I saw explicit instruction on how to do this there. Yes, Gentoo'ers really do that sort of thing :) In general, the idea is to make a chroot'ed 32-bit environment with all the libraries you need, and built it there. -- regards. Esben |