A few months ago I decided I needed to install QEMU on my laptop. I assumed it would be a cinch. Wrong was I. You see, my laptop is running Gentoo. I’m a longtime (4 years is longtime, no?) aficionado.
(As an aside, I recently did a quick install of Ubuntu on my workstation at work, and I’m surprised to find how much I like it. This is a topic for another post…)
It turns out that QEMU is finicky about who compiles it. Not just any old version of GCC will do. On my system, I got it to compile and install with gcc-3.3.6-r1. Without further ado, here are the steps I took.
-
echo "=sys-devel/gcc-3.3.6-r1" >> /etc/portage/package.keywords -
emerge -a =sys-devel/gcc-3.3.6-r1 -
gcc-config -l -
gcc-config 1(or whichever one corresponds to 3.3.6) source /etc/profile-
emerge -a qemu -
gcc-config 2(or whichever one corresponds to 4.x) -
source /etc/profile
There you have it. I tried to make it as straightforward as possible. This worked for me. I also passed it along to The Code Lisperer and it worked for him. As always, YMMV.
-Mr. ANSI Pants