[Clfs-dev] GMP configure failure 32/64 bits problem (ch 6)

Roy Bekken roy.bekken at gmail.com
Tue Aug 11 10:27:10 PDT 2009


The configure fails inside chroot in chapter 6.

configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
in this configuration expects 64 bits.
You appear to have set $CFLAGS, perhaps you also need to tell GMP the
intended ABI, see "ABI and ISA" in the manual.

I'm cross compiling i686 on an x86_64 host using /usr/bin/setarch
linux32. I needed to add ABI=32 to the configuration to make it work.

ABI=32 CPPFLAGS=-fexceptions CC="gcc -isystem /usr/include" \
    CXX="g++ -isystem /usr/include" LDFLAGS="-Wl,-rpath-link,/lib" \
    ./configure --prefix=/usr --enable-cxx –enable-mpbsd



More information about the Clfs-dev mailing list