From: Leonardo Taccari <iamleot@gmail.com>
To: xen-devel@lists.xensource.com
Subject: [BUG] stable-4.4: xen/tools/blktap2/drivers/block-qcow.c build errors
Date: Mon, 30 Jun 2014 18:59:42 +0200 [thread overview]
Message-ID: <53b196df.e351b40a.1e45.0ecb@mx.google.com> (raw)
Hello to the entire Xen community,
trying to build Xen ARM on Debian GNU/Linux armhf testing gives the
following errors (doing a "./configure && make dist-tools"):
[...]
gcc -O1 -fno-omit-frame-pointer -marm -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -
Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -D__XEN_TOOLS_
_ -MMD -MF .block-qcow.o.d -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-opti
mize-sibling-calls -Werror -g -Wno-unused -fno-strict-aliasing -I../include -I../drivers -I/root/xen
/tools/blktap2/drivers/../../../tools/libxc -I/root/xen/tools/blktap2/drivers/../../../tools/include
-D_GNU_SOURCE -DUSE_NFS_LOCKS -c -o block-qcow.o block-qcow.c
block-qcow.c: In function 'get_cluster_offset':
block-qcow.c:431:3: error: 'tmp_ptr' may be used uninitialized in this function [-Werror=maybe-uninit
ialized]
memcpy(tmp_ptr, l1_ptr, 4096);
^
block-qcow.c:606:7: error: 'tmp_ptr2' may be used uninitialized in this function [-Werror=maybe-unini
tialized]
if (write(s->fd, tmp_ptr2, 4096) != 4096) {
^
cc1: all warnings being treated as errors
/root/xen/tools/blktap2/drivers/../../../tools/Rules.mk:89: recipe for target 'block-qcow.o' failed
make[5]: *** [block-qcow.o] Error 1
make[5]: Leaving directory '/root/xen/tools/blktap2/drivers'
/root/xen/tools/blktap2/../../tools/Rules.mk:105: recipe for target 'subdir-install-drivers' failed
make[4]: *** [subdir-install-drivers] Error 2
make[4]: Leaving directory '/root/xen/tools/blktap2'
/root/xen/tools/blktap2/../../tools/Rules.mk:100: recipe for target 'subdirs-install' failed
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory '/root/xen/tools/blktap2'
/root/xen/tools/../tools/Rules.mk:105: recipe for target 'subdir-install-blktap2' failed
make[2]: *** [subdir-install-blktap2] Error 2
make[2]: Leaving directory '/root/xen/tools'
/root/xen/tools/../tools/Rules.mk:100: recipe for target 'subdirs-install' failed
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory '/root/xen/tools'
Makefile:96: recipe for target 'install-tools' failed
make: *** [install-tools] Error 2
[...]
Unfortunately I'm not an expert C programmer but after reading
posix_memalign(3) it seems that the compiler warning is right.
Removing -Werror on the affected file fix this issue but it's just a
workaround.
For more information about the compiler:
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.0-7' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/ja
va-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.0 (Debian 4.9.0-7)
If you need more information about my environment don't hesitate to
contact me!
I've succesfully built the stable-4.4 branch about one month ago and
succesfully run it on a cubieboard2.
Thanks for your consideration,
Ciao,
L.
next reply other threads:[~2014-06-30 16:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 16:59 Leonardo Taccari [this message]
2014-07-02 9:02 ` [BUG] stable-4.4: xen/tools/blktap2/drivers/block-qcow.c build errors Ian Campbell
2014-07-02 11:49 ` Ian Jackson
2014-07-02 14:19 ` Leonardo Taccari
[not found] <20140630165941.GA1415@:)>
2014-06-30 17:37 ` Leonardo Taccari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53b196df.e351b40a.1e45.0ecb@mx.google.com \
--to=iamleot@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.