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

[Xen-users] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
  • Date: Wed, 15 Dec 2010 20:21:20 -0200
  • Cc:
  • Delivery-date: Wed, 15 Dec 2010 14:34:48 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=xhaaU3ctxuybgU5MA53h4ELGd9X7vmeDlhtJVwL+3WjiEkowFBvkpupVNxN/goKND/ 4ogF5crOFmmIloLR+DmMXnoAMH34jlGAYf+ydfJ5+u9Wk+J328X7B1UdXPUAoawFhf7T hUEGIhdiIDUzVnaBqGECfnjbEUZPVr1Ie60A0=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Sorry, some times my english are terrible...

I'm trying to repeat my compilation process, wich works on top of Ubuntu 10.04 and 10.10 but, on top of Ubuntu Natty 11.04, neither version 4.01 or 4.1-unstable are compiling...

Regards,
Thiago

2010/12/15 Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
Guys,

 I'm trying to repeat my compilation process, wich works on top of Ubuntu 10.04 and 10.10, on top of Ubuntu Natty 11.04 but, neither version 4.01 or 4.1-unstable are compiling...

 Xen 4.0.1:
 Ubuntu 10.04 64 bits - compiles Okay
 Ubuntu 10.10 64 bits - compiles Okay
 Ubuntu 11.04 64 bits - compilation failed

 Xen-Unstable:
 Ubuntu 10.04 64 bits - compiles Okay
 Ubuntu 10.10 64 bits - compiles Okay
 Ubuntu 11.04 64 bits - compilation failed

---

 My compilation procedure:

 Install Ubuntu 10.04 or 10.10 64 bits / Server or Desktop:

 aptitude update
 aptitude install bridge-utils build-essential libncurses5-dev dpkg-dev debhelper fakeroot uuid-dev iasl texinfo git-core
 apt-get build-dep xen-3.3

 cd /usr/src

 wget http://bits.xensource.com/oss-xen/release/4.0.1/xen-4.0.1.tar.gz   # can be:  "hg clone http://xenbits.xensource.com/xen-unstable.hg"
 tar xf xen-4.0.1.tar.gz
 cd xen-4.0.1       # can be "cd xen-unstable.hg"

 make xen
 make tools
 make stubdom

 make install-xen
# make install-tools
 make install-tools PYTHON_PREFIX_ARG=
 make install-stubdom

---

 This procedure works fine on top of Ubuntu 10.04 and 10.10 but, it does not work with Ubuntu 11.04. Even if I install the libgcrypt...

 The compilation of the dom0 kernel is out of the scope of this work.


 Can someone help-me?!

Thanks!
Thiago

2010/12/10 Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
Guys,

 I do:

 hg clone http://xenbits.xensource.com/xen-unstable.hg
 cd xen-unstable.hg

 make xen #OKAY
...
 make tools #FAIL
...
make[4]: Entering directory `/home/administrativo/xen-unstable.hg/tools/blktap'
make -C drivers install
make[5]: Entering directory `/home/administrativo/xen-unstable.hg/tools/blktap/drivers'

Makefile:23: === libgcrypt not installed: falling back to libcrypto ===
gcc  -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .blk_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blk_linux.o blk_linux.c
cc1: warnings being treated as errors
In file included from tapdisk.h:62:0,
                 from blk_linux.c:4:
../lib/blktaplib.h:199:0: error: "WRITE" redefined
/usr/include/linux/fs.h:160:0: note: this is the location of the previous definition
make[5]: *** [blk_linux.o] Error 1
make[5]: Leaving directory `/home/administrativo/xen-unstable.hg/tools/blktap/drivers'

make[4]: *** [subdir-install-drivers] Error 2
make[4]: Leaving directory `/home/administrativo/xen-unstable.hg/tools/blktap'

make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory `/home/administrativo/xen-unstable.hg/tools/blktap'

make[2]: *** [subdir-install-blktap] Error 2
make[2]: Leaving directory `/home/administrativo/xen-unstable.hg/tools'

make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/administrativo/xen-unstable.hg/tools'

make: *** [install-tools] Error 2

 Can someone help me?!

Thanks!
Thiago

2010/12/10 Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>

Guys,

 I'm trying to compile the Xen 4.0.1 on top of a Ubuntu Natty 11.04 32 bits but, it stops at blktap, check it out:

make[5]: Entering directory `/usr/src/xen-4.0.1/tools/blktap/drivers'
Makefile:23: === libgcrypt not installed: falling back to libcrypto ===
gcc  -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .blktapctrl.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blktapctrl.o blktapctrl.c
gcc  -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .blktapctrl_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blktapctrl_linux.o blktapctrl_linux.c
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .blktapctrl.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -o blktapctrl blktapctrl.o blktapctrl_linux.o    -L../../../tools/libxc -lxenctrl -L../../../tools/xenstore -lxenstore  ../../memshr/libmemshr.a -L../lib -lblktap -lrt -lm -lpthread
../../memshr/libmemshr.a(interface.o): In function `memshr_vbd_initialize':
/usr/src/xen-4.0.1/tools/memshr/interface.c:116: undefined reference to `xc_interface_open'
../../memshr/libmemshr.a(interface.o): In function `memshr_vbd_issue_ro_request':
/usr/src/xen-4.0.1/tools/memshr/interface.c:165: undefined reference to `xc_memshr_nominate_gref'
/usr/src/xen-4.0.1/tools/memshr/interface.c:179: undefined reference to `xc_memshr_share'
collect2: ld returned 1 exit status
make[5]: *** [blktapctrl] Error 1
make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap/drivers'
make[4]: *** [subdir-install-drivers] Error 2
make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'
make[2]: *** [subdir-install-blktap] Error 2
make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/usr/src/xen-4.0.1/tools'
make: *** [install-tools] Error 2

 But the packages are installed...

# dpkg -l | grep cryp
ii  libcrypto++-dev                    5.6.0-6                             General purpose cryptographic library - C++ development
ii  libcrypto++8                       5.6.0-6                             General purpose cryptographic library - shared library
ii  libgcrypt11                        1.4.5-2ubuntu2                      LGPL Crypto library - runtime library
ii  libgcrypt11-dev                    1.4.5-2ubuntu2                      LGPL Crypto library - development files
ii  libk5crypto3                       1.8.3+dfsg-3                        MIT Kerberos runtime libraries - Crypto Library
ii  openssl                            0.9.8o-3ubuntu1                     Secure Socket Layer (SSL) binary and related cryptographic tools

 What can I do?

Thanks!
Thiago





_______________________________________________
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®.