[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RES: [Xen-users] Compiling xen-unstable


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Felipe Franciosi" <ozzy@xxxxxxxxxxxxx>
  • Date: Mon, 31 Oct 2005 18:08:41 -0200
  • Delivery-date: Mon, 31 Oct 2005 20:05:56 +0000
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcXeTcJisj4u109eSXafHRzb0KZbYgACFIGA

Indeed. Adding -lpthread to the appropriate Makefile line fixed the problem.

This is what I've changed:

[root@xen01 xen-unstable]# grep -A 1 -B 2 pthread
tools/ioemu/target-i386-dm/Makefile 

$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a
        $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(VNC_LIBS)
$(VL_LIBS) -lpthread

[root@xen01 xen-unstable]#

Regards,
--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
 Felipe Franciosi                      +55-51-91230557
 CPAD/HP/PUCRS - Centro de Pesquisa em Alto Desempenho
 http://www.cpad.pucrs.br/          ozzy@xxxxxxxxxxxxx
 Porto Alegre, RS - Brazil
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

-----Mensagem original-----
De: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] Em nome de Felipe Franciosi
Enviada em: segunda-feira, 31 de outubro de 2005 17:03
Para: xen-users@xxxxxxxxxxxxxxxxxxx
Assunto: [Xen-users] Compiling xen-unstable

Hello there,

I'm using Fedora Core 4 as my base system (for Dom0). I have a globus
cluster in my lab running on Debian Sarge and I've been trying to migrate a
few of these hosts to my Xen environment.

The default xen packages for FC4 ended in a kernel panic while trying to
boot Dom0, so I've used the packages from people.redhat.com/riel.

The problem is that kernel-xenU from riel seems incompatible with Debian
Sarge images (I don't know exactly why).

Now I'm trying to compile the xen-unstable package (using gcc-4 *UGH*).

During compilation, I'm seeing this error:

[root@xen01 xen-unstable]# make world
<... makefile ...>
rm -f libqemu.a
ar rcs libqemu.a  helper2.o
gcc  -o qemu-dm vl.o exec.o monitor.o osdep.o block.o readline.o pci.o
console.o block-cow.o block-qcow.o block-vmdk.o block-cloop.o aes.o ioapic.o
ide.o ne2000.o pckbd.o vga.o dma.o fdc.o mc146818rtc.o serial.o i8259_stub.o
i8254.o pc.o port-e9.o cirrus_vga.o pcnet.o libqemu.a  -lm -L../../libxc
-lxenctrl -lz   -lutil
ide.o(.text+0x25): In function `dma_create_thread':
/root/xen-unstable/tools/ioemu/hw/ide.c:394: undefined reference to
`pthread_create'
ide.o(.text+0x37):/root/xen-unstable/tools/ioemu/hw/ide.c:399: undefined
reference to `pthread_detach'
collect2: ld returned 1 exit status
make[5]: *** [qemu-dm] Error 1
make[5]: Leaving directory `/root/xen-unstable/tools/ioemu/target-i386-dm'
make[4]: *** [all] Error 1
make[4]: Leaving directory `/root/xen-unstable/tools/ioemu'
make[3]: *** [ioemuinstall] Error 2
make[3]: Leaving directory `/root/xen-unstable/tools'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/root/xen-unstable/tools'
make[1]: *** [install-tools] Error 2
make[1]: Leaving directory `/root/xen-unstable'
make: *** [world] Error 2
[root@xen01 xen-unstable]# gcc --version
gcc (GCC) 4.0.1 20050727 (Red Hat 4.0.1-5)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@xen01 xen-unstable]# ls -la ../xen-unstable-src.tgz 
-rw-r--r--  1 root root 4698990 Oct 28 01:59 ../xen-unstable-src.tgz
[root@xen01 xen-unstable]# date
Mon Oct 31 16:59:06 BRST 2005
[root@xen01 xen-unstable]#          

I believe that there's a missing -lpthread or something on that gcc line
that crashed. I've attached the date of download of the unstable package.

Ideas?

Thanks.

--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
 Felipe Franciosi                      +55-51-91230557
 CPAD/HP/PUCRS - Centro de Pesquisa em Alto Desempenho
 http://www.cpad.pucrs.br/          ozzy@xxxxxxxxxxxxx
 Porto Alegre, RS - Brazil
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.