WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] xen 3.4-testing build error

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xen 3.4-testing build error
From: AP <apxeng@xxxxxxxxx>
Date: Tue, 18 Oct 2011 22:19:05 -0700
Delivery-date: Tue, 18 Oct 2011 22:19:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=FEvZdUY/2WAlJXUGSvPIvC9ZZJMq4FJ9RcGBZYZx7To=; b=iE3Rwf2g3KwK75pnqP9Mi5CNxVx/CSsBCsk9iCLIUZ0R/j3qWEk7R0tCRsUJQcrFdQ cu0FAx51XUybCXG5hQCYqYwKJftRviybL5Aix47F/+pjrYegCOzMwBOLpnbWFeVONk8n mJys3nSGUtpeHVqsJzs6c+utHLpelPjJYbiYM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I am trying to build xen-3.4-testing (19995:0e3b875fd5fb) on Ubuntu
11.10 64-bit. I am building with the following patch:

--- a/Config.mk Fri Sep 30 18:42:30 2011 -0400
+++ b/Config.mk Tue Oct 18 22:14:43 2011 -0700
@@ -99,7 +99,7 @@

 # -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
 # result of any casted expression causes a warning.
-CFLAGS += -Wno-unused-value
+CFLAGS += -Wno-unused-value -Wno-unused-but-set-variable

 $(call cc-option-add,HOSTCFLAGS,HOSTCC,-Wdeclaration-after-statement)
 $(call cc-option-add,CFLAGS,CC,-Wdeclaration-after-statement)

I am getting the following build error:

make[2]: Entering directory `/home/ap/dev/xen/xen-3.4-testing/tools'
make -C xcutils install
make[3]: Entering directory `/home/ap/dev/xen/xen-3.4-testing/tools/xcutils'
gcc  -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wno-unused-but-set-variable -Wdeclaration-after-statement
-D__XEN_TOOLS__ -MMD -MF .xc_restore.o.d  -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE  -Werror -I../../tools/libxc
-I../../tools/include -I../../tools/libxc -I../../tools/include
-I../../tools/xenstore -I../../tools/include -c -o xc_restore.o
xc_restore.c
gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wno-unused-but-set-variable -Wdeclaration-after-statement
-D__XEN_TOOLS__ -MMD -MF .xc_restore.d  -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE  -Werror -I../../tools/libxc
-I../../tools/include -I../../tools/libxc -I../../tools/include
-I../../tools/xenstore -I../../tools/include    xc_restore.o
-L../../tools/libxc -lxenctrl -L../../tools/libxc -lxenguest
-L../../tools/xenstore -lxenstore -o xc_restore
../../tools/libxc/libxenguest.so: undefined reference to `BZ2_bzDecompressInit'
../../tools/libxc/libxenguest.so: undefined reference to `BZ2_bzDecompressEnd'
../../tools/libxc/libxenguest.so: undefined reference to `lzma_end'
../../tools/libxc/libxenguest.so: undefined reference to `BZ2_bzDecompress'
../../tools/libxc/libxenguest.so: undefined reference to `lzma_alone_decoder'
../../tools/libxc/libxenguest.so: undefined reference to `lzma_code'
collect2: ld returned 1 exit status
make[3]: *** [xc_restore] Error 1
make[3]: Leaving directory `/home/ap/dev/xen/xen-3.4-testing/tools/xcutils'
make[2]: *** [subdir-install-xcutils] Error 2
make[2]: Leaving directory `/home/ap/dev/xen/xen-3.4-testing/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/ap/dev/xen/xen-3.4-testing/tools'
make: *** [install-tools] Error 2

I have tried installing the bz2 (libbz2-dev) and lzam (liblzma-dev)
dev packages but I still get the error. I have tried doing a clean and
make after the installing the dev packages to no avail. Any idea what
other library I need to install?

Thanks,
AP

GCC Info
--------------
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.6.1-9ubuntu3'
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin
--enable-objc-gc --disable-werror --with-arch-32=i686
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

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