[Nix-dev] Re: libgmp impurity

Eelco Dolstra e.dolstra at tudelft.nl
Tue Jun 30 11:14:50 CEST 2009


Hi all,

Tony White wrote:

>> Maybe we should talk about solutions even if we can't implement them at
>> the moment?
>>
>> a) patch the config.guess script.
>>     can be easy but won't catch everything
>>
>> b) patch the stuff config.guess is using
>>     requires patching gcc and assembler because the CPUID processor
>>     instruction can't be faked. Thus gcc and the assemblers must be
>>     taught to rewrite this instruction by a set of instruction returning a
>>     constsant but similar string.
>>
>> c) cross compile everything from x86 to x86 or such.
>>     I guess too much work. cross compiling can cause a lot of problem
>>     because the majority of packages isn't cross compiled often except the
>>     most basic ones (?)
>>
>> Can you think about other solutions?
>>
> 
> Hi Marc,
> How about moving upstream with it and being polite. :)

Yes, gmp's CPU detection in configure is probably a problem for other
distributors as well.  The only other package I know with this issue (MPlayer)
has a flag --enable-runtime-cpudetection to turn off the build-time CPU
detection.  It would be nice if gmp had that as well.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list