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@lists.xensource.com http://lists.xensource.com/xen-devel
On Wed, 2011-10-19 at 06:19 +0100, AP wrote:> I am trying to build xen-3.4-testing (19995:0e3b875fd5fb) on Ubuntu > 11.10 64-bit. I am building with the following patch:3.4 is a bit old, why not use 4.1?> 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?Recent Ubuntu enabled --as-needed in the linker by default. If you want to stick with 3.4 you might need to add --no-as-needed somewhere appropriate, 22856:18807b89083d is the temporary fix which we used for 4.1. This issue is fixed properly in 4.2. Ian.> > 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@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Wed, Oct 19, 2011 at 1:47 AM, Ian Campbell <Ian.Campbell@citrix.com> wrote:> On Wed, 2011-10-19 at 06:19 +0100, AP wrote: >> I am trying to build xen-3.4-testing (19995:0e3b875fd5fb) on Ubuntu >> 11.10 64-bit. I am building with the following patch: > > 3.4 is a bit old, why not use 4.1?I am primarily using 4.1 but I still have a couple of servers running 3.4, so I want to ensure that I can still build that using Ubuntu 11.10.>> 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? > > Recent Ubuntu enabled --as-needed in the linker by default. If you want > to stick with 3.4 you might need to add --no-as-needed somewhere > appropriate, 22856:18807b89083d is the temporary fix which we used for > 4.1. This issue is fixed properly in 4.2.Thank you! 22856 did the trick. BTW, I also had to pull in a few more fixes to get everything to work. I am listing them here in case someone else runs in to the same issue. The only outstanding problem is that bringing up a DomU with SDL leaves you with a flickering SDL window. Using VNC is a workaround for that. http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/2e78e0ce1f31 http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/e6b5b2cb8146 http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/9c2fdcff3704 diff -r 0e3b875fd5fb -r 3a1e98c88825 tools/blktap/lib/blktaplib.h --- a/tools/blktap/lib/blktaplib.h Fri Sep 30 18:42:30 2011 -0400 +++ b/tools/blktap/lib/blktaplib.h Wed Oct 19 11:07:22 2011 -0700 @@ -196,6 +196,7 @@ } msg_pid_t; #define READ 0 +#undef WRITE #define WRITE 1 http://www.gossamer-threads.com/lists/xen/devel/179690 diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/arch/x86/mm.c --- a/extras/mini-os/arch/x86/mm.c Sun Jul 25 22:22:43 2010 +0100 +++ b/extras/mini-os/arch/x86/mm.c Wed Oct 19 12:25:52 2011 -0700 @@ -281,7 +281,7 @@ /* * Mark portion of the address space read only. */ -extern void shared_info; +extern char shared_info[PAGE_SIZE]; static void set_readonly(void *text, void *etext) { unsigned long start_address diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/minios.mk --- a/extras/mini-os/minios.mk Sun Jul 25 22:22:43 2010 +0100 +++ b/extras/mini-os/minios.mk Wed Oct 19 12:25:52 2011 -0700 @@ -10,6 +10,7 @@ DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline) DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline +DEF_CFLAGS += -Wno-uninitialized DEF_CPPFLAGS += -D__XEN_INTERFACE_VERSION__=$(XEN_INTERFACE_VERSION) DEF_ASFLAGS += -D__ASSEMBLY__ diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/netfront.c --- a/extras/mini-os/netfront.c Sun Jul 25 22:22:43 2010 +0100 +++ b/extras/mini-os/netfront.c Wed Oct 19 12:25:52 2011 -0700 @@ -25,8 +25,8 @@ -#define NET_TX_RING_SIZE __RING_SIZE((struct netif_tx_sring *)0, PAGE_SIZE) -#define NET_RX_RING_SIZE __RING_SIZE((struct netif_rx_sring *)0, PAGE_SIZE) +#define NET_TX_RING_SIZE __CONST_RING_SIZE(netif_tx, PAGE_SIZE) +#define NET_RX_RING_SIZE __CONST_RING_SIZE(netif_rx, PAGE_SIZE) #define GRANT_INVALID_REF 0> Ian. > >> >> 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@lists.xensource.com >> http://lists.xensource.com/xen-devel > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
AP writes ("Re: [Xen-devel] xen 3.4-testing build error"):> I am primarily using 4.1 but I still have a couple of servers running > 3.4, so I want to ensure that I can still build that using Ubuntu > 11.10.Thanks for doing this research and reporting back.> On Wed, Oct 19, 2011 at 1:47 AM, Ian Campbell <Ian.Campbell@citrix.com> wrote: > > Recent Ubuntu enabled --as-needed in the linker by default. If you want > > to stick with 3.4 you might need to add --no-as-needed somewhere > > appropriate, 22856:18807b89083d is the temporary fix which we used for > > 4.1. This issue is fixed properly in 4.2. > > Thank you! 22856 did the trick. BTW, I also had to pull in a few more > fixes to get everything to work. I am listing them here in case > someone else runs in to the same issue. The only outstanding problem > is that bringing up a DomU with SDL leaves you with a flickering SDL > window. Using VNC is a workaround for that. > > http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/2e78e0ce1f31 > http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/e6b5b2cb8146 > http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/9c2fdcff3704I have CC''d Keith Coleman, maintainer of the 3.4 tree. Keith, do you think these might be appropriate for backporting ? (I haven''t checked myself ...) Ian.> diff -r 0e3b875fd5fb -r 3a1e98c88825 tools/blktap/lib/blktaplib.h > --- a/tools/blktap/lib/blktaplib.h Fri Sep 30 18:42:30 2011 -0400 > +++ b/tools/blktap/lib/blktaplib.h Wed Oct 19 11:07:22 2011 -0700 > @@ -196,6 +196,7 @@ > } msg_pid_t; > > #define READ 0 > +#undef WRITE > #define WRITE 1 > > http://www.gossamer-threads.com/lists/xen/devel/179690 > diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/arch/x86/mm.c > --- a/extras/mini-os/arch/x86/mm.c Sun Jul 25 22:22:43 2010 +0100 > +++ b/extras/mini-os/arch/x86/mm.c Wed Oct 19 12:25:52 2011 -0700 > @@ -281,7 +281,7 @@ > /* > * Mark portion of the address space read only. > */ > -extern void shared_info; > +extern char shared_info[PAGE_SIZE]; > static void set_readonly(void *text, void *etext) > { > unsigned long start_address > diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/minios.mk > --- a/extras/mini-os/minios.mk Sun Jul 25 22:22:43 2010 +0100 > +++ b/extras/mini-os/minios.mk Wed Oct 19 12:25:52 2011 -0700 > @@ -10,6 +10,7 @@ > DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) > DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline) > DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline > +DEF_CFLAGS += -Wno-uninitialized > DEF_CPPFLAGS += -D__XEN_INTERFACE_VERSION__=$(XEN_INTERFACE_VERSION) > > DEF_ASFLAGS += -D__ASSEMBLY__ > diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/netfront.c > --- a/extras/mini-os/netfront.c Sun Jul 25 22:22:43 2010 +0100 > +++ b/extras/mini-os/netfront.c Wed Oct 19 12:25:52 2011 -0700 > @@ -25,8 +25,8 @@ > > > > -#define NET_TX_RING_SIZE __RING_SIZE((struct netif_tx_sring *)0, PAGE_SIZE) > -#define NET_RX_RING_SIZE __RING_SIZE((struct netif_rx_sring *)0, PAGE_SIZE) > +#define NET_TX_RING_SIZE __CONST_RING_SIZE(netif_tx, PAGE_SIZE) > +#define NET_RX_RING_SIZE __CONST_RING_SIZE(netif_rx, PAGE_SIZE) > #define GRANT_INVALID_REF 0 > > > Ian. > > > >> > >> 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@lists.xensource.com > >> http://lists.xensource.com/xen-devel > > > > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 25/10/2011 17:48, "Ian Jackson" <Ian.Jackson@eu.citrix.com> wrote:> AP writes ("Re: [Xen-devel] xen 3.4-testing build error"): >> I am primarily using 4.1 but I still have a couple of servers running >> 3.4, so I want to ensure that I can still build that using Ubuntu >> 11.10. > > Thanks for doing this research and reporting back. > >> On Wed, Oct 19, 2011 at 1:47 AM, Ian Campbell <Ian.Campbell@citrix.com> >> wrote: >>> Recent Ubuntu enabled --as-needed in the linker by default. If you want >>> to stick with 3.4 you might need to add --no-as-needed somewhere >>> appropriate, 22856:18807b89083d is the temporary fix which we used for >>> 4.1. This issue is fixed properly in 4.2. >> >> Thank you! 22856 did the trick. BTW, I also had to pull in a few more >> fixes to get everything to work. I am listing them here in case >> someone else runs in to the same issue. The only outstanding problem >> is that bringing up a DomU with SDL leaves you with a flickering SDL >> window. Using VNC is a workaround for that. >> >> http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/2e78e0ce1f31 >> http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/e6b5b2cb8146 >> http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/9c2fdcff3704 > > I have CC''d Keith Coleman, maintainer of the 3.4 tree. Keith, do you > think these might be appropriate for backporting ? (I haven''t checked > myself ...)These are all straightforward bug fixes. The first of them could skip the whitespace-modifying sub-patch. -- Keir> Ian. > >> diff -r 0e3b875fd5fb -r 3a1e98c88825 tools/blktap/lib/blktaplib.h >> --- a/tools/blktap/lib/blktaplib.h Fri Sep 30 18:42:30 2011 -0400 >> +++ b/tools/blktap/lib/blktaplib.h Wed Oct 19 11:07:22 2011 -0700 >> @@ -196,6 +196,7 @@ >> } msg_pid_t; >> >> #define READ 0 >> +#undef WRITE >> #define WRITE 1 >> >> http://www.gossamer-threads.com/lists/xen/devel/179690 >> diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/arch/x86/mm.c >> --- a/extras/mini-os/arch/x86/mm.c Sun Jul 25 22:22:43 2010 +0100 >> +++ b/extras/mini-os/arch/x86/mm.c Wed Oct 19 12:25:52 2011 -0700 >> @@ -281,7 +281,7 @@ >> /* >> * Mark portion of the address space read only. >> */ >> -extern void shared_info; >> +extern char shared_info[PAGE_SIZE]; >> static void set_readonly(void *text, void *etext) >> { >> unsigned long start_address >> diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/minios.mk >> --- a/extras/mini-os/minios.mk Sun Jul 25 22:22:43 2010 +0100 >> +++ b/extras/mini-os/minios.mk Wed Oct 19 12:25:52 2011 -0700 >> @@ -10,6 +10,7 @@ >> DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) >> DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline) >> DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline >> +DEF_CFLAGS += -Wno-uninitialized >> DEF_CPPFLAGS += -D__XEN_INTERFACE_VERSION__=$(XEN_INTERFACE_VERSION) >> >> DEF_ASFLAGS += -D__ASSEMBLY__ >> diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/netfront.c >> --- a/extras/mini-os/netfront.c Sun Jul 25 22:22:43 2010 +0100 >> +++ b/extras/mini-os/netfront.c Wed Oct 19 12:25:52 2011 -0700 >> @@ -25,8 +25,8 @@ >> >> >> >> -#define NET_TX_RING_SIZE __RING_SIZE((struct netif_tx_sring *)0, PAGE_SIZE) >> -#define NET_RX_RING_SIZE __RING_SIZE((struct netif_rx_sring *)0, PAGE_SIZE) >> +#define NET_TX_RING_SIZE __CONST_RING_SIZE(netif_tx, PAGE_SIZE) >> +#define NET_RX_RING_SIZE __CONST_RING_SIZE(netif_rx, PAGE_SIZE) >> #define GRANT_INVALID_REF 0 >> >>> Ian. >>> >>>> >>>> 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@lists.xensource.com >>>> http://lists.xensource.com/xen-devel >>> >>> >>> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Tue, Oct 25, 2011 at 2:26 PM, Keir Fraser <keir.xen@gmail.com> wrote:> On 25/10/2011 17:48, "Ian Jackson" <Ian.Jackson@eu.citrix.com> wrote: > >> AP writes ("Re: [Xen-devel] xen 3.4-testing build error"): >>> I am primarily using 4.1 but I still have a couple of servers running >>> 3.4, so I want to ensure that I can still build that using Ubuntu >>> 11.10. >> >> Thanks for doing this research and reporting back. >> >>> On Wed, Oct 19, 2011 at 1:47 AM, Ian Campbell <Ian.Campbell@citrix.com> >>> wrote: >>>> Recent Ubuntu enabled --as-needed in the linker by default. If you want >>>> to stick with 3.4 you might need to add --no-as-needed somewhere >>>> appropriate, 22856:18807b89083d is the temporary fix which we used for >>>> 4.1. This issue is fixed properly in 4.2. >>> >>> Thank you! 22856 did the trick. BTW, I also had to pull in a few more >>> fixes to get everything to work. I am listing them here in case >>> someone else runs in to the same issue. The only outstanding problem >>> is that bringing up a DomU with SDL leaves you with a flickering SDL >>> window. Using VNC is a workaround for that. >>> >>> http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/2e78e0ce1f31 >>> http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/e6b5b2cb8146 >>> http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/9c2fdcff3704 >> >> I have CC''d Keith Coleman, maintainer of the 3.4 tree. Keith, do you >> think these might be appropriate for backporting ? (I haven''t checked >> myself ...) > > These are all straightforward bug fixes. The first of them could skip the > whitespace-modifying sub-patch. >These will be included in the next 3.4.4 rc. -- Keith Coleman _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Tue, Oct 25, 2011 at 11:26 AM, Keir Fraser <keir.xen@gmail.com> wrote:> On 25/10/2011 17:48, "Ian Jackson" <Ian.Jackson@eu.citrix.com> wrote: > >> AP writes ("Re: [Xen-devel] xen 3.4-testing build error"): >>> I am primarily using 4.1 but I still have a couple of servers running >>> 3.4, so I want to ensure that I can still build that using Ubuntu >>> 11.10. >> >> Thanks for doing this research and reporting back. >> >>> On Wed, Oct 19, 2011 at 1:47 AM, Ian Campbell <Ian.Campbell@citrix.com> >>> wrote: >>>> Recent Ubuntu enabled --as-needed in the linker by default. If you want >>>> to stick with 3.4 you might need to add --no-as-needed somewhere >>>> appropriate, 22856:18807b89083d is the temporary fix which we used for >>>> 4.1. This issue is fixed properly in 4.2. >>> >>> Thank you! 22856 did the trick. BTW, I also had to pull in a few more >>> fixes to get everything to work. I am listing them here in case >>> someone else runs in to the same issue. The only outstanding problem >>> is that bringing up a DomU with SDL leaves you with a flickering SDL >>> window. Using VNC is a workaround for that. >>> >>> http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/2e78e0ce1f31 >>> http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/e6b5b2cb8146 >>> http://xenbits.xensource.com/hg/xen-4.0-testing.hg/rev/9c2fdcff3704This should be added to the list with some hand massaging http://xenbits.xensource.com/hg/xen-4.1-testing.hg/rev/0dbad563a659 instead of the hack that I did diff -r 0e3b875fd5fb -r 3a1e98c88825 tools/blktap/lib/blktaplib.h --- a/tools/blktap/lib/blktaplib.h Fri Sep 30 18:42:30 2011 -0400 +++ b/tools/blktap/lib/blktaplib.h Wed Oct 19 11:07:22 2011 -0700 @@ -196,6 +196,7 @@ } msg_pid_t; #define READ 0 +#undef WRITE #define WRITE 1>> I have CC''d Keith Coleman, maintainer of the 3.4 tree. Keith, do you >> think these might be appropriate for backporting ? (I haven''t checked >> myself ...) > > These are all straightforward bug fixes. The first of them could skip the > whitespace-modifying sub-patch. > -- Keir > >> Ian. >> >>> diff -r 0e3b875fd5fb -r 3a1e98c88825 tools/blktap/lib/blktaplib.h >>> --- a/tools/blktap/lib/blktaplib.h Fri Sep 30 18:42:30 2011 -0400 >>> +++ b/tools/blktap/lib/blktaplib.h Wed Oct 19 11:07:22 2011 -0700 >>> @@ -196,6 +196,7 @@ >>> } msg_pid_t; >>> >>> #define READ 0 >>> +#undef WRITE >>> #define WRITE 1 >>> >>> http://www.gossamer-threads.com/lists/xen/devel/179690 >>> diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/arch/x86/mm.c >>> --- a/extras/mini-os/arch/x86/mm.c Sun Jul 25 22:22:43 2010 +0100 >>> +++ b/extras/mini-os/arch/x86/mm.c Wed Oct 19 12:25:52 2011 -0700 >>> @@ -281,7 +281,7 @@ >>> /* >>> * Mark portion of the address space read only. >>> */ >>> -extern void shared_info; >>> +extern char shared_info[PAGE_SIZE]; >>> static void set_readonly(void *text, void *etext) >>> { >>> unsigned long start_address >>> diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/minios.mk >>> --- a/extras/mini-os/minios.mk Sun Jul 25 22:22:43 2010 +0100 >>> +++ b/extras/mini-os/minios.mk Wed Oct 19 12:25:52 2011 -0700 >>> @@ -10,6 +10,7 @@ >>> DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) >>> DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline) >>> DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline >>> +DEF_CFLAGS += -Wno-uninitialized >>> DEF_CPPFLAGS += -D__XEN_INTERFACE_VERSION__=$(XEN_INTERFACE_VERSION) >>> >>> DEF_ASFLAGS += -D__ASSEMBLY__ >>> diff -r 917e11d767ef -r 0708fba177d8 extras/mini-os/netfront.c >>> --- a/extras/mini-os/netfront.c Sun Jul 25 22:22:43 2010 +0100 >>> +++ b/extras/mini-os/netfront.c Wed Oct 19 12:25:52 2011 -0700 >>> @@ -25,8 +25,8 @@ >>> >>> >>> >>> -#define NET_TX_RING_SIZE __RING_SIZE((struct netif_tx_sring *)0, PAGE_SIZE) >>> -#define NET_RX_RING_SIZE __RING_SIZE((struct netif_rx_sring *)0, PAGE_SIZE) >>> +#define NET_TX_RING_SIZE __CONST_RING_SIZE(netif_tx, PAGE_SIZE) >>> +#define NET_RX_RING_SIZE __CONST_RING_SIZE(netif_rx, PAGE_SIZE) >>> #define GRANT_INVALID_REF 0 >>> >>>> Ian. >>>> >>>>> >>>>> 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@lists.xensource.com >>>>> http://lists.xensource.com/xen-devel >>>> >>>> >>>> >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xensource.com >>> http://lists.xensource.com/xen-devel >>> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel