Na gut, dann zitiere ich mich eben selbst, obwohl ein angegebener Link gelesen werden sollte.eBoy wrote: Mh, ich habe doch schon gcc 4.1.1 installiert...
Kann jemand schnell posten, wie ich vorgehen muss, um nur qemu mit einer 3er-Version zu kompilieren und dann wieder zurückzustellen?
PS: Aus der nachfolgenden Diskussion ist ein Fehler in meiner Doku zu GCC 3.xx zu 4.xx ersichtlich, auf den ich expliziet hinweise. Mit GCC 3.xx wird nur qemu, qemu-softmmu und qemu-user kompiliert -> nicht kqemu. Kqemu wird mit GCC 4.xx kompiliert, damit die Integrität des Systems erhalten bleibt.Marlo wrote:Hi,
That is what the Unofficial #qemu Wiki related . And it's true. With the gcc-4xx you'll get this message:The solution is -->Code: Select all
!!! gcc 4 cannot build qemu !!! If you need support, post the topmost build error, and the call stack if relevant.return to gcc-4xx
AND keep your gcc-3xx.
![]()
Follow the http://www.gentoo.org/doc/en/gcc-upgrad ... #doc_chap2 AND keep your gcc-3xx.
After emerge system emerge world you'll have time to looking for this:
So it` time to switsh back to gcc-3xx with:Code: Select all
root@gentoo: / # gcc-config -l [1] i686-pc-linux-gnu-3.4.6 [2] i686-pc-linux-gnu-3.4.6-hardened [3] i686-pc-linux-gnu-3.4.6-hardenednopie [4] i686-pc-linux-gnu-3.4.6-hardenednopiessp [5] i686-pc-linux-gnu-3.4.6-hardenednossp [6] i686-pc-linux-gnu-4.1.1 *Now you are be able to emerge qemu:Code: Select all
root@gentoo: / # gcc-config i686-pc-linux-gnu-3.4.6 * Switching native-compiler to i686-pc-linux-gnu-3.4.6 ... >>> Regenerating /etc/ld.so.cache... [ ok ] * If you intend to use the gcc from the new profile in an already * running shell, please remember to do: * # source /etc/profile root@gentoo: / # source /etc/profile root@gentoo: / # gcc-config -l [1] i686-pc-linux-gnu-3.4.6 * [2] i686-pc-linux-gnu-3.4.6-hardened [3] i686-pc-linux-gnu-3.4.6-hardenednopie [4] i686-pc-linux-gnu-3.4.6-hardenednopiessp [5] i686-pc-linux-gnu-3.4.6-hardenednossp [6] i686-pc-linux-gnu-4.1.1Don't forget to switsh on gcc-4xxCode: Select all
root@gentoo: / # emerge qemu qemu-softmmu qemu-user # Attention! Do not compile kqemu, you'll do this with GCC 4.xx ... ... ... >>> Regenerating /etc/ld.so.cache... >>> Original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... >>> app-emulation/qemu-user-0.8.2 merged. >>> No packages selected for removal by clean. >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. root@gentoo: / #[Edit: And now you'll compile kqemu with GCC 4.xx "emerge kqemu"]Code: Select all
root@gentoo: / # gcc-config i686-pc-linux-gnu-4.1.1 * Switching native-compiler to i686-pc-linux-gnu-4.1.1 ... >>> Regenerating /etc/ld.so.cache... [ ok ] * If you intend to use the gcc from the new profile in an already * running shell, please remember to do: * # source /etc/profile root@gentoo: / # source /etc/profile root@gentoo: / # gcc-config -l [1] i686-pc-linux-gnu-3.4.6 [2] i686-pc-linux-gnu-3.4.6-hardened [3] i686-pc-linux-gnu-3.4.6-hardenednopie [4] i686-pc-linux-gnu-3.4.6-hardenednopiessp [5] i686-pc-linux-gnu-3.4.6-hardenednossp [6] i686-pc-linux-gnu-4.1.1 * root@gentoo: / #
Well, that's all.
Ma


