Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Temp downgrade gcc4 to gcc3 for qemu?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Mon Feb 05, 2007 5:34 pm    Post subject: Temp downgrade gcc4 to gcc3 for qemu? Reply with quote

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
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Mon Feb 05, 2007 6:18 pm    Post subject: Reply with quote

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. :wink:

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
View user's profile Send private message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Mon Feb 05, 2007 10:40 pm    Post subject: Reply with quote

Thanks :)
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Sat Feb 10, 2007 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 270
Location: ZZ9 Plural Z Alpha

PostPosted: Sun Feb 11, 2007 10:04 am    Post subject: Virtualbox Reply with quote

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
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Sun Feb 11, 2007 10:33 am    Post subject: Reply with quote

virtualbox only works with x86

vmware-server is an option
Back to top
View user's profile Send private message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Sun Feb 11, 2007 8:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Mon Feb 12, 2007 2:22 am    Post subject: Reply with quote

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/ :P
_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 267

PostPosted: Tue Feb 13, 2007 4:06 am    Post subject: Reply with quote

Wow, awesome!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum