Tried that; it fails saying: checking for gcc... /gcc-3.4.5-glibc-2.3.6/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. configure:1803: /gcc-3.4.5-glibc-2.3.6/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-gcc conftest.c >&5 configure:1806: $? = 0 configure:1852: result: a.out configure:1857: checking whether the C compiler works configure:1863: ./a.out ./configure: ./a.out: No such file or directory configure:1866: $? = 127 configure:1875: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. I dont see a conftest.c file anywhere. On Tue, Jun 24, 2008 at 11:14 AM, Bernhard Walle <bwalle at suse.de> wrote: > * "Srinivas Murthy" <codevana at gmail.com> [2008-06-24 11:11]: >> >> Hi, >> I need to cross-compile kexec-tools-1.101 for a x86_64 architecture >> platform on a 32b x86. >> >> I didn't see any instructions in the configure, etc. scripts for doing this. > > gcc does not support that (like the -m32 flag when you build i386 on > x86-64). You need to build a cross compiler, and then you would pass > that via > > CC=your-cross-compiler ./configure > > > > Bernhard > -- > Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development >