Skip to contentSkip to conversation

kvmtool: Werror compile time error fixed.

PATCH In review Cevat Bostancioglu 2 participants 4 messages Jun 14, 2019 – Jun 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvmtool: Werror compile time error fixed.

---
 ...-EXTRA_CFLAGS-variable-and-disable-werror.patch | 26 +++++++++++++++++++
 .../0002-kvmtool-add-EXTRA_CFLAGS-variable.patch   | 29 ----------------------
 recipes-extended/kvmtool/kvmtool.bb                |  2 +-
 3 files changed, 27 insertions(+), 30 deletions(-)
 create mode 100644 recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch
 delete mode 100644 recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch new file +26 -0
new file mode 100644
index 0000000..d910fae
@@ -0,0 +1,26 @@
+From 8e291af191339471c20292784ebb6de6122f4fc4 Mon Sep 17 00:00:00 2001
+From: Cevat Bostancioglu <[email protected]>
+Date: Fri, 14 Jun 2019 18:47:25 +0300
+Subject: [PATCH] kvmtool: add CFLAGS Variable and disable Werror
+
+to avoid CFLAGS and warnings via command argument
+---
+ Makefile | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Makefile b/Makefile
+index 030ff4e..e0a8b23 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,6 +2,9 @@
+ # Define WERROR=0 to disable -Werror.
+ #
+ 
++WERROR=0
++CFLAGS += $(EXTRA_CFLAGS)
++
+ ifeq ($(strip $(V)),)
+ 	E = @echo
+ 	Q = @
+-- 
+2.7.4
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch deleted +0 -29
deleted file mode 100644
index 262531c..0000000
@@ -1,29 +0,0 @@
-From 977a4d41012d1814f5a5330cacc2e4944de387cc Mon Sep 17 00:00:00 2001
-From: Dariusz Pelowski <[email protected]>
-Date: Sun, 5 Nov 2017 12:39:21 +0100
-Subject: [PATCH 2/2] kvmtool: add EXTRA_CFLAGS variable
-
-to avoid CFLAGS overriding introduce new EXTRA_CFLAGS variable
-for setting via command argument
-
-Signed-off-by: Dariusz Pelowski <[email protected]>
----
- Makefile | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/Makefile b/Makefile
-index 64a0a16..bca1b26 100644
---- a/Makefile
-+++ b/Makefile
-@@ -2,6 +2,8 @@
- # Define WERROR=0 to disable -Werror.
- #
- 
-+CFLAGS += $(EXTRA_CFLAGS)
-+
- ifeq ($(strip $(V)),)
- 	E = @echo
- 	Q = @
--- 
-2.15.0
-
recipes-extended/kvmtool/kvmtool.bb +1 -1
index cb09c66..acecb08 100644
@@ -13,7 +13,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git \
            file://external-crosscompiler.patch \
            file://0001-Avoid-pointers-for-address-of-packed-members.patch \
            file://0001-kvmtool-9p-fixed-compilation-error.patch \
-           file://0002-kvmtool-add-EXTRA_CFLAGS-variable.patch \
+           file://0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch \
            "
 
 SRCREV = "0e1882a49f81cb15d328ef83a78849c0ea26eecc"
Signature · 1 line
2.7.4
#1 lore raw

Thanks for the fix. This non-attachment version is easier to review.

We need a few tweaks and this should be ready to go.

In the long log here, can you capture the compile error and associated details (i.e.
architecture, etc). And then why this error has started now (was it gcc9, something else ?)
.. plus how the fix solves the problem.

You can then duplicate that log log into the patch itself.

Quoted 9 lines · Cevat Bostancioglu
---
 ...-EXTRA_CFLAGS-variable-and-disable-werror.patch | 26 +++++++++++++++++++
 .../0002-kvmtool-add-EXTRA_CFLAGS-variable.patch   | 29 ----------------------
 recipes-extended/kvmtool/kvmtool.bb                |  2 +-
 3 files changed, 27 insertions(+), 30 deletions(-)
 create mode 100644 recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch
 delete mode 100644 recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch

We should just make this an additional patch, and not modify the existing one. That way we are
keeping some of the history and bisectability in the changes.

recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch line 6

Quoted 13 lines
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch new file +6 -0
new file mode 100644
index 0000000..d910fae
@@ -0,0 +1,26 @@
+From 8e291af191339471c20292784ebb6de6122f4fc4 Mon Sep 17 00:00:00 2001
+From: Cevat Bostancioglu <[email protected]>
+Date: Fri, 14 Jun 2019 18:47:25 +0300
+Subject: [PATCH] kvmtool: add CFLAGS Variable and disable Werror
+
+to avoid CFLAGS and warnings via command argument

You don't have a Signed-off-by: in the patch itself.

.. and finally, is this a good opportunity to update to the HEAD of the repo and pickup other fixes/features ?

Bruce

Quoted 71 lines
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch new file +20 -0
+---
+ Makefile | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Makefile b/Makefile
+index 030ff4e..e0a8b23 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,6 +2,9 @@
+ # Define WERROR=0 to disable -Werror.
+ #
+
++WERROR=0
++CFLAGS += $(EXTRA_CFLAGS)
++
+ ifeq ($(strip $(V)),)
+       E = @echo
+       Q = @
+--
+2.7.4
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch deleted +0 -29
deleted file mode 100644
index 262531c..0000000
@@ -1,29 +0,0 @@
-From 977a4d41012d1814f5a5330cacc2e4944de387cc Mon Sep 17 00:00:00 2001
-From: Dariusz Pelowski <[email protected]>
-Date: Sun, 5 Nov 2017 12:39:21 +0100
-Subject: [PATCH 2/2] kvmtool: add EXTRA_CFLAGS variable
-
-to avoid CFLAGS overriding introduce new EXTRA_CFLAGS variable
-for setting via command argument
-
-Signed-off-by: Dariusz Pelowski <[email protected]>
----
- Makefile | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/Makefile b/Makefile
-index 64a0a16..bca1b26 100644
---- a/Makefile
-+++ b/Makefile
-@@ -2,6 +2,8 @@
- # Define WERROR=0 to disable -Werror.
- #
-
-+CFLAGS += $(EXTRA_CFLAGS)
-+
- ifeq ($(strip $(V)),)
-       E = @echo
-       Q = @
---
-2.15.0
-
recipes-extended/kvmtool/kvmtool.bb +1 -2
index cb09c66..acecb08 100644
@@ -13,7 +13,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git \
            file://external-crosscompiler.patch \
            file://0001-Avoid-pointers-for-address-of-packed-members.patch \
            file://0001-kvmtool-9p-fixed-compilation-error.patch \
-           file://0002-kvmtool-add-EXTRA_CFLAGS-variable.patch \
+           file://0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch \
            "
 
 SRCREV = "0e1882a49f81cb15d328ef83a78849c0ea26eecc"
--

2.7.4

Quoted 5 lines

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

#2 lore raw

Hello, thanks for the fast reply, I am a newbie for patches/formats etc and I would like to learn the convention anyway.

i created meta-virtualization-ci project on github and I don't know this meta targets & setups e2e.
i am using for qemuarm target now. but if we can create a list of targets & setups I would like to create e2e ci setup at my home.
i also have x86_32/64 and many modern arm boards.

I sent another email with descriptions, I am not sure how to reply to this email with git email.

https://github.com/cevatbostancioglu/meta-virtualization-ci

i think this feature is good for to HEAD,
i think if we can at least create build tests for all recipes in layer we don't have to worry about.

Bruce Ashfield <[email protected]>, 14 Haz 2019 Cum, 20:44 tarihinde şunu yazdı:

Quoted 155 lines

Thanks for the fix. This non-attachment version is easier to review.

We need a few tweaks and this should be ready to go.

* In the long log here, can you capture the compile error and associated details (i.e. architecture, etc). And then why this error has started now (was it gcc9, something else ?) .. plus how the fix solves the problem*. (i disabled the Werror and now i can compile kvmtool)

You can then duplicate that log log into the patch itself.

Quoted 4 lines · Cevat Bostancioglu
---
 ...-EXTRA_CFLAGS-variable-and-disable-werror.patch | 26

+++++++++++++++++++

Quoted 1 line
 .../0002-kvmtool-add-EXTRA_CFLAGS-variable.patch   | 29

----------------------

Quoted 3 lines
 recipes-extended/kvmtool/kvmtool.bb                |  2 +-
 3 files changed, 27 insertions(+), 30 deletions(-)
 create mode 100644

recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch

Quoted 1 line
 delete mode 100644

recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch

* We should just make this an additional patch, and not modify the existing one. That way we are keeping some of the history and bisectability in the changes.(i sent another email, done)*

Quoted 2 lines

diff --git

a/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch b/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch

Quoted 4 lines

new file mode 100644
index 0000000..d910fae
--- /dev/null
+++

b/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch

recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch line 6

Quoted 7 lines
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch new file +6 -0
@@ -0,0 +1,26 @@
+From 8e291af191339471c20292784ebb6de6122f4fc4 Mon Sep 17 00:00:00 2001
+From: Cevat Bostancioglu <[email protected]>
+Date: Fri, 14 Jun 2019 18:47:25 +0300
+Subject: [PATCH] kvmtool: add CFLAGS Variable and disable Werror
+
+to avoid CFLAGS and warnings via command argument

You don't have a Signed-off-by: in the patch itself.

* .. and finally, is this a good opportunity to update to the HEAD of the repo and pickup other fixes/features ? ( yes )*

Bruce

Quoted 20 lines
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch new file +20 -0
+---
+ Makefile | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Makefile b/Makefile
+index 030ff4e..e0a8b23 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,6 +2,9 @@
+ # Define WERROR=0 to disable -Werror.
+ #
+
++WERROR=0
++CFLAGS += $(EXTRA_CFLAGS)
++
+ ifeq ($(strip $(V)),)
+       E = @echo
+       Q = @
+--
+2.7.4
Quoted 1 line

diff --git

a/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch b/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch

Quoted 3 lines

deleted file mode 100644
index 262531c..0000000
---

a/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch

Review

Quoted 32 lines

+++ /dev/null

recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch deleted +0 -29
@@ -1,29 +0,0 @@
-From 977a4d41012d1814f5a5330cacc2e4944de387cc Mon Sep 17 00:00:00 2001
-From: Dariusz Pelowski <[email protected]>
-Date: Sun, 5 Nov 2017 12:39:21 +0100
-Subject: [PATCH 2/2] kvmtool: add EXTRA_CFLAGS variable
-
-to avoid CFLAGS overriding introduce new EXTRA_CFLAGS variable
-for setting via command argument
-
-Signed-off-by: Dariusz Pelowski <[email protected]>
----
- Makefile | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/Makefile b/Makefile
-index 64a0a16..bca1b26 100644
---- a/Makefile
-+++ b/Makefile
-@@ -2,6 +2,8 @@
- # Define WERROR=0 to disable -Werror.
- #
-
-+CFLAGS += $(EXTRA_CFLAGS)
-+
- ifeq ($(strip $(V)),)
-       E = @echo
-       Q = @
---
-2.15.0
-
(quoted diff) +0 -0

b/recipes-extended/kvmtool/kvmtool.bb

recipes-extended/kvmtool/kvmtool.bb SRC_URI = "git://

Quoted 4 lines

index cb09c66..acecb08 100644

recipes-extended/kvmtool/kvmtool.bb +0 -0
@@ -13,7 +13,7 @@ SRC_URI = "git://

git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git \

recipes-extended/kvmtool/kvmtool.bb SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git \ · line 18

Quoted 2 lines
recipes-extended/kvmtool/kvmtool.bb +0 -0
            file://external-crosscompiler.patch \
 

file://0001-Avoid-pointers-for-address-of-packed-members.patch \

recipes-extended/kvmtool/kvmtool.bb SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git \

Quoted 3 lines
recipes-extended/kvmtool/kvmtool.bb +1 -1
            file://0001-kvmtool-9p-fixed-compilation-error.patch \
-           file://0002-kvmtool-add-EXTRA_CFLAGS-variable.patch \
+

file://0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch \

Quoted 11 lines
recipes-extended/kvmtool/kvmtool.bb +0 -1
            "
 
 SRCREV = "0e1882a49f81cb15d328ef83a78849c0ea26eecc"
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

#3 lore raw
Quoted 8 lines · Cevat Bostancıoğlu

Hello, thanks for the fast reply, I am a newbie for patches/formats etc and I would like to learn the convention anyway.

i created meta-virtualization-ci project on github and I don't know this meta targets & setups e2e.
i am using for qemuarm target now. but if we can create a list of targets & setups I would like to create e2e ci setup at my home. i also have x86_32/64 and many modern arm boards.

I sent another email with descriptions, I am not sure how to reply to this email with git email.

A v2 in a new thread is fine. No need to reply to the old series.

Quoted 5 lines

https://github.com/cevatbostancioglu/meta-virtualization-ci

i think this feature is good for to HEAD,
i think if we can at least create build tests for all recipes in layer we don't have to worry about.

I do "all" builds before merging any changes, but for many of the recipes in meta-virt, a successful compile doesn't mean much. For core recipes, there are a series of system level tests that need to be run. Eventually, I'll get them into a better form with automation, but for now, I just run things as I merge changes.

Bruce

Quoted 137 lines

Bruce Ashfield <[email protected]>, 14 Haz 2019 Cum, 20:44 tarihinde şunu yazdı:

Quoted 135 lines

Thanks for the fix. This non-attachment version is easier to review.

We need a few tweaks and this should be ready to go.

In the long log here, can you capture the compile error and associated
details (i.e.
architecture, etc). And then why this error has started now (was it
gcc9, something else ?)
.. plus how the fix solves the problem. (i disabled the Werror and now i can compile kvmtool)

You can then duplicate that log log into the patch itself.

Quoted 9 lines · Cevat Bostancioglu
---
 ...-EXTRA_CFLAGS-variable-and-disable-werror.patch | 26 +++++++++++++++++++
 .../0002-kvmtool-add-EXTRA_CFLAGS-variable.patch   | 29 ----------------------
 recipes-extended/kvmtool/kvmtool.bb                |  2 +-
 3 files changed, 27 insertions(+), 30 deletions(-)
 create mode 100644 recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch
 delete mode 100644 recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch

We should just make this an additional patch, and not modify the
existing one. That way we are
keeping some of the history and bisectability in the changes.(i sent another email, done)

recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch line 6

Quoted 13 lines
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch new file +6 -0
new file mode 100644
index 0000000..d910fae
@@ -0,0 +1,26 @@
+From 8e291af191339471c20292784ebb6de6122f4fc4 Mon Sep 17 00:00:00 2001
+From: Cevat Bostancioglu <[email protected]>
+Date: Fri, 14 Jun 2019 18:47:25 +0300
+Subject: [PATCH] kvmtool: add CFLAGS Variable and disable Werror
+
+to avoid CFLAGS and warnings via command argument

You don't have a Signed-off-by: in the patch itself.

.. and finally, is this a good opportunity to update to the HEAD of the repo and pickup other fixes/features ? ( yes )

Bruce

Quoted 71 lines
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch new file +20 -0
+---
+ Makefile | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Makefile b/Makefile
+index 030ff4e..e0a8b23 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,6 +2,9 @@
+ # Define WERROR=0 to disable -Werror.
+ #
+
++WERROR=0
++CFLAGS += $(EXTRA_CFLAGS)
++
+ ifeq ($(strip $(V)),)
+       E = @echo
+       Q = @
+--
+2.7.4
recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch deleted +0 -29
deleted file mode 100644
index 262531c..0000000
@@ -1,29 +0,0 @@
-From 977a4d41012d1814f5a5330cacc2e4944de387cc Mon Sep 17 00:00:00 2001
-From: Dariusz Pelowski <[email protected]>
-Date: Sun, 5 Nov 2017 12:39:21 +0100
-Subject: [PATCH 2/2] kvmtool: add EXTRA_CFLAGS variable
-
-to avoid CFLAGS overriding introduce new EXTRA_CFLAGS variable
-for setting via command argument
-
-Signed-off-by: Dariusz Pelowski <[email protected]>
----
- Makefile | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/Makefile b/Makefile
-index 64a0a16..bca1b26 100644
---- a/Makefile
-+++ b/Makefile
-@@ -2,6 +2,8 @@
- # Define WERROR=0 to disable -Werror.
- #
-
-+CFLAGS += $(EXTRA_CFLAGS)
-+
- ifeq ($(strip $(V)),)
-       E = @echo
-       Q = @
---
-2.15.0
-
recipes-extended/kvmtool/kvmtool.bb +1 -2
index cb09c66..acecb08 100644
@@ -13,7 +13,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git \
            file://external-crosscompiler.patch \
            file://0001-Avoid-pointers-for-address-of-packed-members.patch \
            file://0001-kvmtool-9p-fixed-compilation-error.patch \
-           file://0002-kvmtool-add-EXTRA_CFLAGS-variable.patch \
+           file://0002-kvmtool-add-EXTRA_CFLAGS-variable-and-disable-werror.patch \
            "
 
 SRCREV = "0e1882a49f81cb15d328ef83a78849c0ea26eecc"
--

2.7.4

Quoted 5 lines

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II