Skip to contentSkip to conversation

compiler problem in Read Hat ES 4

DISCUSSION Francesc 4 participants 12 messages Jan 16, 2007 – Jan 25, 2007 6 messages not in the archive KVM

lore
Share & tools
lore

Francesc

author
#0 lore raw

Hi,
we are trying to kmstall kvm on a Read Hat Enterprise 4 with all the latest updates, and when we do the "make" we
get this error

/usr/bin/gcc32 -I /var/tmp/kvm-11/qemu/../user -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/var/tmp/kvm-11/qemu/target-i386 -I/var/tmp/kvm-11/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/kvm-11/qemu/fpu -I /var/tmp/kvm-11/kernel/include -DHAS_AUDIO -I/var/tmp/kvm-11/qemu/slirp -c -o qemu-kvm.o /var/tmp/kvm-11/qemu/qemu-kvm.c /var/tmp/kvm-11/qemu/qemu-kvm.c: In function `load_regs':
/var/tmp/kvm-11/qemu/qemu-kvm.c:223: unable to find a register to spill in class `SIREG'
/var/tmp/kvm-11/qemu/qemu-kvm.c:223: this is the insn:
(insn 98 95 101 (parallel[

            (set (reg:SI 2 ecx [78])
                (const_int 0 [0x0]))
            (set (reg/f:SI 1 edx [75])
                (plus:SI (ashift:SI (reg:SI 2 ecx [77])
                        (const_int 2 [0x2]))
                    (reg/f:SI 1 edx [75])))
            (set (reg/f:SI 0 eax [76])
                (plus:SI (ashift:SI (reg:SI 2 ecx [77])
                        (const_int 2 [0x2]))
                    (reg/f:SI 0 eax [76])))
            (set (mem:BLK (reg/f:SI 1 edx [75]) [0 A128])
                (mem:BLK (reg/f:SI 0 eax [76]) [0 A128]))
            (use (reg:SI 2 ecx [77]))
            (use (reg:SI 19 dirflag))
        ] ) 603 {*rep_movsi} (insn_list 90 (insn_list 92 (insn_list 93 
(insn_list 95 (nil)))))
    (expr_list:REG_DEAD (reg:SI 19 dirflag)
        (expr_list:REG_DEAD (reg:SI 2 ecx [77])
            (expr_list:REG_UNUSED (reg:SI 2 ecx [78])
                (expr_list:REG_UNUSED (reg/f:SI 1 edx [75])
                    (expr_list:REG_UNUSED (reg/f:SI 0 eax [76])
                        (nil)))))))

/var/tmp/kvm-11/qemu/qemu-kvm.c:223: confused by earlier errors, bailing out make[2]: *** [qemu-kvm.o] Error 1
make[2]: Leaving directory `/var/tmp/kvm-11/qemu/i386-softmmu' make[1]: *** [subdir-i386-softmmu] Error 2
make[1]: Leaving directory `/var/tmp/kvm-11/qemu'
make: *** [qemu] Error 2

The gcc version is 3.4.6; I have read that there were problems with older gcc versions. Is this another bug?
Thanks for your help.

Frank
UPC - Terrassa -Spain

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#1 lore raw

Hi,

It seems like a gcc32 problem.
Please try to use your default gcc (3.4.6) to compile qemu instead of gcc32 Just type in <kvm-dir> "configure --qemu-cc=gcc"

Hope that helps,
Uri.

-----Original Message-----
From: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org on behalf of Francesc
Sent: Tue 16/01/2007 12:02
To: [email protected]
Subject: [kvm-devel] compiler problem in Read Hat ES 4

Hi,
we are trying to kmstall kvm on a Read Hat Enterprise 4 with all the latest updates, and when we do the "make" we
get this error

/usr/bin/gcc32 -I /var/tmp/kvm-11/qemu/../user -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/var/tmp/kvm-11/qemu/target-i386 -I/var/tmp/kvm-11/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/kvm-11/qemu/fpu -I /var/tmp/kvm-11/kernel/include -DHAS_AUDIO -I/var/tmp/kvm-11/qemu/slirp -c -o qemu-kvm.o /var/tmp/kvm-11/qemu/qemu-kvm.c /var/tmp/kvm-11/qemu/qemu-kvm.c: In function `load_regs':
/var/tmp/kvm-11/qemu/qemu-kvm.c:223: unable to find a register to spill in class `SIREG'
/var/tmp/kvm-11/qemu/qemu-kvm.c:223: this is the insn:
(insn 98 95 101 (parallel[

            (set (reg:SI 2 ecx [78])
                (const_int 0 [0x0]))
            (set (reg/f:SI 1 edx [75])
                (plus:SI (ashift:SI (reg:SI 2 ecx [77])
                        (const_int 2 [0x2]))
                    (reg/f:SI 1 edx [75])))
            (set (reg/f:SI 0 eax [76])
                (plus:SI (ashift:SI (reg:SI 2 ecx [77])
                        (const_int 2 [0x2]))
                    (reg/f:SI 0 eax [76])))
            (set (mem:BLK (reg/f:SI 1 edx [75]) [0 A128])
                (mem:BLK (reg/f:SI 0 eax [76]) [0 A128]))
            (use (reg:SI 2 ecx [77]))
            (use (reg:SI 19 dirflag))
        ] ) 603 {*rep_movsi} (insn_list 90 (insn_list 92 (insn_list 93 
(insn_list 95 (nil)))))
    (expr_list:REG_DEAD (reg:SI 19 dirflag)
        (expr_list:REG_DEAD (reg:SI 2 ecx [77])
            (expr_list:REG_UNUSED (reg:SI 2 ecx [78])
                (expr_list:REG_UNUSED (reg/f:SI 1 edx [75])
                    (expr_list:REG_UNUSED (reg/f:SI 0 eax [76])
                        (nil)))))))

/var/tmp/kvm-11/qemu/qemu-kvm.c:223: confused by earlier errors, bailing out make[2]: *** [qemu-kvm.o] Error 1
make[2]: Leaving directory `/var/tmp/kvm-11/qemu/i386-softmmu' make[1]: *** [subdir-i386-softmmu] Error 2
make[1]: Leaving directory `/var/tmp/kvm-11/qemu'
make: *** [qemu] Error 2

The gcc version is 3.4.6; I have read that there were problems with older gcc versions. Is this another bug?
Thanks for your help.

Frank
UPC - Terrassa -Spain

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

A message that is not in the archive (sent off-list or not yet received): 64F9B87B6B770947A9F8391472E0321603496B05-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/[email protected]

author
#3 lore raw
Quoted 73 lines · Uri Lublin

Hi,

It seems like a gcc32 problem.
Please try to use your default gcc (3.4.6) to compile qemu instead of gcc32
Just type in <kvm-dir> "configure --qemu-cc=gcc"

Hope that helps,
Uri.

-----Original Message-----
From: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org on behalf of Francesc
Sent: Tue 16/01/2007 12:02
To: [email protected]
Subject: [kvm-devel] compiler problem in Read Hat ES 4

Hi,
we are trying to kmstall kvm on a Read Hat Enterprise 4 with all the latest updates, and when we do the "make" we
get this error

/usr/bin/gcc32 -I /var/tmp/kvm-11/qemu/../user -Wall -O2 -g

(quoted diff) +0 -3
-fno-strict-aliasing -fomit-frame-pointer -I. -I..
-I/var/tmp/kvm-11/qemu/target-i386 -I/var/tmp/kvm-11/qemu -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/kvm-11/qemu/fpu -I

/var/tmp/kvm-11/kernel/include -DHAS_AUDIO -I/var/tmp/kvm-11/qemu/slirp -c -o qemu-kvm.o /var/tmp/kvm-11/qemu/qemu-kvm.c /var/tmp/kvm-11/qemu/qemu-kvm.c: In function `load_regs':
/var/tmp/kvm-11/qemu/qemu-kvm.c:223: unable to find a register to spill in class `SIREG'
/var/tmp/kvm-11/qemu/qemu-kvm.c:223: this is the insn:
(insn 98 95 101 (parallel[

            (set (reg:SI 2 ecx [78])
                (const_int 0 [0x0]))
            (set (reg/f:SI 1 edx [75])
                (plus:SI (ashift:SI (reg:SI 2 ecx [77])
                        (const_int 2 [0x2]))
                    (reg/f:SI 1 edx [75])))
            (set (reg/f:SI 0 eax [76])
                (plus:SI (ashift:SI (reg:SI 2 ecx [77])
                        (const_int 2 [0x2]))
                    (reg/f:SI 0 eax [76])))
            (set (mem:BLK (reg/f:SI 1 edx [75]) [0 A128])
                (mem:BLK (reg/f:SI 0 eax [76]) [0 A128]))
            (use (reg:SI 2 ecx [77]))
            (use (reg:SI 19 dirflag))
        ] ) 603 {*rep_movsi} (insn_list 90 (insn_list 92 (insn_list 93
(insn_list 95 (nil)))))
    (expr_list:REG_DEAD (reg:SI 19 dirflag)
        (expr_list:REG_DEAD (reg:SI 2 ecx [77])
            (expr_list:REG_UNUSED (reg:SI 2 ecx [78])
                (expr_list:REG_UNUSED (reg/f:SI 1 edx [75])
                    (expr_list:REG_UNUSED (reg/f:SI 0 eax [76])
                        (nil)))))))

/var/tmp/kvm-11/qemu/qemu-kvm.c:223: confused by earlier errors, bailing out
make[2]: *** [qemu-kvm.o] Error 1
make[2]: Leaving directory `/var/tmp/kvm-11/qemu/i386-softmmu' make[1]: *** [subdir-i386-softmmu] Error 2
make[1]: Leaving directory `/var/tmp/kvm-11/qemu'
make: *** [qemu] Error 2

The gcc version is 3.4.6; I have read that there were problems with older gcc versions. Is this another bug?
Thanks for your help.

Frank
UPC - Terrassa -Spain

Quoted 13 lines

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Hi Uri,
it has compiled OK with gcc, but it has not produced any module ( .ko) It seems like does not do anything when the "make" should do this part:

[root@espai07 kvm-11]# make
make -C kernel
make[1]: Entering directory `/var/tmp/kvm-11/kernel'
make -C /lib/modules/2.6.9-42.0.3.ELsmp/build M=pwd "$@" make[2]: Entering directory `/usr/src/kernels/2.6.9-42.0.3.EL-smp-i686'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory /usr/src/kernels/2.6.9-42.0.3.EL-smp-i686' make[1]: Leaving directory /var/tmp/kvm-11/kernel'
make -C user
make[1]: Entering directory `/var/tmp/kvm-11/user'
cc -I /var/tmp/kvm-11/kernel/include -MMD -MF ./.kvmctl.d -g -c -o
kvmctl.o kvmctl.c
cc -I /var/tmp/kvm-11/kernel/include -MMD -MF ./.main.d -g -c -o
main.o main.c
cc kvmctl.o main.o -o kvmctl
ar rcs libkvm.a kvmctl.o
make[1]: Leaving directory `/var/tmp/kvm-11/user'
make -C qemu
........
........

what can be the problem?

Thanks for your help.

Frank

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#4 lore raw

Hi Frank,

The modules were probably already made.
Try to remake (from <kvm-dir>): "make clean ; ./configure --qemu-cc=gcc ; make"

Uri.

-----Original Message-----
From: Francesc [mailto:frank-VfcrZIqfQH54piUD7e9S/[email protected]]
Sent: Wed 17/01/2007 14:31
To: Uri Lublin
Cc: [email protected]
Subject: Re: [kvm-devel] compiler problem in Read Hat ES 4

Hi Uri,
it has compiled OK with gcc, but it has not produced any module ( .ko) It seems like does not do anything when the "make" should do this part:

<snipped and reordered>

what can be the problem?

Thanks for your help.

Frank

Quoted 11 lines · Uri Lublin

Hi,

It seems like a gcc32 problem.
Please try to use your default gcc (3.4.6) to compile qemu instead of gcc32
Just type in <kvm-dir> "configure --qemu-cc=gcc"

Hope that helps,
Uri.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

A message that is not in the archive (sent off-list or not yet received): 64F9B87B6B770947A9F8391472E0321603496B06-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/[email protected]

author
#6 lore raw

Hi Uri,
I did it what you said but it's the same:

[root@espai07 kvm-11]# make clean ; ./configure --qemu-cc=gcc ; make for i in kernel user qemu; do \

        make -C $i clean; \

done
make[1]: Entering directory `/var/tmp/kvm-11/kernel'
make -C /lib/modules/2.6.9-42.0.3.ELsmp/build M=pwd clean
make[2]: Entering directory `/usr/src/kernels/2.6.9-42.0.3.EL-smp-i686'
CLEAN /var/tmp/kvm-11/kernel/.tmp_versions
make[2]: Leaving directory `/usr/src/kernels/2.6.9-42.0.3.EL-smp-i686'
make[1]: Leaving directory `/var/tmp/kvm-11/kernel'
make[1]: Entering directory `/var/tmp/kvm-11/user'
rm -f kvmctl *.o *.a .*.d
rm -f test/bootstrap test/*.o test/*.flat test/.*.d
make[1]: Leaving directory `/var/tmp/kvm-11/user'
make[1]: Entering directory `/var/tmp/kvm-11/qemu'
rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h
opc-arm.h gen-op-arm.h
rm -f *.o *.a qemu-img dyngen TAGS *.pod *~ */*~
make -C tests clean
make[2]: Entering directory `/var/tmp/kvm-11/qemu/tests'
rm -f *~ *.o test-i386.out test-i386.ref \
test-x86_64.log test-x86_64.ref qruncom linux-test testthread
sha1-i386 test-i386 runcom sha1
make[2]: Leaving directory `/var/tmp/kvm-11/qemu/tests'
for d in i386-softmmu; do \
make -C $d clean || exit 1 ; \
done
make[2]: Entering directory `/var/tmp/kvm-11/qemu/i386-softmmu'
rm -f *.o *.a *~ qemu gen-op.h opc.h op.h nwfpe/*.o slirp/*.o fpu/*.o
make[2]: Leaving directory `/var/tmp/kvm-11/qemu/i386-softmmu'
make[1]: Leaving directory `/var/tmp/kvm-11/qemu'
rm -f config.make user/config.mak
which: no texi2html in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /var/tmp/kvm-11/qemu
C compiler        gcc
Host C compiler   gcc
make              make
install           install
host CPU          i386
host big endian   no
target list       i386-softmmu
gprof enabled     no
profiler          no
static build      no
SDL support       yes
SDL static link   yes
mingw32 support   no
Adlib support     no
CoreAudio support no
ALSA support      yes
DSound support    no
FMOD support      no
kqemu support     no
kvm support       yes
Documentation     no

make -C kernel
make[1]: Entering directory `/var/tmp/kvm-11/kernel'
make -C /lib/modules/2.6.9-42.0.3.ELsmp/build M=pwd "$@" make[2]: Entering directory `/usr/src/kernels/2.6.9-42.0.3.EL-smp-i686'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory /usr/src/kernels/2.6.9-42.0.3.EL-smp-i686' make[1]: Leaving directory /var/tmp/kvm-11/kernel'
make -C user
make[1]: Entering directory `/var/tmp/kvm-11/user'
cc -I /var/tmp/kvm-11/kernel/include -MMD -MF ./.kvmctl.d -g -c -o
kvmctl.o kvmctl.c
cc -I /var/tmp/kvm-11/kernel/include -MMD -MF ./.main.d -g -c -o
main.o main.c
cc kvmctl.o main.o -o kvmctl
ar rcs libkvm.a kvmctl.o
make[1]: Leaving directory `/var/tmp/kvm-11/user'
make -C qemu
make[1]: Entering directory `/var/tmp/kvm-11/qemu'
gcc -DQEMU_TOOL -I /var/tmp/kvm-11/qemu/../user -Wall -O2 -g -fno-strict-aliasing -I. -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o qemu-img qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c block-vvfat.c -lz -luuid
................
................
gcc -I /var/tmp/kvm-11/qemu/../user -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/var/tmp/kvm-11/qemu/target-i386 -I/var/tmp/kvm-11/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/kvm-11/qemu/fpu -I /var/tmp/kvm-11/kernel/include -DHAS_AUDIO -I/var/tmp/kvm-11/qemu/slirp -c -o disas.o /var/tmp/kvm-11/qemu/disas.c
gcc -I /var/tmp/kvm-11/qemu/../user -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/var/tmp/kvm-11/qemu/target-i386 -I/var/tmp/kvm-11/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/kvm-11/qemu/fpu -I /var/tmp/kvm-11/kernel/include -DHAS_AUDIO -I/var/tmp/kvm-11/qemu/slirp -c -o i386-dis.o /var/tmp/kvm-11/qemu/i386-dis.c
rm -f libqemu.a
ar rcs libqemu.a exec.o kqemu.o qemu-kvm.o translate-op.o translate-all.o cpu-exec.o translate.o op.o fpu/softfloat-native.o helper.o helper2.o translate-copy.o disas.o i386-dis.o
gcc -L /var/tmp/kvm-11/qemu/../user -o qemu vl.o osdep.o block.o readline.o monitor.o pci.o console.o loader.o block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o migration.o scsi-disk.o cdrom.o lsi53c895a.o usb.o usb-hub.o usb-linux.o usb-hid.o usb-ohci.o usb-msd.o ne2000.o rtl8139.o pcnet.o hypercall.o ide.o pckbd.o ps2.o vga.o sb16.o es1370.o dma.o audio.o noaudio.o wavaudio.o sdlaudio.o ossaudio.o alsaaudio.o wavcapture.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o cirrus_vga.o mixeng.o apic.o parallel.o acpi.o piix_pci.o usb-uhci.o gdbstub.o sdl.o vnc.o slirp/cksum.o slirp/if.o slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o slirp/bootp.o slirp/debug.o slirp/tftp.o libqemu.a -lm -lz -lasound -lkvm -L/usr/lib -lSDL -lpthread -lutil -lrt -luuid make[2]: Leaving directory /var/tmp/kvm-11/qemu/i386-softmmu' make[1]: Leaving directory /var/tmp/kvm-11/qemu' [root@espai07 kvm-11]# make install
make -C kernel DESTDIR="" install
make[1]: Entering directory `/var/tmp/kvm-11/kernel'
mkdir -p //lib/modules/2.6.9-42.0.3.ELsmp/extra
cp *.ko //lib/modules/2.6.9-42.0.3.ELsmp/extra
cp: cannot stat `*.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/var/tmp/kvm-11/kernel'
make: *** [install] Error 2

Notice that in the "make -C kernel" does not do enything.

Frank

Quoted 20 lines · Uri Lublin

Hi Frank,

The modules were probably already made.
Try to remake (from <kvm-dir>): "make clean ; ./configure --qemu-cc=gcc ; make"

Uri.

-----Original Message-----
From: Francesc [mailto:frank-VfcrZIqfQH54piUD7e9S/[email protected]]
Sent: Wed 17/01/2007 14:31
To: Uri Lublin
Cc: [email protected]
Subject: Re: [kvm-devel] compiler problem in Read Hat ES 4

Hi Uri,
it has compiled OK with gcc, but it has not produced any module ( .ko) It seems like does not do anything when the "make" should do this part:

Quoted 8 lines

<snipped and reordered>

what can be the problem?

Thanks for your help.

Frank

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#7 lore raw

Hi Frank,

It seems it would be easier if you'd build kvm on a more recent linux kernel (version 2.6.16 or later).
You could not make the kvm modules because 2.6.9 kernel does not use Kbuild, but expects that information to be in the Makefile. So... I typed "cd kernel; mv Makefile Makefile.orig; cat Kbuild Makefile.orig > Makefile; make".
That started building the modules, but include file <linux/mutex.h> was not found.
linux/mutex.h was introduced in version 2.6.16

If you insist on 2.6.9, try to replace the mutex with a semaphore (kvm_main.c and kvm.h).

Uri.

-----Original Message-----
From: Francesc [mailto:frank-VfcrZIqfQH54piUD7e9S/[email protected]]
Sent: Thu 18/01/2007 10:32
To: Uri Lublin
Cc: [email protected]
Subject: Re: [kvm-devel] compiler problem in Read Hat ES 4

Hi Uri,
I did it what you said but it's the same:

[root@espai07 kvm-11]# make clean ; ./configure --qemu-cc=gcc ; make for i in kernel user qemu; do \

        make -C $i clean; \

done
make[1]: Entering directory `/var/tmp/kvm-11/kernel'
make -C /lib/modules/2.6.9-42.0.3.ELsmp/build M=pwd clean
make[2]: Entering directory `/usr/src/kernels/2.6.9-42.0.3.EL-smp-i686'
CLEAN /var/tmp/kvm-11/kernel/.tmp_versions
make[2]: Leaving directory `/usr/src/kernels/2.6.9-42.0.3.EL-smp-i686'
make[1]: Leaving directory `/var/tmp/kvm-11/kernel'
make[1]: Entering directory `/var/tmp/kvm-11/user'
rm -f kvmctl *.o *.a .*.d
rm -f test/bootstrap test/*.o test/*.flat test/.*.d
make[1]: Leaving directory `/var/tmp/kvm-11/user'
make[1]: Entering directory `/var/tmp/kvm-11/qemu'
rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h
opc-arm.h gen-op-arm.h
rm -f *.o *.a qemu-img dyngen TAGS *.pod *~ */*~
make -C tests clean
make[2]: Entering directory `/var/tmp/kvm-11/qemu/tests'
rm -f *~ *.o test-i386.out test-i386.ref \
test-x86_64.log test-x86_64.ref qruncom linux-test testthread
sha1-i386 test-i386 runcom sha1
make[2]: Leaving directory `/var/tmp/kvm-11/qemu/tests'
for d in i386-softmmu; do \
make -C $d clean || exit 1 ; \
done
make[2]: Entering directory `/var/tmp/kvm-11/qemu/i386-softmmu'
rm -f *.o *.a *~ qemu gen-op.h opc.h op.h nwfpe/*.o slirp/*.o fpu/*.o
make[2]: Leaving directory `/var/tmp/kvm-11/qemu/i386-softmmu'
make[1]: Leaving directory `/var/tmp/kvm-11/qemu'
rm -f config.make user/config.mak
which: no texi2html in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /var/tmp/kvm-11/qemu
C compiler        gcc
Host C compiler   gcc
make              make
install           install
host CPU          i386
host big endian   no
target list       i386-softmmu
gprof enabled     no
profiler          no
static build      no
SDL support       yes
SDL static link   yes
mingw32 support   no
Adlib support     no
CoreAudio support no
ALSA support      yes
DSound support    no
FMOD support      no
kqemu support     no
kvm support       yes
Documentation     no

make -C kernel
make[1]: Entering directory `/var/tmp/kvm-11/kernel'
make -C /lib/modules/2.6.9-42.0.3.ELsmp/build M=pwd "$@" make[2]: Entering directory `/usr/src/kernels/2.6.9-42.0.3.EL-smp-i686'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory /usr/src/kernels/2.6.9-42.0.3.EL-smp-i686' make[1]: Leaving directory /var/tmp/kvm-11/kernel'
make -C user
make[1]: Entering directory `/var/tmp/kvm-11/user'
cc -I /var/tmp/kvm-11/kernel/include -MMD -MF ./.kvmctl.d -g -c -o
kvmctl.o kvmctl.c
cc -I /var/tmp/kvm-11/kernel/include -MMD -MF ./.main.d -g -c -o
main.o main.c
cc kvmctl.o main.o -o kvmctl
ar rcs libkvm.a kvmctl.o
make[1]: Leaving directory `/var/tmp/kvm-11/user'
make -C qemu
make[1]: Entering directory `/var/tmp/kvm-11/qemu'
gcc -DQEMU_TOOL -I /var/tmp/kvm-11/qemu/../user -Wall -O2 -g -fno-strict-aliasing -I. -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o qemu-img qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c block-vvfat.c -lz -luuid
................
................
gcc -I /var/tmp/kvm-11/qemu/../user -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/var/tmp/kvm-11/qemu/target-i386 -I/var/tmp/kvm-11/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/kvm-11/qemu/fpu -I /var/tmp/kvm-11/kernel/include -DHAS_AUDIO -I/var/tmp/kvm-11/qemu/slirp -c -o disas.o /var/tmp/kvm-11/qemu/disas.c
gcc -I /var/tmp/kvm-11/qemu/../user -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/var/tmp/kvm-11/qemu/target-i386 -I/var/tmp/kvm-11/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/kvm-11/qemu/fpu -I /var/tmp/kvm-11/kernel/include -DHAS_AUDIO -I/var/tmp/kvm-11/qemu/slirp -c -o i386-dis.o /var/tmp/kvm-11/qemu/i386-dis.c
rm -f libqemu.a
ar rcs libqemu.a exec.o kqemu.o qemu-kvm.o translate-op.o translate-all.o cpu-exec.o translate.o op.o fpu/softfloat-native.o helper.o helper2.o translate-copy.o disas.o i386-dis.o
gcc -L /var/tmp/kvm-11/qemu/../user -o qemu vl.o osdep.o block.o readline.o monitor.o pci.o console.o loader.o block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o migration.o scsi-disk.o cdrom.o lsi53c895a.o usb.o usb-hub.o usb-linux.o usb-hid.o usb-ohci.o usb-msd.o ne2000.o rtl8139.o pcnet.o hypercall.o ide.o pckbd.o ps2.o vga.o sb16.o es1370.o dma.o audio.o noaudio.o wavaudio.o sdlaudio.o ossaudio.o alsaaudio.o wavcapture.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o cirrus_vga.o mixeng.o apic.o parallel.o acpi.o piix_pci.o usb-uhci.o gdbstub.o sdl.o vnc.o slirp/cksum.o slirp/if.o slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o slirp/bootp.o slirp/debug.o slirp/tftp.o libqemu.a -lm -lz -lasound -lkvm -L/usr/lib -lSDL -lpthread -lutil -lrt -luuid make[2]: Leaving directory /var/tmp/kvm-11/qemu/i386-softmmu' make[1]: Leaving directory /var/tmp/kvm-11/qemu' [root@espai07 kvm-11]# make install
make -C kernel DESTDIR="" install
make[1]: Entering directory `/var/tmp/kvm-11/kernel'
mkdir -p //lib/modules/2.6.9-42.0.3.ELsmp/extra
cp *.ko //lib/modules/2.6.9-42.0.3.ELsmp/extra
cp: cannot stat `*.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/var/tmp/kvm-11/kernel'
make: *** [install] Error 2

Notice that in the "make -C kernel" does not do enything.

Frank

Quoted 20 lines · Uri Lublin

Hi Frank,

The modules were probably already made.
Try to remake (from <kvm-dir>): "make clean ; ./configure --qemu-cc=gcc ; make"

Uri.

-----Original Message-----
From: Francesc [mailto:frank-VfcrZIqfQH54piUD7e9S/[email protected]]
Sent: Wed 17/01/2007 14:31
To: Uri Lublin
Cc: [email protected]
Subject: Re: [kvm-devel] compiler problem in Read Hat ES 4

Hi Uri,
it has compiled OK with gcc, but it has not produced any module ( .ko) It seems like does not do anything when the "make" should do this part:

Quoted 8 lines

<snipped and reordered>

what can be the problem?

Thanks for your help.

Frank

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

A message that is not in the archive (sent off-list or not yet received): 64F9B87B6B770947A9F8391472E0321603496B09-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/[email protected]

#9 lore raw
Quoted 4 lines · Uri Lublin

Hi Frank,

It seems it would be easier if you'd build kvm on a more recent linux kernel (version 2.6.16 or later).

It wouldn't be ES 4 then. The way the enterprise releases work is that no software is upgraded, therefore you don't find new and exciting changes in the way things work. Instead, any bug fixes or security patches are backported to the original software.

Quoted 11 lines

You could not make the kvm modules because 2.6.9 kernel does not use Kbuild, but expects that information to be in the Makefile. So... I typed "cd kernel; mv Makefile Makefile.orig; cat Kbuild Makefile.orig > Makefile; make".
That started building the modules, but include file <linux/mutex.h> was not found.
linux/mutex.h was introduced in version 2.6.16

If you insist on 2.6.9, try to replace the mutex with a semaphore (kvm_main.c and kvm.h).

ES is intended to provide extremely stable platforms for production servers, which normally doesn't make it a good candidate for building new kernel modules.

I assume that's why ES is being used.

Signature · 10 lines
Bill Davidsen <[email protected]>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
#10 lore raw

I was merely pointing out the cause of the problem, and offering a couple of ways for solving it.
Of course, there may be other solutions.
A valid alternative, which I did not mention due to a possibly long waiting time, is to wait for KVM (and/or a newer Linux kernel version) to be included in a Red Hat ES release or update.

Regards,
Uri.

-----Original Message-----
From: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org on behalf of Bill Davidsen
Sent: Wed 24/01/2007 02:20
To: [email protected]
Cc: public-kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f-8ByrlEUxsivZ+VzJOa5vwg@public.gmane.org
Subject: Re: [kvm-devel] compiler problem in Read Hat ES 4

Quoted 4 lines · Uri Lublin

Hi Frank,

It seems it would be easier if you'd build kvm on a more recent linux kernel (version 2.6.16 or later).

It wouldn't be ES 4 then. The way the enterprise releases work is that no software is upgraded, therefore you don't find new and exciting changes in the way things work. Instead, any bug fixes or security patches are backported to the original software.

Quoted 11 lines

You could not make the kvm modules because 2.6.9 kernel does not use Kbuild, but expects that information to be in the Makefile. So... I typed "cd kernel; mv Makefile Makefile.orig; cat Kbuild Makefile.orig > Makefile; make".
That started building the modules, but include file <linux/mutex.h> was not found.
linux/mutex.h was introduced in version 2.6.16

If you insist on 2.6.9, try to replace the mutex with a semaphore (kvm_main.c and kvm.h).

ES is intended to provide extremely stable platforms for production servers, which normally doesn't make it a good candidate for building new kernel modules.

I assume that's why ES is being used.

Signature · 3 lines
Bill Davidsen <[email protected]>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

author
#11 lore raw
In reply to a message not in the archive
Quoted 13 lines · Uri Lublin

Hi Frank,

It seems it would be easier if you'd build kvm on a more recent linux kernel (version 2.6.16 or later).
You could not make the kvm modules because 2.6.9 kernel does not use Kbuild, but expects that information to be in the Makefile. So... I typed "cd kernel; mv Makefile Makefile.orig; cat Kbuild Makefile.orig > Makefile; make".
That started building the modules, but include file <linux/mutex.h> was not found.
linux/mutex.h was introduced in version 2.6.16

Quoted 5 lines

If you insist on 2.6.9, try to replace the mutex with a semaphore (kvm_main.c and kvm.h).

Uri.

Hi Uri,
I have install 2.6.19.2 kernel in Red Hat and I have got .ko files at last !!
But it seems if there is a problem when I try to load the module:

modprobe kvm-intel
FATAL: Error inserting kvm_intel (/lib/modules/2.6.19.2/extra/kvm-intel.ko): Operation not supported

I have tried to load "kvm" one (without intel extension) but I suppose it is not right becase qemu fails:

/usr/local/kvm/bin/qemu -hda vdisk.img -cdrom /var/tmp/ubuntu-6.10-server-i386.iso -boot d -m 384 open /dev/kvm: No such file or directory Could not initialize KVM, will disable KVM support

I need your help again.
Thanks a lot.

Frank

Signature · 11 lines
Aquest missatge ha estat analitzat per MailScanner
a la cerca de virus i d'altres continguts perillosos,
i es considera que està net.
For all your IT requirements visit: http://www.transtec.co.uk


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): 45B73AB5.1000000-VfcrZIqfQH54piUD7e9S/[email protected]

#13 lore raw

Hi!

Quoted 7 lines · Francesc

I have install 2.6.19.2 kernel in Red Hat and I have got .ko files at last !!
But it seems if there is a problem when I try to load the module:

modprobe kvm-intel
FATAL: Error inserting kvm_intel (/lib/modules/2.6.19.2/extra/kvm-intel.ko): Operation not supported

Please check the output of dmesg. This usually means that a) kvm isn't supported or b) it's disabled by the BIOS.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#15 lore raw
Quoted 9 lines · Michael Riepe

Hi!

Quoted 4 lines · Francesc

I have install 2.6.19.2 kernel in Red Hat and I have got .ko files at last !!
But it seems if there is a problem when I try to load the module:

Quoted 9 lines
Quoted 4 lines

modprobe kvm-intel
FATAL: Error inserting kvm_intel (/lib/modules/2.6.19.2/extra/kvm-intel.ko): Operation not supported

Please check the output of dmesg. This usually means that a) kvm isn't supported or b) it's disabled by the BIOS.

Thank's. You were absolutely right. Virtualization was disbled. I enabled it and module seems to load.
The only thing is that I get this message:

kvm: no version for "struct_module" found: kernel tainted.
kvm: msrs: 2

does it mean any trouble?

Frank

Signature · 11 lines
Aquest missatge ha estat analitzat per MailScanner
a la cerca de virus i d'altres continguts perillosos,
i es considera que està net.
For all your IT requirements visit: http://www.transtec.co.uk


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): 45B85C39.6040707-VfcrZIqfQH54piUD7e9S/[email protected]

#17 lore raw

Hi!

Quoted 8 lines · Francesc

Thank's. You were absolutely right. Virtualization was disbled. I enabled it and module seems to load.
The only thing is that I get this message:

kvm: no version for "struct_module" found: kernel tainted.
kvm: msrs: 2

does it mean any trouble?

Usually not. It may be impossible to get support from Red Hat if the kernel is tainted (depending on their policy). The second line is just a debugging aid.

Signature · 8 lines
Michael "Tired" Riepe <[email protected]>
X-Tired: Each morning I get up I die a little

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV