View previous topic :: View next topic |
Author |
Message |
machinelou Apprentice
Joined: 05 Apr 2003 Posts: 267
|
Posted: Mon Feb 05, 2007 5:34 pm Post subject: Temp downgrade gcc4 to gcc3 for qemu? |
|
|
I'm trying to compile qemu, which requires gcc3. I have gcc4.1.1.r1. I emerged the most recent version of gcc3 and I would like to use it to emerge qemu. I know I can use gcc-config to switch between gcc versions. Is it safe to switch to gcc3 for just qemu and its dependencies and then return back to gcc4? After switching to gcc3, do I have to do a revdep-rebuild? I hope not Thanks |
|
Back to top |
|
|
madisonicus Veteran
Joined: 20 Sep 2006 Posts: 1130
|
Posted: Mon Feb 05, 2007 6:18 pm Post subject: |
|
|
Should be no problem to Code: | # emerge =sys-devel/gcc-3.4.6-r2
# gcc-config i686-pc-linux-gnu-3.4.6
# source /etc/profile
# emerge -uDNva qemu kqemu
# gcc-config i686-pc-linux-gnu-4.1.1
# source /etc/profile | Pretty sure that's the same process I used. No need to revdep-rebuild or anything. Just don't emerge anything else.
Also, there is a fairly helpful entry about Qemu on the Gentoo-wiki.
-m _________________ Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC |
|
Back to top |
|
|
machinelou Apprentice
Joined: 05 Apr 2003 Posts: 267
|
Posted: Mon Feb 05, 2007 10:40 pm Post subject: |
|
|
Thanks |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Sat Feb 10, 2007 11:29 pm Post subject: |
|
|
If your kernel is built with gcc-4 you'll need kqemu built with gcc-4.
And kqemu works fine w/ it (obviously, everything else related to qemu needs gcc-3). |
|
Back to top |
|
|
Mark Clegg Apprentice
Joined: 05 Jan 2004 Posts: 270 Location: ZZ9 Plural Z Alpha
|
Posted: Sun Feb 11, 2007 10:04 am Post subject: Virtualbox |
|
|
As an alternative, you could take a look at VirtualBox (which is currently hard masked). I believe parts of it are based on Qemu, but it builds ok with gcc4.
As far as I'm aware, it uses pre-built components for the qemu/gcc3 dependant parts if it detects you're using gcc4. |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Sun Feb 11, 2007 10:33 am Post subject: |
|
|
virtualbox only works with x86
vmware-server is an option |
|
Back to top |
|
|
machinelou Apprentice
Joined: 05 Apr 2003 Posts: 267
|
Posted: Sun Feb 11, 2007 8:12 pm Post subject: |
|
|
Thanks. gcc-config and source /etc/profile worked like a charm. Although, it was a little annoying to have to stop a recent emerge -uD world in order to recompile the recent release of qemu0.9 with gcc3 and then switch back to gcc4 to finish up the update, I can live with it.
I didn't know about virtualbox but because that won't work with amd64 I suppose it isn't really an option. I've tried vmserver but I would prefer a more open solution like qemu (although admittedly kqemu is proprietary) and I also don't have the necessary hardware for KVM. In addition, qemu was much easier to setup than my previous experiences with vmware server. Although, the speed of the guest OS (WinXP in my case) is an issue because I mainly use it for development in Visual Studio I'll make do with qemu + kqemu for now until I either get new hardware or the qemu devs can squeeze better near-native performance out of the hardware I have. Thanks |
|
Back to top |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Mon Feb 12, 2007 2:22 am Post subject: |
|
|
machinelou wrote: | I would prefer a more open solution like qemu (although admittedly kqemu is proprietary) |
You meant it was ? http://lwn.net/Articles/220807/ _________________ 1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread. |
|
Back to top |
|
|
machinelou Apprentice
Joined: 05 Apr 2003 Posts: 267
|
Posted: Tue Feb 13, 2007 4:06 am Post subject: |
|
|
Wow, awesome! |
|
Back to top |
|
|
|