Configure fails on 32-bit platform

Jeffrey Walton noloader at gmail.com
Sun Feb 11 14:54:37 UTC 2018


On Sun, Feb 11, 2018 at 4:52 AM, Torbjörn Granlund <tg at gmplib.org> wrote:
> Jeffrey Walton <noloader at gmail.com> writes:
>
>   Configure seems to be misdetecting this 32-bit platform. The machine
>   is CentOS 6, i686 .
>
>   The environment is:
>
>       PKG_CONFIG+PATH: /usr/local/lib/pkgconfig
>        CPPFLAGS: -I/usr/local/include -DNDEBUG
>          CFLAGS: -g2 -O2 -m32 -march=native -fPIC
>        CXXFLAGS: -g2 -O2 -m32 -march=native -fPIC
>         LDFLAGS: -L/usr/local/lib -m32 -Wl,-R,/usr/local/lib
>   -Wl,--enable-new-dtags
>          LDLIBS: -ldl -lpthread
>
>    Then:
>
>       $ ./configure
>       ...
>
>       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.
>
>       $ uname -a
>       Linux localhost.localdomain 2.6.32-696.20.1.el6.i686 #1 SMP Fri
>
> Please read the helpful message from GMP's configure, which you quoted
> above.

But please see -m32 -march=native, which was provided to configure to
configure with. The program has all the information it needs to
configure correctly. It just chose not to do so.

Jeff


More information about the gmp-bugs mailing list