General Build Fixes
cover General Build Fixes
This patch series is a list of build issues that appeared when buildling Xen 4.8.0 in buildroot. Hopefully some of them can be accepted upstream to help others who are trying to build Xen in the future.
Alistair Francis (6):
Remove hardcoded strict -Werror checking tools/libxl: Remove hardcoded strict -Werror checking
tools: Update sys/poll.h to poll.h tools/blktap2: Update sys/signal.h to signal.h tools/blktap2/vhd: Remove unused struct stat stats tools/blktap2: Fix missing header file
Yann E. MORIN (1):
xen/Rules.mk: fix build with CFLAGS from environment
Config.mk | 2 +- tools/blktap2/drivers/tapdisk-server.c | 2 +- tools/blktap2/include/atomicio.h | 2 ++ tools/blktap2/vhd/lib/libvhd-journal.c | 1 - tools/libxl/Makefile | 2 +- tools/libxl/libxl_internal.h | 2 +- tools/tests/xen-access/xen-access.c | 2 +- tools/xenstat/libxenstat/src/xenstat_qmp.c | 2 +- tools/xentrace/xentrace.c | 2 +- xen/Rules.mk | 2 +- 10 files changed, 10 insertions(+), 9 deletions(-)
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 1/7 Remove hardcoded strict -Werror checking
--- Config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Config.mk +1 -1
@@ -34,7 +34,7 @@ CONFIG_$(XEN_OS) := y SHELL ?= /bin/sh # Tools to run on system hosting the build -HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer +HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer HOSTCFLAGS += -fno-strict-aliasing DISTDIR ?= $(XEN_ROOT)/dist
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH 1/7] Remove hardcoded strict -Werror checking
Quoted 1 line · Alistair Francis
Signed-off-by Alistair Francis <[email protected]>
Why?
Thanks!
Quoted 25 lines
--- Config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Config.mk +1
-1@@ -34,7 +34,7 @@ CONFIG_$(XEN_OS) := y SHELL ?= /bin/sh # Tools to run on system hosting the build -HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer +HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer HOSTCFLAGS += -fno-strict-aliasing DISTDIR ?= $(XEN_ROOT)/distSignature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 1/7] Remove hardcoded strict -Werror checking
Quoted 5 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
Signed-off-by Alistair Francis <[email protected]>Why?
Hey Konrad,
The problem that I have is that we build Xen releases in buildroot. As things change (GCC version usually) new warnings are generated for issues that previously never caused any problems. Instead of constantly fixing these small warnings it is easier to disable Werror.
I understand that for development this isn't what you want. I just thought it was worth at least sending this up.
Maybe a way to disable Werror when configuring would be the best solution?
Thanks,
Alistair
Quoted 23 lines
Thanks!
Quoted 21 lines
--- Config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Config.mk +1
-2@@ -34,7 +34,7 @@ CONFIG_$(XEN_OS) := y SHELL ?= /bin/sh # Tools to run on system hosting the build -HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer +HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer HOSTCFLAGS += -fno-strict-aliasing DISTDIR ?= $(XEN_ROOT)/dist --2.7.4
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 1/7] Remove hardcoded strict -Werror checking
In reply to Konrad Rzeszutek WilkQuoted 5 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
Signed-off-by Alistair Francis <[email protected]>Why?
*adjusts his distro maintainer hat* It's considered really bad form for upstreams to push -Werror in their projects. However I know there's upstream interest to keep it. The compromise would probably be to get my rear in gear and get a wider range of distros testing with Travis CI / GitLab CI.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 1/7] Remove hardcoded strict -Werror checking
Quoted 5 lines · Doug Goldstein
Quoted 4 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
Signed-off-by Alistair Francis <[email protected]>
Quoted 7 lines
Quoted 1 line
Why?
*adjusts his distro maintainer hat* It's considered really bad form for upstreams to push -Werror in their projects. However I know there's upstream interest to keep it. The compromise would probably be to get my rear in gear and get a wider range of distros testing with Travis CI / GitLab CI.
So.. why not do something like this:
config/StdGNU.mk +2 -0
@@ -39,3 +39,5 @@ ifeq ($(lto),y) CFLAGS += -flto LDFLAGS-$(clang) += -plugin LLVMgold.so endif + +CFLAGS += $(EXTRA_CFLAGS)
And have the BuildRoot script do something like:
EXTRA_CFLAGS=$(CFLAGS)
unset CFLAGS
make -C xen
?
Quoted 4 lines
Signature · 2 lines
-- Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 1/7] Remove hardcoded strict -Werror checking
Quoted 31 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Doug Goldstein
Quoted 4 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
Signed-off-by Alistair Francis <[email protected]>Quoted 7 lines
Quoted 1 line
Why?
*adjusts his distro maintainer hat* It's considered really bad form for upstreams to push -Werror in their projects. However I know there's upstream interest to keep it. The compromise would probably be to get my rear in gear and get a wider range of distros testing with Travis CI / GitLab CI.
So.. why not do something like this:
config/StdGNU.mk +2
-0@@ -39,3 +39,5 @@ ifeq ($(lto),y) CFLAGS += -flto LDFLAGS-$(clang) += -plugin LLVMgold.so endif + +CFLAGS += $(EXTRA_CFLAGS)And have the BuildRoot script do something like:
Quoted 7 lines
EXTRA_CFLAGS=$(CFLAGS)
unset CFLAGSmake -C xen
?
This was really to replace patch 3/7 right? Cause I think this would be an ok change. It'd certainly help me with Yocto where I have to pass in CFLAGS (need to pass in the sysroot of the target compiler).
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 1/7] Remove hardcoded strict -Werror checking
Quoted 35 lines · Doug Goldstein
Quoted 34 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Doug Goldstein
Quoted 4 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
Signed-off-by Alistair Francis <[email protected]>Quoted 7 lines
Quoted 1 line
Why?
*adjusts his distro maintainer hat* It's considered really bad form for upstreams to push -Werror in their projects. However I know there's upstream interest to keep it. The compromise would probably be to get my rear in gear and get a wider range of distros testing with Travis CI / GitLab CI.
So.. why not do something like this:
config/StdGNU.mk +2
-0@@ -39,3 +39,5 @@ ifeq ($(lto),y) CFLAGS += -flto LDFLAGS-$(clang) += -plugin LLVMgold.so endif + +CFLAGS += $(EXTRA_CFLAGS)And have the BuildRoot script do something like:
EXTRA_CFLAGS=$(CFLAGS)
unset CFLAGS
Quoted 8 lines
Quoted 4 lines
make -C xen
?
This was really to replace patch 3/7 right? Cause I think this would be an ok change. It'd certainly help me with Yocto where I have to pass in CFLAGS (need to pass in the sysroot of the target compiler).
Yes sorry.
Quoted 4 lines
Signature · 2 lines
-- Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 1/7] Remove hardcoded strict -Werror checking
Quoted 38 lines · Konrad Rzeszutek Wilk
Quoted 37 lines · Doug Goldstein
Quoted 36 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Doug Goldstein
Quoted 4 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
Signed-off-by Alistair Francis <[email protected]>Quoted 7 lines
Quoted 1 line
Why?
*adjusts his distro maintainer hat* It's considered really bad form for upstreams to push -Werror in their projects. However I know there's upstream interest to keep it. The compromise would probably be to get my rear in gear and get a wider range of distros testing with Travis CI / GitLab CI.
So.. why not do something like this:
config/StdGNU.mk +2
-0@@ -39,3 +39,5 @@ ifeq ($(lto),y) CFLAGS += -flto LDFLAGS-$(clang) += -plugin LLVMgold.so endif + +CFLAGS += $(EXTRA_CFLAGS)And have the BuildRoot script do something like:
EXTRA_CFLAGS=$(CFLAGS)
unset CFLAGSmake -C xen
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
?
This was really to replace patch 3/7 right? Cause I think this would be an ok change. It'd certainly help me with Yocto where I have to pass in CFLAGS (need to pass in the sysroot of the target compiler).
Yes sorry.
Yeah, this could work as well (for patch 3).
Should I re-spin with something like that?
Thanks,
Alistair
Quoted 7 lines
Quoted 4 lines
--
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 1/7] Remove hardcoded strict -Werror checking
In reply to Doug GoldsteinQuoted 5 lines · Doug Goldstein
Quoted 4 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
Signed-off-by Alistair Francis <[email protected]>
Quoted 7 lines
Quoted 1 line
Why?
*adjusts his distro maintainer hat* It's considered really bad form for upstreams to push -Werror in their projects. However I know there's upstream interest to keep it. The compromise would probably be to get my rear in gear and get a wider range of distros testing with Travis CI / GitLab CI.
I agree with both points. I understand why upstream wants it there, but it's a pain.
What about an option to override and remove Werror, so it can still be enabled by default?
Thanks,
Alistair
Quoted 4 lines
--
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 2/7 tools/libxl: Remove hardcoded strict -Werror checking
In reply to Alistair Francis--- tools/libxl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/Makefile +1 -1
@@ -11,7 +11,7 @@ MINOR = 0 XLUMAJOR = 4.9 XLUMINOR = 0 -CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \ +CFLAGS += -Wno-format-zero-length -Wmissing-declarations \ -Wno-declaration-after-statement -Wformat-nonliteral CFLAGS += -I. -fPIC
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH 2/7] tools/libxl: Remove hardcoded strict -Werror checking
Quoted 1 line · Alistair Francis
Signed-off-by Alistair Francis <[email protected]>
Why?
If this patch is checked in there is no cover letter description, just this singular patch - and it is quite unclear why it is being done this way.
Quoted 25 lines
--- tools/libxl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/libxl/Makefile +1
-1@@ -11,7 +11,7 @@ MINOR = 0 XLUMAJOR = 4.9 XLUMINOR = 0 -CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \ +CFLAGS += -Wno-format-zero-length -Wmissing-declarations \ -Wno-declaration-after-statement -Wformat-nonliteral CFLAGS += -I. -fPICSignature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 3/7 xen/Rules.mk: fix build with CFLAGS from environment
In reply to Alistair FrancisFrom: "Yann E. MORIN" <[email protected]>
When CFLAGS are passed from the environment, the first-level make invocation will append -D__OBJECT_FILE__ to it, then call a second make invocation, that will have those new CFLAGS in its environment, but will also append -D__OBJECT_FILE__ to those.
Then, the compiler fails because __OBEJECT_FILE__ is defined twice.
Just undefine it before defining it again, as a *workaround* to this issue.
--- xen/Rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/Rules.mk +1 -1
@@ -49,7 +49,7 @@ endif CFLAGS += -nostdinc -fno-builtin -fno-common CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith CFLAGS += -pipe -g -D__XEN__ -include $(BASEDIR)/include/xen/config.h -CFLAGS += '-D__OBJECT_FILE__="$@"' +CFLAGS += -U__OBJECT_FILE__ '-D__OBJECT_FILE__="$@"' ifneq ($(clang),y) # Clang doesn't understand this command line argument, and doesn't appear to
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH 3/7] xen/Rules.mk: fix build with CFLAGS from environment
Quoted 11 lines · Alistair Francis
From: "Yann E. MORIN" <[email protected]>
When CFLAGS are passed from the environment, the first-level make invocation will append -D__OBJECT_FILE__ to it, then call a second make invocation, that will have those new CFLAGS in its environment, but will also append -D__OBJECT_FILE__ to those.
Then, the compiler fails because
__OBEJECT_FILE__is defined twice.Just undefine it before defining it again, as a *workaround* to this issue.
Hm, workaround?
Well that is good, but what if we just fix it in the first place?
I recall hitting this with Fedora Core and the suggested fix was add in config/StdGNU.mk and 'EXTRA_CFLAGS' or such that would be utilized by CFLAGS.
The rpmbuild would then use EXTRA_CFLAGS or such to set the extra flags?
Quoted 27 lines
Signed-off-by "Yann E. MORIN" <[email protected]>--- xen/Rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/Rules.mk +1
-1@@ -49,7 +49,7 @@ endif CFLAGS += -nostdinc -fno-builtin -fno-common CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith CFLAGS += -pipe -g -D__XEN__ -include $(BASEDIR)/include/xen/config.h -CFLAGS += '-D__OBJECT_FILE__="$@"' +CFLAGS += -U__OBJECT_FILE__ '-D__OBJECT_FILE__="$@"' ifneq ($(clang),y) # Clang doesn't understand this command line argument, and doesn't appear toSignature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 3/7] xen/Rules.mk: fix build with CFLAGS from environment
In reply to Alistair FrancisQuoted 4 lines
Quoted 1 line
Quoted 1 line · On 16.12.16 at 23:56, <[email protected]> wrote:
From: "Yann E. MORIN" <[email protected]>
When CFLAGS are passed from the environment,
But that's what shouldn't be done.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 4/7 tools: Update sys/poll.h to poll.h
In reply to Alistair FrancisTo avoid this build error with newer build systems:
error: #warning redirecting incorrect #include <sys/poll.h> to
<poll.h> [-Werror=cpp]
Rename sys/poll.h to poll.h
--- tools/libxl/libxl_internal.h | 2 +- tools/tests/xen-access/xen-access.c | 2 +- tools/xenstat/libxenstat/src/xenstat_qmp.c | 2 +- tools/xentrace/xentrace.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
tools/libxl/libxl_internal.h +1 -1
@@ -38,7 +38,7 @@#include <ctype.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/select.h> #include <sys/stat.h> #include <sys/time.h>
tools/tests/xen-access/xen-access.c +1 -1
@@ -36,7 +36,7 @@#include <signal.h> #include <unistd.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <xenctrl.h> #include <xenevtchn.h>
tools/xenstat/libxenstat/src/xenstat_qmp.c +1 -1
@@ -14,7 +14,7 @@#include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/un.h> #include <stdlib.h> #include <string.h>
tools/xentrace/xentrace.c +1 -1
@@ -24,7 +24,7 @@#include <getopt.h> #include <assert.h> #include <ctype.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/statvfs.h> #include <xen/xen.h>
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH 4/7] tools: Update sys/poll.h to poll.h
Quoted 1 line · Alistair Francis
To avoid this build error with newer build systems:
And what is newer? GCC 5? 6?
Thanks.
Quoted 73 lines
error: #warning redirecting incorrect #include <
sys/poll.h> to<poll.h> [-Werror=cpp]Rename
sys/poll.htopoll.hSigned-off-by Alistair Francis <[email protected]>--- tools/libxl/libxl_internal.h | 2 +- tools/tests/xen-access/xen-access.c | 2 +- tools/xenstat/libxenstat/src/xenstat_qmp.c | 2 +- tools/xentrace/xentrace.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)tools/libxl/libxl_internal.h +1
-1@@ -38,7 +38,7 @@#include <ctype.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/select.h> #include <sys/stat.h> #include <sys/time.h> tools/tests/xen-access/xen-access.c +1
-1@@ -36,7 +36,7 @@#include <signal.h> #include <unistd.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <xenctrl.h> #include <xenevtchn.h> tools/xenstat/libxenstat/src/xenstat_qmp.c +1
-1@@ -14,7 +14,7 @@#include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/un.h> #include <stdlib.h> #include <string.h> tools/xentrace/xentrace.c +1
-1@@ -24,7 +24,7 @@#include <getopt.h> #include <assert.h> #include <ctype.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/statvfs.h> #include <xen/xen.h> Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 4/7] tools: Update sys/poll.h to poll.h
Quoted 4 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
To avoid this build error with newer build systems:
And what is newer? GCC 5? 6?
In this case it is GCC 5.
Thanks,
Alistair
Quoted 71 lines
Thanks.
Quoted 69 lines
error: #warning redirecting incorrect #include <
sys/poll.h> to<poll.h> [-Werror=cpp]Rename
sys/poll.htopoll.hSigned-off-by Alistair Francis <[email protected]>--- tools/libxl/libxl_internal.h | 2 +- tools/tests/xen-access/xen-access.c | 2 +- tools/xenstat/libxenstat/src/xenstat_qmp.c | 2 +- tools/xentrace/xentrace.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)tools/libxl/libxl_internal.h +1
-1@@ -38,7 +38,7 @@#include <ctype.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/select.h> #include <sys/stat.h> #include <sys/time.h> tools/tests/xen-access/xen-access.c +1
-1@@ -36,7 +36,7 @@#include <signal.h> #include <unistd.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <xenctrl.h> #include <xenevtchn.h> tools/xenstat/libxenstat/src/xenstat_qmp.c +1
-1@@ -14,7 +14,7 @@#include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/un.h> #include <stdlib.h> #include <string.h> tools/xentrace/xentrace.c +1
-2@@ -24,7 +24,7 @@#include <getopt.h> #include <assert.h> #include <ctype.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/statvfs.h> #include <xen/xen.h> --2.7.4
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 4/7] tools: Update sys/poll.h to poll.h
Quoted 9 lines · Alistair Francis
Quoted 4 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
To avoid this build error with newer build systems:
And what is newer? GCC 5? 6?
In this case it is GCC 5.
No. Its a libc thing. I wonder what libc you're using because glibc 2.24 still has it at sys/pool.h for me.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 4/7] tools: Update sys/poll.h to poll.h
Quoted 6 lines · Doug Goldstein
Quoted 5 lines · Alistair Francis
Quoted 3 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Alistair Francis
To avoid this build error with newer build systems:
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
And what is newer? GCC 5? 6?
In this case it is GCC 5.
No. Its a libc thing. I wonder what libc you're using because glibc 2.24 still has it at
sys/pool.hfor me.
Yeah, you are right. I don't know what I was thinking.
I'm using musl version 1.1.15 which prints a warning every time you call sys/poll.h.
Looking at the latest glibc master branch glibc supports both and doesn't have any warnings. This probably isn't the right thing to do then. I will just have to remove Werror instead.
Thanks,
Alistair
Quoted 10 lines
--
Doug Goldstein_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 5/7 tools/blktap2: Update sys/signal.h to signal.h
In reply to Alistair FrancisTo avoid this build error with newer build systems:
error: #warning redirecting incorrect #include <sys/signal.h> to
<signal.h> [-Werror=cpp]
Rename sys/signal.h to signal.h
--- tools/blktap2/drivers/tapdisk-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/blktap2/drivers/tapdisk-server.c +1 -1
@@ -30,7 +30,7 @@#include <unistd.h> #include <stdlib.h> #include <sys/ioctl.h> -#include <sys/signal.h> +#include <signal.h> #include "tapdisk-utils.h" #include "tapdisk-server.h"
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH 5/7] tools/blktap2: Update sys/signal.h to signal.h
Quoted 3 lines · Alistair Francis
To avoid this build error with newer build systems:
error: #warning redirecting incorrect #include <sys/signal.h> to
<signal.h> [-Werror=cpp]
And what is the 'newer build system' you speak off?
Thanks!
Quoted 29 lines
Rename
sys/signal.htosignal.hSigned-off-by Alistair Francis <[email protected]>--- tools/blktap2/drivers/tapdisk-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/blktap2/drivers/tapdisk-server.c +1
-1@@ -30,7 +30,7 @@#include <unistd.h> #include <stdlib.h> #include <sys/ioctl.h> -#include <sys/signal.h> +#include <signal.h> #include "tapdisk-utils.h" #include "tapdisk-server.h" Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 5/7] tools/blktap2: Update sys/signal.h to signal.h
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Alistair Francis
To avoid this build error with newer build systems:
error: #warning redirecting incorrect #include <sys/signal.h> to
<signal.h> [-Werror=cpp]And what is the 'newer build system' you speak off?
Sorry I should have specified more there.
It's GCC 5 that I am seeing the problem on.
Thanks,
Alistair
Quoted 27 lines
Thanks!
Quoted 25 lines
Rename
sys/signal.htosignal.hSigned-off-by Alistair Francis <[email protected]>--- tools/blktap2/drivers/tapdisk-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/blktap2/drivers/tapdisk-server.c +1
-2@@ -30,7 +30,7 @@#include <unistd.h> #include <stdlib.h> #include <sys/ioctl.h> -#include <sys/signal.h> +#include <signal.h> #include "tapdisk-utils.h" #include "tapdisk-server.h" --2.7.4
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 5/7] tools/blktap2: Update sys/signal.h to signal.h
Quoted 7 lines · Alistair Francis
Quoted 5 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Alistair Francis
To avoid this build error with newer build systems:
error: #warning redirecting incorrect #include <sys/signal.h> to
<signal.h> [-Werror=cpp]
Quoted 5 lines
Quoted 1 line
And what is the 'newer build system' you speak off?
Sorry I should have specified more there.
It's GCC 5 that I am seeing the problem on.
Same as the last patch. This is your libc.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 6/7 tools/blktap2/vhd: Remove unused struct stat stats
In reply to Alistair FrancisThe unsued variable 'struct stat stats' causes build errors in some situations. As it isn't used just remove it.
--- tools/blktap2/vhd/lib/libvhd-journal.c | 1 - 1 file changed, 1 deletion(-)
tools/blktap2/vhd/lib/libvhd-journal.c +0 -1
@@ -1260,7 +1260,6 @@ vhd_journal_create(vhd_journal_t *j, const char *file, const char *jfile)int i, err;size_t size;off_t off; -struct stat stats;memset (j,0 ,sizeof (vhd_journal_t)); j->jfd =-1 ;
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH 6/7] tools/blktap2/vhd: Remove unused struct stat stats
Quoted 2 lines · Alistair Francis
The unsued variable 'struct stat stats' causes build errors in some situations. As it isn't used just remove it.
I think there is an patch that will just rip the blktap2 source code out altogether..
But if that is not yet in, so
Quoted 2 lines
Signed-off-by Alistair Francis <[email protected]>
Quoted 24 lines
--- tools/blktap2/vhd/lib/libvhd-journal.c | 1 - 1 file changed, 1 deletion(-)tools/blktap2/vhd/lib/libvhd-journal.c +0
-1@@ -1260,7 +1260,6 @@ vhd_journal_create(vhd_journal_t *j, const char *file, const char *jfile)int i, err;size_t size;off_t off; -struct stat stats;memset (j,0 ,sizeof (vhd_journal_t)); j->jfd =-1 ;Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 7/7 tools/blktap2: Fix missing header file
In reply to Alistair FrancisTo avoid build errors relating to missing delcarations of ssize_t add the appripriote header file to atomic.h.
--- tools/blktap2/include/atomicio.h | 2 ++ 1 file changed, 2 insertions(+)
tools/blktap2/include/atomicio.h +2 -0
@@ -25,6 +25,8 @@* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <sys/types.h> +/* * Ensure all of data on socket comes through. f==read || f==vwrite */
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel