You are not logged in.
is there any solution for building qemu+kqemu under Arch? the gcc-compact had been long gone (as i've read the discussion in the ML), and seems there is no way to compile the beast, and none of the patches i found on qemu ML would apply. any ideas? i desperately need qemu for my work.
thanks in advance.
Offline
I have both qemu and kqemu built and installed...
no problems...
I just took Qemu from community and Kqemu from the Aur (the "new" version of Kqemu for being exact)
compiled fine..
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
it wont compile under gcc4.
if someone has the gcc-compact (3.4) package i would appreciate a link
Offline
but I HAVE it compiling GCC4..it didn't work when arch first switched, but now it worked
[cybertron@cybertron kqemu]$ pacman -Qi kqemu26
Name : kqemu26
Version : 0.7.2-3
Groups : None
Packager : Arch Linux (http://www.archlinux.org)
URL : http://fabrice.bellard.free.fr/qemu/
License : None
Architecture : i686
Size : 38085
Build Date : Mon Nov 7 10:26:27 2005 UTC
Install Date : Mon Nov 7 10:26:42 2005 UTC
Install Script : Yes
Reason: : explicitly installed
Provides : None
Depends On : qemu
Required By : None
Conflicts With : kqemu
Description : The QEMU Accelerator Module increases the speed of QEMU when a
PC is emulated on a PC. Binary distribution is not allowed.
[cybertron@cybertron kqemu]$ gcc --version
gcc (GCC) 4.0.3 20051006 (prerelease)
Copyright © 2005 Free Software Foundation, Inc.
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
i believe you, but it wont compile here, and according to qemu FAQ it wont compile under gcc4 (so i have no idea how u got it compiled). according to qemu ML there is a patch for gcc4 but i couldnt apply it.
Offline
CyberTron, all you posted is the kqemu26 package from aur.. yes it builds, but it only provides the kernel moduel. We still need qemu with kqemu compiled in and, as z4ziggy says, it doesn't build on gcc4. You must have built qemu+kqemu yourself before the switch to gcc4 or something (show us your pacman -Qi qemu).
z4ziggy: I'd also like some help with figuring out how to compile qemu+kqemu.
I am a gated community.
Offline
Update: Here's a gcc3.4 Arch package...
Hopefully this will work, testing now..
I am a gated community.
Offline
... and it worked. 8)
I am a gated community.
Offline
like I poste in my first post I got qemu from Community
and for the record, kqemu isn't supposed to compile either..
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
thanks stonecrest for the gcc package.
qemu+kqemu now builds fine, but the kqemu module wont load... it reports the following :
Invalid module format
any ideas why?
[edit]
i am able to load it using "modprobe -f", but i wonder what can be the cause of this err msg...
[edit/2]
loads, but not working :
Offline
does it use the right kernel when building??
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
Offline
I assume the pkg in [community] was built with gcc3.4 - I have installed that and kqemu26 from UNSUPPORTED and it built fine. I am also using gcc4.
Please stopping giving CyberTron crap - he is completely correct.
Offline
I assume the pkg in [community] was built with gcc3.4 - I have installed that and kqemu26 from UNSUPPORTED and it built fine. I am also using gcc4.
Please stopping giving CyberTron crap - he is completely correct.
thanks dtw for backing me up
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
dtw and CyberTron - There are two parts to gettingn kqemu to work. One, you need the module that kqemu26 provides. Two, you need qemu to be compiled with kqemu - the qemu pkgbuild clearly shows that this isn't done. Heck, read the last comment on the qemu page where someone asks for it to be done.
Either you two have done more than what you're saying or you don't have kqemu properly enabled. Open qemu, press ctrl-alt-2, and type "info kqemu" - what does it say?
I am a gated community.
Offline
ah stonecrest, you are right, it doesn't have kqemu enabled...
sorry for not seeing this and I apologize to you..
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
No worries CyberTron.. hopefully we can all just figure this out because I still haven't gotten it.
z4ziggy - you're right, it doesn't work I just realized that using gcc3.4 won't work because the kernel is obviously built with gcc4, so yes, the kqemu kernel module won't be compatible.
Damn, we're still stuck...
I am a gated community.
Offline
theres always qvm86 ;-)
Mr Green
Offline
Alright, I got it to work! Here's what you do:
1. Install gcc 3.4 with pacman.
2. Download kqemu from aur, makepkg, and install with pacman. Do not follow the instructions about modprobing because the kernel module is incompatible with the kernel.
3. Download kqemu26 from aur and edit the PKGBUILD to remove the "depends" and "conflicts" lines. Makepkg, and force install (pacman -Af). This will provide a compatible kernel module.
4. Now modprobe kqemu major=0 and you should be good to go!
(qemu) info kqemu
kqemu is enabled
I am a gated community.
Offline
Now I'm confused ....
kqemu from AUR builds under gcc4
I understood problem is with qemu :?
Just built kqemu from AUR np....
Mr Green
Offline
Mr Green - What? kqemu from AUR simply compiles qemu with kqemu. If there is a problem with qemu compiling under gcc4, then you shouldn't be able to compile the aur kqemu package. Myself and others couldn't...
I am a gated community.
Offline
Now I'm confused ....
kqemu from AUR builds under gcc4
I understood problem is with qemu :?
Just built kqemu from AUR np....
Have I understood correctly, do I need to build qemu from source (having kqemu already isntalled?) will that be sufficent? or do I need to do anything more?
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
installing kqemu26... done.
--> Use the kqemu module option major=0 to have the device '/dev/kqemu'
--> automatically created:
-->
--> # modprobe kqemu major=0
-->
--> or append this to your '/etc/modprobe.conf' like so:
-->
--> # echo "install kqemu modprobe -i kqemu major=0" >> /etc/modprobe.conf
from AUR ... Am I looking at the wrong package then lol
EDIT yes I am lol
Mr Green
Offline
well, i believe I get it now,...the package kqemu26 ONLY builds the module (not qemu) and the package kqemu builds qemu with the module...
so if one has built qemu with kqemu support builtin then one may use the kqemu26 module, to do a quick update for the module only..
so if anyone has built just qemu with kqemu suppoort and shares that it would be enough for the rest of us since the module builds fine with gcc4
like the one in community could be built with gcc 3.4 and with kqemu support (but without have it builtin (as that would break the license)
EDIT:
saw this in the aur for qemu pkgbuild:
Comment by: brain0 on 20051026 [10:15:06]
Hi,as this package is in community, I have a little suggestion. Why not build qemu with kqemu support and distribute it without the kernel module?
When qemu runs, it will find that kqemu is not loaded and proceed w/o acceleration.
This would be an advantage, because everyone using qemu can install the binary package from community and build the kernel module himself afterwards, so there is no need to build the whole package yourself.
This can be achieved easily by building qemu like the kqemu PKGBUILD does, but without installing the module.
AFAIK the license only restricts providing the kernel module itself, not binaries that can make use of it, so there won't be a licensing problem.
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
thanks stonecrest, but i get "kqemu is disabled" on "info keqmu"... though i did compile+install the kqemu as u suggested and then the kqemu26. weird things are happening in here... :
module does load btw, and i have the mknod /dev/kqemu on my rc.local anyway, so it should have worked. maybe im doing something wrong?
Offline