Bug#775235: Bug#776911: gnome-shell: fails to start on i386 when [Mesa was] built with llvm-3.5
- To: 775235@bugs.debian.org
- Subject: Bug#775235: Bug#776911: gnome-shell: fails to start on i386 when [Mesa was] built with llvm-3.5
- From: Michael Gilbert <mgilbert@debian.org>
- Date: Wed, 15 Apr 2015 23:08:11 -0400
- Message-id: <[🔎] CANTw=MN4NNz6n3kgMKrvMpmup4=UAOuKRhtHbH37pDPSAu_aRA@mail.gmail.com>
- Reply-to: Michael Gilbert <mgilbert@debian.org>, 775235@bugs.debian.org
- In-reply-to: <20150313173515.GA30393@perpetual.pseudorandom.co.uk>
- References: <E1YIZet-0000ig-3p@zorro.ztk-rp.eu> <20150204154917.GA24027@perpetual.pseudorandom.co.uk> <54D4F919.2050904@ztk-rp.eu> <54D505F3.8090209@debian.org> <CANTw=MMyebjrH2WweTjiS1U75HPEb+1Y1LRDvOkwLrZwJ3K1KQ@mail.gmail.com> <20150226085404.GA19327@perpetual.pseudorandom.co.uk> <20150309205722.GM2184@betterave.cristau.org> <5502DF99.6060903@debian.org> <20150313173515.GA30393@perpetual.pseudorandom.co.uk>
control: severity -1 wishlist
control: forwarded -1 https://freedesktop.org/patch/34445
control: retitle -1 mesa: use llvm's getCPUTargetFeatures() instead of
getHostCPUName()
It turns out that mesa uses llvm's getHostCPUName(), and qemu i386 by
default (correctly) reports itself as pentium2, which is assumed
non-sse2. gnome-shell uses a mesa feature that requires sse2, so it
fails at startup on qemu i386.
On llvm trunk they've implemented getCPUTargetFeatures(), which can be
used to check for specific cpu features like sse2, and that is the
long term solution to the problem:
https://llvm.org/bugs/show_bug.cgi?id=23201
In the meantime, the problem can be worked around by using a
non-default qemu cpu options. Some examples:
$ qemu -cpu pentium3 test.img
$ kvm -cpu host test.img
Since there workarounds are straightforward I am reducing the severity.
Best wishes,
Mike
Reply to: