Failed "make check" on x86-64

Alexander Kruppa alexander.kruppa at mytum.de
Mon Apr 24 12:15:11 CEST 2006


Alexander Kruppa wrote:
> Hi,
> 
> I tried to compile GMP 4.2 on a AMD Opteron 150, but "make check" fails.
> 

The problem persisted with a stock gcc 3.4.6.

The problem turned out to be that the test programs "t-sub" etc. are 
linked dynamically. Thus, at execution they are linked against a 
previously installed GMP dynamic library instead of the newly compiled 
GMP 4.2. This caused the state of the random number generator to be 
initalised incorrectly. A possible fix is to add the "-static" flag to 
the compilaton of the tests programs. A workaround is installing the new 
library first, and only then doing "make check".

Alex


More information about the gmp-bugs mailing list