Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qemu, gcc4, and 2006.1 profile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Wed Nov 15, 2006 1:29 pm    Post subject: qemu, gcc4, and 2006.1 profile Reply with quote

I am trying to emerge qemu, but it won't build with gcc4, they recommend installing qemu with gcc3, so I thought I could just emerge -1 =gcc-3.4* to get the latest version, but I see that it is both keyworded ~ppc and masked by profile. I can get around the one by adding a line to package.keywords, but how would I unmask gcc-3.4 from the profile so that I can install qemu? Or this there a workaround to get it to install using gcc4? I looked but saw nothing conclusive, and most patches floating around the internet are x86 specific patches.
Back to top
View user's profile Send private message
KRF
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2006
Posts: 124
Location: Germany

PostPosted: Wed Nov 15, 2006 3:50 pm    Post subject: Reply with quote

gcc-3.4* should not be masked I think (see http://packages.gentoo.org/search/?sstring=gcc).
On x86 i can compile qemu without errors with gcc-3.4*. With gcc-4.1* it fails.
_________________

Gentoo Linux, running kde-3.5
CPU: i686 Intel P4 2.80GHz | RAM: 2048MB DDR
Profile: gentoo-sources-2.6.23*, gcc-4.1*, portage-2.1.3* (2007.0)

Please add [SOLVED] to your message title if your problem is solved.
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Nov 16, 2006 2:20 am    Post subject: Reply with quote

Install a binary version of gcc3, use gcc-config to use that, then build qemu and uninstall gcc3.
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Fri Nov 17, 2006 4:28 am    Post subject: Reply with quote

davidgurvich wrote:
Install a binary version of gcc3, use gcc-config to use that, then build qemu and uninstall gcc3.


That is highly unlikely to work. Many of the C-based applications links to a specific version of glibc and a specific version of gcc.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Nov 17, 2006 6:12 pm    Post subject: Reply with quote

If the binary version of gcc works, then the compiled version of qemu will work.
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Fri Nov 17, 2006 6:31 pm    Post subject: Reply with quote

Uninstalling the gcc3 after compiling qemu could break qemu. It depends how one's system is setup for linking (AFAIK).
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Nov 17, 2006 7:19 pm    Post subject: Reply with quote

If you uninstalled every version of gcc on your system building new packages becomes difficult. Using existing packages only affects those that have gcc as a run-time dependency.
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Fri Nov 17, 2006 10:41 pm    Post subject: Reply with quote

Looking at the qemu binaries on my system it seems that they do not link to gcc itself after all. I had assumed that they did.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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