Building 32bits GMP on a x86_64 Linux system

Yann Droneaud yann at droneaud.fr
Thu Dec 3 12:51:53 CET 2009


Hi,

I'm trying to build a 32bit version of GMP in a 32bit system (chroot)
installed on a x86_64 system. And i'm using 'linux32' to change
personality, so that programs run on a fake 32bit system.

But when running ./configure in this environment, it found a
athlon64-unknown-linux-gnu. I have the same result in the 64bit "native"
environnement:

running config.guess from the x86_64,

  $ ./config.guess
  athlon64-unknown-linux-gnu

  $ ./configfsf.guess
  x86_64-unknown-linux-gnu

Then adding linux32:

  $ linux32 ./config.guess
  athlon64-pc-linux-gnu

  $ linux32 ./configfsf.guess
  i686-pc-linux-gnu


This a problem when trying to cross compile GMP.

Hopefully, there's a workaround: force the build/host system
with ./configure options: --build=i686-pc-linux-gnu

Regards.

-- 
Yann Droneaud





More information about the gmp-bugs mailing list