Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190102 - [qemu-softmmu 0.9.0] missing gcc-3 dependency in ebuild
Summary: [qemu-softmmu 0.9.0] missing gcc-3 dependency in ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-24 22:05 UTC by Jerome
Modified: 2012-03-08 16:29 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build error log (build.log,707 bytes, text/plain)
2007-08-28 07:12 UTC, r01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome 2007-08-24 22:05:58 UTC
While emerge qemu-softmmu 0.9.0,
I get this message:
---
 * qemu requires gcc-3 in order to build and work correctly
 * please compile it switching to gcc-3.
 * We are aware that qemu can guess a gcc-3 but this feature
 * could be harmful.
---

If gcc < 4 is required then could you add it to the dependencies
(i. e. "<sys-devel/gcc-4").

Thanks.

Reproducible: Always
Comment 1 Luca Barbato gentoo-dev 2007-08-25 00:31:53 UTC
It isn't exactly the right thing to do...

I know that this gcc requirement is a pain and I'm not making your life easy but you have to have it installed AND switched =/

Probably I left the annoyance level high just in the hope the problem disappears...
Comment 2 Jerome 2007-08-25 11:07:04 UTC
Maybe the workaround would be to make "qemu-softmmu" use "gcc" 3
without relying on "gcc-config":
---
GCC=$(equery files --filter=obj "<sys-devel/gcc-4" | grep ".*\/gcc-bin\/.*-gnu-gcc$" | sort | tail --line=1)
---
?
Comment 3 r01 2007-08-28 07:12:21 UTC
Created attachment 129409 [details]
build error log

the build error is very annonying, I just want to use qemu, could someone solve it?
Comment 4 Luca Barbato gentoo-dev 2007-08-28 09:12:03 UTC
install gcc-3, switch to it, build qemu with gcc-3, switch back.
Comment 5 Birgi Tamersoy 2007-10-06 04:25:09 UTC
There is also a binary distribution of qemu. Maybe we can also add that to portage?

-- birgi

Comment 6 Luca Barbato gentoo-dev 2007-10-06 18:19:45 UTC
Not really, we can try to help fixing it or use it as is. Needless to say I'm not having enough time to get it done =/
Comment 7 Jerome 2007-10-07 10:36:56 UTC
I think Gentoo is an interesting and powerful concept. However, it doesn't fit productive environments. I will switch to Debian.
Comment 8 Carlo Marcelo Arenas Belon 2007-12-02 04:07:38 UTC
(In reply to comment #7)
> I think Gentoo is an interesting and powerful concept. However, it doesn't fit
> productive environments. I will switch to Debian.

good luck, debian as any other distribution has the same problem (except that for binary based distributions, the pain of getting the packages compiled is hidden from the users).

this is not a gentoo specific problem but a reflection of the fact that qemu uses the compiler in ways that were not expected by the gcc developers themselves, neither the distributions that assumed that gcc was only meant to be used as a compiler and not as a dynamic code generator for an emulated CPU.

I agree with you though, that knowing that gentoo has such a powerful build system as portage and is source based it was probably expected that this problem would have less impact that it has in its users.

But another of the advantages of gentoo is that the developers are users and all the users are developers and so a qemu-softmmu package which would select its compiler through dependencies is available from the following overlay using layman :

  layman -f -o http://tapir.sajinet.com.pe/gentoo/layman.xml -a sajinet
  emerge -DNvu qemu-softmmu

if you don't have layman installed or want more information about overlays refer to the following documentation :

  http://www.gentoo.org/proj/en/overlays/userguide.xml
Comment 9 Jeff Singleton 2008-12-02 20:23:37 UTC
(In reply to Comment #8)

Your overlay does most certainly still require the GCC 3 dependency to compile qemu-softmmu.

Confirmed and Verified on AMD64 Gentoo 2008
Comment 10 Bibär.ch 2009-04-02 17:50:19 UTC
(In reply to comment #1)
> I know that this gcc requirement is a pain and I'm not making your life easy
> but you have to have it installed AND switched =/
> 
What about an automated temorary switch? this could be done by an pseudo-pkg.
Comment 11 Bibär.ch 2009-04-02 17:52:55 UTC
I forgot to tell you, this problem exists also in Gentoo 2008.0 on amd64
Comment 12 Erik Logtenberg 2009-09-15 09:25:48 UTC
FYI: qemu-0.10.0 fixed this: http://www.qemu.org/changelog.html
Comment 13 Xake 2009-11-12 09:36:31 UTC
So is it time to close this soon, or is it time to start stabilise a qemu-0.10 and make that bug block this?
Comment 14 Jerome 2009-11-12 10:18:09 UTC
Sorry, I can't test this bug again since I've no Gentoo box anymore.
Comment 15 Doug Goldstein (RETIRED) gentoo-dev 2012-03-08 16:29:10 UTC
Removed from tree.