kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kvm-87 fails to compile under uClibc
@ 2009-07-07  2:42 Cristi Magherusan
  2009-07-07  3:21 ` Mike Frysinger
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Cristi Magherusan @ 2009-07-07  2:42 UTC (permalink / raw)
  To: uclibc, kvm


[-- Attachment #1.1: Type: text/plain, Size: 1758 bytes --]

Hi there,

I'm trying to compile kvm using uClibc instead of glibc.

Besides the fact that kvm needs "--extra-ldflags=-lrt" (otherwise there
are some missing symbols), there's an error caused by another missing
symbol that I was unable to fix yet. It's about ioperm, and this is the
error I get:

/home/cristi/devel/avatt/buildroot/build_i586/staging_dir/usr/bin/i586-linux-uclibc-gcc -lrt -g -Wl,--warn-common  -m32 -o qemu-system-x86_64 vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o gdbstub.o gdbstub-xml.o virtio-blk.o virtio-balloon.o virtio-net.o virtio-console.o usb-ohci.o eepro100.o ne2000.o pcnet.o rtl8139.o e1000.o wdt_ib700.o wdt_i6300esb.o ide.o pckbd.o vga.o sb16.o es1370.o ac97.o dma.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o cirrus_vga.o apic.o ioapic.o parallel.o acpi.o piix_pci.o usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o device-hotplug.o pci-hotplug.o smbios.o extboot.o i8254-kvm.o -Wl,--whole-archive ../libqemu_common.a libqemu.a ../libhw64/libqemuhw64.a  -Wl,--no-whole-archive  -lm -lz  -lpthread  -lutil   -lcurses   
libqemu.a(qemu-kvm-x86.o): In function `kvm_arch_do_ioperm':
/home/cristi/devel/avatt/buildroot/build_i586/kvm-87/qemu-kvm-x86.c:1538: undefined reference to `ioperm'
collect2: ld returned 1 exit status
make[3]: *** [qemu-system-x86_64] Error 1
make[3]: Leaving directory
`/home/cristi/devel/avatt/buildroot/build_i586/kvm-87/x86_64-softmmu'

I'm using linux-2.6.26.8, uClibc-HEAD(linuxthreds, almost complete
setup) and gcc 4.3.3.

Also, is this kernel version supposed to work with this kvm?

Thanks,
Cristi

-- 
Ing. Cristi Măgherușan, System/Network Engineer
Technical University of Cluj-Napoca, Romania
http://cc.utcluj.ro  +40264 401247

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 134 bytes --]

_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07  2:42 kvm-87 fails to compile under uClibc Cristi Magherusan
@ 2009-07-07  3:21 ` Mike Frysinger
  2009-07-07  7:34   ` Bernhard Reutner-Fischer
  2009-07-07  9:12 ` Avi Kivity
  2009-07-08  6:13 ` Natanael Copa
  2 siblings, 1 reply; 18+ messages in thread
From: Mike Frysinger @ 2009-07-07  3:21 UTC (permalink / raw)
  To: uclibc; +Cc: Cristi Magherusan, kvm


[-- Attachment #1.1: Type: text/plain, Size: 308 bytes --]

On Monday 06 July 2009 22:42:46 Cristi Magherusan wrote:
> /home/cristi/devel/avatt/buildroot/build_i586/kvm-87/qemu-kvm-x86.c:1538:
> undefined reference to `ioperm'

ioperm is enabled only if your kernel headers declare __NR_ioperm.  if it isnt 
enabled in your C library, check your headers.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 134 bytes --]

_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07  3:21 ` Mike Frysinger
@ 2009-07-07  7:34   ` Bernhard Reutner-Fischer
  2009-07-07 11:15     ` Cristi Magherusan
  2009-07-07 14:33     ` Mike Frysinger
  0 siblings, 2 replies; 18+ messages in thread
From: Bernhard Reutner-Fischer @ 2009-07-07  7:34 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: uclibc, Cristi Magherusan, kvm

On Mon, Jul 06, 2009 at 11:21:03PM -0400, Mike Frysinger wrote:
>On Monday 06 July 2009 22:42:46 Cristi Magherusan wrote:
>> /home/cristi/devel/avatt/buildroot/build_i586/kvm-87/qemu-kvm-x86.c:1538:
>> undefined reference to `ioperm'
>
>ioperm is enabled only if your kernel headers declare __NR_ioperm.  if it isnt 
>enabled in your C library, check your headers.

and it's only enabled if UCLIBC_LINUX_SPECIFIC since it is that, in no standard
but linux specific (_and_ you need an MMU for it).

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07  2:42 kvm-87 fails to compile under uClibc Cristi Magherusan
  2009-07-07  3:21 ` Mike Frysinger
@ 2009-07-07  9:12 ` Avi Kivity
  2009-07-07 11:31   ` Cristi Magherusan
  2009-07-08  6:13 ` Natanael Copa
  2 siblings, 1 reply; 18+ messages in thread
From: Avi Kivity @ 2009-07-07  9:12 UTC (permalink / raw)
  To: Cristi Magherusan; +Cc: uclibc, kvm

On 07/07/2009 05:42 AM, Cristi Magherusan wrote:
> Hi there,
>
> I'm trying to compile kvm using uClibc instead of glibc.
>
> Besides the fact that kvm needs "--extra-ldflags=-lrt" (otherwise there
> are some missing symbols), there's an error caused by another missing
> symbol that I was unable to fix yet. It's about ioperm, and this is the
> error I get:
>
>    

Well, you need a C library that supports ioperm, or provide it 
yourself.  If you don't use device assignment an empty function will 
suffice.

> I'm using linux-2.6.26.8, uClibc-HEAD(linuxthreds, almost complete
> setup) and gcc 4.3.3.
>
> Also, is this kernel version supposed to work with this kvm?
>    

Yes.


-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07  7:34   ` Bernhard Reutner-Fischer
@ 2009-07-07 11:15     ` Cristi Magherusan
  2009-07-07 14:33     ` Mike Frysinger
  1 sibling, 0 replies; 18+ messages in thread
From: Cristi Magherusan @ 2009-07-07 11:15 UTC (permalink / raw)
  To: Bernhard Reutner-Fischer; +Cc: Mike Frysinger, uclibc, kvm

[-- Attachment #1: Type: text/plain, Size: 819 bytes --]

On Tue, 2009-07-07 at 09:34 +0200, Bernhard Reutner-Fischer wrote:
> On Mon, Jul 06, 2009 at 11:21:03PM -0400, Mike Frysinger wrote:
> >On Monday 06 July 2009 22:42:46 Cristi Magherusan wrote:
> >> /home/cristi/devel/avatt/buildroot/build_i586/kvm-87/qemu-kvm-x86.c:1538:
> >> undefined reference to `ioperm'
> >
> >ioperm is enabled only if your kernel headers declare __NR_ioperm.  if it isnt 
> >enabled in your C library, check your headers.
> 
> and it's only enabled if UCLIBC_LINUX_SPECIFIC since it is that, in no standard
> but linux specific (_and_ you need an MMU for it).
I had UCLIBC_LINUX_SPECIFIC enabled. There must be anything else that
I'm missing..
-- 
Ing. Cristi Măgherușan, System/Network Engineer
Technical University of Cluj-Napoca, Romania
http://cc.utcluj.ro  +40264 401247

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07  9:12 ` Avi Kivity
@ 2009-07-07 11:31   ` Cristi Magherusan
  2009-07-07 11:43     ` Avi Kivity
                       ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Cristi Magherusan @ 2009-07-07 11:31 UTC (permalink / raw)
  To: Avi Kivity; +Cc: uclibc, kvm

[-- Attachment #1: Type: text/plain, Size: 1758 bytes --]

On Tue, 2009-07-07 at 12:12 +0300, Avi Kivity wrote:
> On 07/07/2009 05:42 AM, Cristi Magherusan wrote:
> > Hi there,
> >
> > I'm trying to compile kvm using uClibc instead of glibc.
> >
> > Besides the fact that kvm needs "--extra-ldflags=-lrt" (otherwise there
> > are some missing symbols), there's an error caused by another missing
> > symbol that I was unable to fix yet. It's about ioperm, and this is the
> > error I get:
> >
> >    
> 
> Well, you need a C library that supports ioperm, or provide it 
> yourself.  If you don't use device assignment an empty function will 
> suffice.
Thanks, 

I'll try to get it compiled, and as a fallback I could make a stub if
everything else fails.

> > I'm using linux-2.6.26.8, uClibc-HEAD(linuxthreds, almost complete
> > setup) and gcc 4.3.3.
> >
> > Also, is this kernel version supposed to work with this kvm?
> >    
> 
> Yes.
Actually only the headers are 2.6.26.8, the oldest vesion found in
buildroot. (I wonder why are older ones being abandoned, since the new
ones tend to get bigger and bigger.)

The kernel will be 2.6.24 because it's smaller. I know this mismatch may
not be good, but I have to get to a compromise. The kernel needs to be
as small as possible (everything should fit in a 4MB BIOS flash), and
also to support both this version of KVM and OpenVZ at the same time.
Older KVM versions have terrible buildsystem issues and I gave up trying
to get them compile in buildroot. I think OpenVZ could work on 2.6.26
too, but I haven't tried yet.

Could this be a real problem at runtime?

Thanks,
Cristi.

-- 
Ing. Cristi Măgherușan, System/Network Engineer
Technical University of Cluj-Napoca, Romania
http://cc.utcluj.ro  +40264 401247

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07 11:31   ` Cristi Magherusan
@ 2009-07-07 11:43     ` Avi Kivity
  2009-07-08 16:59       ` Cristi Magherusan
  2009-07-07 14:34     ` Mike Frysinger
  2009-07-07 15:31     ` Javier Guerra
  2 siblings, 1 reply; 18+ messages in thread
From: Avi Kivity @ 2009-07-07 11:43 UTC (permalink / raw)
  To: Cristi Magherusan; +Cc: uclibc, kvm

On 07/07/2009 02:31 PM, Cristi Magherusan wrote:
> The kernel will be 2.6.24 because it's smaller. I know this mismatch may
> not be good, but I have to get to a compromise. The kernel needs to be
> as small as possible (everything should fit in a 4MB BIOS flash), and
> also to support both this version of KVM and OpenVZ at the same time.
> Older KVM versions have terrible buildsystem issues and I gave up trying
> to get them compile in buildroot. I think OpenVZ could work on 2.6.26
> too, but I haven't tried yet.
>
> Could this be a real problem at runtime?
>    

I think 2.6.24 is too old for current qemu-kvm.  Also it doesn't receive 
security fixes; if you don't trust your users you should use 2.6.27.y or 
2.6.30.y (or a vendor kernel).

You can reduce qemu size by not compiling tcg; that'll save you a lot 
more than the kernel.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07  7:34   ` Bernhard Reutner-Fischer
  2009-07-07 11:15     ` Cristi Magherusan
@ 2009-07-07 14:33     ` Mike Frysinger
  1 sibling, 0 replies; 18+ messages in thread
From: Mike Frysinger @ 2009-07-07 14:33 UTC (permalink / raw)
  To: Bernhard Reutner-Fischer; +Cc: uclibc, Cristi Magherusan, kvm

[-- Attachment #1: Type: text/plain, Size: 822 bytes --]

On Tuesday 07 July 2009 03:34:57 Bernhard Reutner-Fischer wrote:
> On Mon, Jul 06, 2009 at 11:21:03PM -0400, Mike Frysinger wrote:
> >On Monday 06 July 2009 22:42:46 Cristi Magherusan wrote:
> >> /home/cristi/devel/avatt/buildroot/build_i586/kvm-87/qemu-kvm-x86.c:1538
> >>: undefined reference to `ioperm'
> >
> >ioperm is enabled only if your kernel headers declare __NR_ioperm.  if it
> > isnt enabled in your C library, check your headers.
>
> and it's only enabled if UCLIBC_LINUX_SPECIFIC since it is that, in no
> standard but linux specific (_and_ you need an MMU for it).

i missed that in the .c file.  we should probably have stub handling for all 
these BSD/Linux/GNU/etc... options such that if you disable the feature and 
have STUBS support turned on, you get a link warning about it.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07 11:31   ` Cristi Magherusan
  2009-07-07 11:43     ` Avi Kivity
@ 2009-07-07 14:34     ` Mike Frysinger
  2009-07-07 15:31     ` Javier Guerra
  2 siblings, 0 replies; 18+ messages in thread
From: Mike Frysinger @ 2009-07-07 14:34 UTC (permalink / raw)
  To: uclibc; +Cc: Cristi Magherusan, Avi Kivity, kvm


[-- Attachment #1.1: Type: text/plain, Size: 1086 bytes --]

On Tuesday 07 July 2009 07:31:30 Cristi Magherusan wrote:
> On Tue, 2009-07-07 at 12:12 +0300, Avi Kivity wrote:
> > On 07/07/2009 05:42 AM, Cristi Magherusan wrote:
> > > I'm using linux-2.6.26.8, uClibc-HEAD(linuxthreds, almost complete
> > > setup) and gcc 4.3.3.
> > >
> > > Also, is this kernel version supposed to work with this kvm?
> >
> > Yes.
>
> Actually only the headers are 2.6.26.8, the oldest vesion found in
> buildroot. (I wonder why are older ones being abandoned, since the new
> ones tend to get bigger and bigger.)

upgrade

> The kernel will be 2.6.24 because it's smaller. I know this mismatch may
> not be good, but I have to get to a compromise. The kernel needs to be
> as small as possible (everything should fit in a 4MB BIOS flash), and
> also to support both this version of KVM and OpenVZ at the same time.
> Older KVM versions have terrible buildsystem issues and I gave up trying
> to get them compile in buildroot. I think OpenVZ could work on 2.6.26
> too, but I haven't tried yet.
>
> Could this be a real problem at runtime?

with uClibc, yes
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 134 bytes --]

_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07 11:31   ` Cristi Magherusan
  2009-07-07 11:43     ` Avi Kivity
  2009-07-07 14:34     ` Mike Frysinger
@ 2009-07-07 15:31     ` Javier Guerra
  2009-07-07 15:58       ` Cristi Magherusan
  2 siblings, 1 reply; 18+ messages in thread
From: Javier Guerra @ 2009-07-07 15:31 UTC (permalink / raw)
  To: Cristi Magherusan; +Cc: Avi Kivity, uclibc, kvm

On Tue, Jul 7, 2009 at 6:31 AM, Cristi
Magherusan<Cristi.Magherusan@net.utcluj.ro> wrote:
> The kernel will be 2.6.24 because it's smaller. I know this mismatch may
> not be good, but I have to get to a compromise. The kernel needs to be
> as small as possible (everything should fit in a 4MB BIOS flash)

i know it's a big change; but have you tried the new kernel
compressions available in 2.6.30? they do make a difference.

-- 
Javier

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07 15:31     ` Javier Guerra
@ 2009-07-07 15:58       ` Cristi Magherusan
  0 siblings, 0 replies; 18+ messages in thread
From: Cristi Magherusan @ 2009-07-07 15:58 UTC (permalink / raw)
  To: Javier Guerra; +Cc: uclibc, Avi Kivity, kvm


[-- Attachment #1.1: Type: text/plain, Size: 814 bytes --]

On Tue, 2009-07-07 at 10:31 -0500, Javier Guerra wrote:
> On Tue, Jul 7, 2009 at 6:31 AM, Cristi
> Magherusan<Cristi.Magherusan@net.utcluj.ro> wrote:
> > The kernel will be 2.6.24 because it's smaller. I know this mismatch may
> > not be good, but I have to get to a compromise. The kernel needs to be
> > as small as possible (everything should fit in a 4MB BIOS flash)
> 
> i know it's a big change; but have you tried the new kernel
> compressions available in 2.6.30? they do make a difference.
> 
I know, I'm using plain initrd and plain kernel, then I compress the
generated coreboot payload using LZMA. Compressing them twice wouldn't
help me.

Cristi

-- 
Ing. Cristi Măgherușan, System/Network Engineer
Technical University of Cluj-Napoca, Romania
http://cc.utcluj.ro  +40264 401247

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 134 bytes --]

_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07  2:42 kvm-87 fails to compile under uClibc Cristi Magherusan
  2009-07-07  3:21 ` Mike Frysinger
  2009-07-07  9:12 ` Avi Kivity
@ 2009-07-08  6:13 ` Natanael Copa
  2009-07-08  8:12   ` Cristi Magherusan
  2 siblings, 1 reply; 18+ messages in thread
From: Natanael Copa @ 2009-07-08  6:13 UTC (permalink / raw)
  To: Cristi Magherusan; +Cc: uclibc, kvm

On Tue, 2009-07-07 at 05:42 +0300, Cristi Magherusan wrote:
> Hi there,
> 
> I'm trying to compile kvm using uClibc instead of glibc.

I upgraded to kvm-87 yesterday. It compiles, kvm is enabled, but guest
hangs when trying to mount the boot iso. I'm not sure if that I run kvm
in a vserver guest, or if its related to my hardened toolchain or
something in uclibc (linuxthreads.new?)


You find my build script here:
http://git.alpinelinux.org/cgit/aports/tree/testing/kvm/APKBUILD

-nc



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-08  6:13 ` Natanael Copa
@ 2009-07-08  8:12   ` Cristi Magherusan
  0 siblings, 0 replies; 18+ messages in thread
From: Cristi Magherusan @ 2009-07-08  8:12 UTC (permalink / raw)
  To: Natanael Copa; +Cc: uclibc, kvm

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

On Wed, 2009-07-08 at 08:13 +0200, Natanael Copa wrote:
> On Tue, 2009-07-07 at 05:42 +0300, Cristi Magherusan wrote:
> > Hi there,
> > 
> > I'm trying to compile kvm using uClibc instead of glibc.
> 
> I upgraded to kvm-87 yesterday. It compiles, kvm is enabled, but guest
> hangs when trying to mount the boot iso. I'm not sure if that I run kvm
> in a vserver guest, or if its related to my hardened toolchain or
> something in uclibc (linuxthreads.new?)
Most likely it can be due to TLS. Could you try to debug it?

> 
> You find my build script here:
> http://git.alpinelinux.org/cgit/aports/tree/testing/kvm/APKBUILD
Thanks,
Cristi
-- 
Ing. Cristi Măgherușan, System/Network Engineer
Technical University of Cluj-Napoca, Romania
http://cc.utcluj.ro  +40264 401247

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-07 11:43     ` Avi Kivity
@ 2009-07-08 16:59       ` Cristi Magherusan
  2009-07-08 17:07         ` Avi Kivity
  0 siblings, 1 reply; 18+ messages in thread
From: Cristi Magherusan @ 2009-07-08 16:59 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm

[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]

On Tue, 2009-07-07 at 14:43 +0300, Avi Kivity wrote:
> On 07/07/2009 02:31 PM, Cristi Magherusan wrote:
> > The kernel will be 2.6.24 because it's smaller. I know this mismatch may
> > not be good, but I have to get to a compromise. The kernel needs to be
> > as small as possible (everything should fit in a 4MB BIOS flash), and
> > also to support both this version of KVM and OpenVZ at the same
> time.
> > Older KVM versions have terrible buildsystem issues and I gave up trying
> > to get them compile in buildroot. I think OpenVZ could work on 2.6.26
> > too, but I haven't tried yet.
> >
> > Could this be a real problem at runtime?
> >    
> 
> I think 2.6.24 is too old for current qemu-kvm.  Also it doesn't receive 
> security fixes; if you don't trust your users you should use 2.6.27.y or 
> 2.6.30.y (or a vendor kernel).
Hi Avi,
Thanks for this advice, I'll switch to 2.6, whch should be ok since it's
also supported by OpenVZ.

> You can reduce qemu size by not compiling tcg; that'll save you a lot 
> more than the kernel.
How do I disable it? is it the --disable-cpu-emulation configure flag?
Unfortunately that one breaks compilation, and I reproduced this both in
my system and inside the buildroot toolchain that I'm using.

-- 
Ing. Cristi Măgherușan, System/Network Engineer
Technical University of Cluj-Napoca, Romania
http://cc.utcluj.ro  +40264 401247

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-08 16:59       ` Cristi Magherusan
@ 2009-07-08 17:07         ` Avi Kivity
  2009-07-08 17:34           ` Cristi Magherusan
  0 siblings, 1 reply; 18+ messages in thread
From: Avi Kivity @ 2009-07-08 17:07 UTC (permalink / raw)
  To: Cristi Magherusan; +Cc: kvm

On 07/08/2009 07:59 PM, Cristi Magherusan wrote:
>> You can reduce qemu size by not compiling tcg; that'll save you a lot
>> more than the kernel.
>>      
> How do I disable it? is it the --disable-cpu-emulation configure flag?
> Unfortunately that one breaks compilation, and I reproduced this both in
> my system and inside the buildroot toolchain that I'm using.
>    

It doesn't work now but I certainly want it to.  If you can come up with 
a simple patch I'll apply it.

$ size x86_64-softmmu/tcg/*.o x86_64-softmmu/fpu/*.o 
x86_64-softmmu/translate*.o x86_64-softmmu/helper.o
    text       data        bss        dec        hex    filename
   79296       2880         24      82200      14118    
x86_64-softmmu/tcg/tcg.o
     316          0          0        316        13c    
x86_64-softmmu/tcg/tcg-runtime.o
    3575          0          0       3575        df7    
x86_64-softmmu/fpu/softfloat-native.o
     723          0          8        731        2db    
x86_64-softmmu/translate-all.o
  367810          0         88     367898      59d1a    
x86_64-softmmu/translate.o
   15553       1232         16      16801       41a1    
x86_64-softmmu/helper.o

There's almost half a meg here.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-08 17:07         ` Avi Kivity
@ 2009-07-08 17:34           ` Cristi Magherusan
  2009-07-09  8:20             ` Avi Kivity
  0 siblings, 1 reply; 18+ messages in thread
From: Cristi Magherusan @ 2009-07-08 17:34 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm

[-- Attachment #1: Type: text/plain, Size: 1881 bytes --]

On Wed, 2009-07-08 at 20:07 +0300, Avi Kivity wrote:
> On 07/08/2009 07:59 PM, Cristi Magherusan wrote:
> >> You can reduce qemu size by not compiling tcg; that'll save you a lot
> >> more than the kernel.
> >>      
> > How do I disable it? is it the --disable-cpu-emulation configure flag?
> > Unfortunately that one breaks compilation, and I reproduced this both in
> > my system and inside the buildroot toolchain that I'm using.
> >    
> 
> It doesn't work now but I certainly want it to.  If you can come up with 
> a simple patch I'll apply it.
> 
> $ size x86_64-softmmu/tcg/*.o x86_64-softmmu/fpu/*.o 
> x86_64-softmmu/translate*.o x86_64-softmmu/helper.o
>     text       data        bss        dec        hex    filename
>    79296       2880         24      82200      14118    
> x86_64-softmmu/tcg/tcg.o
>      316          0          0        316        13c    
> x86_64-softmmu/tcg/tcg-runtime.o
>     3575          0          0       3575        df7    
> x86_64-softmmu/fpu/softfloat-native.o
>      723          0          8        731        2db    
> x86_64-softmmu/translate-all.o
>   367810          0         88     367898      59d1a    
> x86_64-softmmu/translate.o
>    15553       1232         16      16801       41a1    
> x86_64-softmmu/helper.o
> 
> There's almost half a meg here.
> 
Thanks, Actually I think that stripped and LZMA'd it should make a
little less difference. If I get tight and willing to remove cruft I
know where I can cut off, and then I'll try to patch it unless someone
does it first. I'd appreciate more something that wouldn't compile the
kernel modules at all :)

Also, what is extboot used for? Can I ommit it from my build?

Regards,
Cristi

-- 
Ing. Cristi Măgherușan, System/Network Engineer
Technical University of Cluj-Napoca, Romania
http://cc.utcluj.ro  +40264 401247

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-08 17:34           ` Cristi Magherusan
@ 2009-07-09  8:20             ` Avi Kivity
  2009-07-09 17:58               ` Cristi Magherusan
  0 siblings, 1 reply; 18+ messages in thread
From: Avi Kivity @ 2009-07-09  8:20 UTC (permalink / raw)
  To: Cristi Magherusan; +Cc: kvm

On 07/08/2009 08:34 PM, Cristi Magherusan wrote:
> Also, what is extboot used for?

Booting a guest from virtio and scsi.

> Can I ommit it from my build?
>    

If you like.  It's only a handful of bytes though.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: kvm-87 fails to compile under uClibc
  2009-07-09  8:20             ` Avi Kivity
@ 2009-07-09 17:58               ` Cristi Magherusan
  0 siblings, 0 replies; 18+ messages in thread
From: Cristi Magherusan @ 2009-07-09 17:58 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

On Thu, 2009-07-09 at 11:20 +0300, Avi Kivity wrote:
> On 07/08/2009 08:34 PM, Cristi Magherusan wrote:
> > Also, what is extboot used for?
> 
> Booting a guest from virtio and scsi.
> 
> > Can I ommit it from my build?
> >    
> 
> If you like.  It's only a handful of bytes though.
Hi Avi,

I asked because its buildsystem is also broken inside my toolchain,
since it accesses the host ld directly. Also, compiling with -j>1 inside
a toolchain(and not only this) exposes other weirdnesses in the
buildsystem. If there's anyone who wishes to reproduce them, just ask
for more info and I'll provide it happily, and if time allows I'll try
to figure it out by myself at the end of my GSoC project.

Thanks,
Cristi

-- 
Ing. Cristi Măgherușan, System/Network Engineer
Technical University of Cluj-Napoca, Romania
http://cc.utcluj.ro  +40264 401247

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2009-07-09 17:58 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-07  2:42 kvm-87 fails to compile under uClibc Cristi Magherusan
2009-07-07  3:21 ` Mike Frysinger
2009-07-07  7:34   ` Bernhard Reutner-Fischer
2009-07-07 11:15     ` Cristi Magherusan
2009-07-07 14:33     ` Mike Frysinger
2009-07-07  9:12 ` Avi Kivity
2009-07-07 11:31   ` Cristi Magherusan
2009-07-07 11:43     ` Avi Kivity
2009-07-08 16:59       ` Cristi Magherusan
2009-07-08 17:07         ` Avi Kivity
2009-07-08 17:34           ` Cristi Magherusan
2009-07-09  8:20             ` Avi Kivity
2009-07-09 17:58               ` Cristi Magherusan
2009-07-07 14:34     ` Mike Frysinger
2009-07-07 15:31     ` Javier Guerra
2009-07-07 15:58       ` Cristi Magherusan
2009-07-08  6:13 ` Natanael Copa
2009-07-08  8:12   ` Cristi Magherusan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).