gcc installation problem

Marc Glisse marc.glisse at inria.fr
Wed Feb 5 07:55:05 UTC 2014

On Wed, 5 Feb 2014, bodrato at mail.dm.unipi.it wrote:

> Ciao,
> Il Mar, 4 Febbraio 2014 4:57 pm, Francesca Belloni ha scritto:
>> The system is (result of uname -a)
>> Linux cluster 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17 17:46:36 EDT 2005
>> x86_64 x86_64 x86_64 GNU/Linux
>> GNU MP: Cannot allocate memory (size=11068046444225727904)
>> FAIL: t-bin
>> GNU MP: Cannot allocate memory (size=6148914691236515192)
>> FAIL: t-fac_ui
>> GNU MP: Cannot allocate memory (size=11068046444225727720)
>> FAIL: t-mfac_uiui
>> FAIL: t-primorial_ui
>> FAIL: t-hamdist
>> FAIL: t-popcount
> Uhm, the report is quite similar to the report by Branlund:
> https://gmplib.org/list-archives/gmp-bugs/2014-January/003314.html
> Linux 2.4.21, and popcount/hamdist miscompiled (combinatorics fail because
> of the error in popcount, used to count primes after sieving).
> If you fill the report with the missing informations (see
> https://gmplib.org/manual/Reporting-Bugs.html), in particular the "output
> from running ‘./config.guess’, and from running
> ‘./configfsf.guess’" we may try to analyze it, and/or the "summary of
> build options" printed in the last few lines by ./configure .
> A possible work-around probably is the one suggested by Branlund in the
> report above, to remove the offending .asm file and restart from
> ./configure .

Note that the GCC makefile configures GMP with --target=none-X-Y, which, 
IIRC, used to disable asm in older GMP versions.

(I am not exactly sure how gcc can miscompile an asm file. Does it pass 
wrong options to binutils, or is the issue with binutils?)

Marc Glisse

More information about the gmp-bugs mailing list