Build failure when cross-compiling with --disable-assembly for some architectures

Brett Neumeier bneumeier at
Sat Oct 3 15:55:15 UTC 2015

On Sat, Oct 3, 2015 at 2:22 AM, Marc Glisse <marc.glisse at> wrote:

> On Sun, 20 Sep 2015, Brett Neumeier wrote:
> Description:  When cross-compiling GMP, with an x86_64 build server and a
>> variety of target platforms, the build fails for some target architectures
>> (ARM, sparc) when GMP is configured with --disable-assembly. Other
>> architectures (at least MIPS) work fine regardless of --disable-assembly.
> Thank you for the report.
> We have fixed a bunch of those a while back, could you try a recent
> snapshort from the developers' corner on

Hello Mr Glisse,

I checked gmp-6.0.0-20151003; sure enough, the build completes successfully
on all the architectures that I previously found failures on! Thank you
very much, and next time I'll check a snapshot before I file a report.

Just as an FYI -- the issue that originally directed my attention in this
direction is an attempt to cross-compile GCC with the latest stable version
of all its dependency libraries in-tree, which failed apparently because
GMP is miscompiled in that circumstance:

I *thought* that was because of the problem with --disable-assembly, but
apparently I was wrong: the GCC build still fails in exactly the same way.

Since there's a simple and obvious workaround (I can just do a cross-build
of GMP ahead of time and tell GCC to use that one), the issue isn't really
all that important; but I thought someone here might be interested.



Brett Neumeier (bneumeier at

More information about the gmp-bugs mailing list