#5516: gmp-mpir-0.9: build failure inside kvm 64 bit virtual machine
----------------------+-----------------------------------------------------
Reporter: tornaria | Owner: mabshoff
Type: defect | Status: new
Priority: major | Milestone:
Component: build | Keywords:
----------------------+-----------------------------------------------------
When running a 64 bit virtual cpu in kvm (72+dfsg-4, debian/lenny), the
virtual {{{cpuid}}} reports the cpu as:
{{{
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.9.1
stepping : 3
}}}
AFAICT, from intel's cpuid documentation in
http://download.intel.com/design/processor/applnots/24161832.pdf, such a
family/model combination doesn't actually exist (pentiumpro is model 1,
pentium II is model 3 and 5, celeron is model 6, etc).
On the other hand the {{{config.guess}}} script in mpir considers anything
models 2 to 6 as being {{{pentium2}}}. Misdetection is already bad because
core 2 optimizations should be much better than pentium II ones.
The build then fails because for a pentium II, the configure logic forces
{{{ABI=32}}}, and this is wrong (configure complains about
{{{sizeof(long)}}} not being {{{4}}}, indeed it is {{{8}}}).
Of course, this seems to be a bug in kvm; but maybe it should be
workarounded? I don't think it is relevant, but just in case the host cpu
reports family=6, model=23 (it's a core 2 quad Q9550).
After the fact I discovered that one can use the following command line
switch when running kvm:
{{{
-cpu qemu64,family=6,model=15,+ssse3
}}}
to set family/model to a core2, and also set {{{ssse3}}} cpu flag
(disabled by default). Unfortunately, this comand line switch doesn't
support models higher than 15, nor the {{{sse4_1}}} flag.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5516>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---