build: Cleanup qga make output
PATCH 1/1 build: Cleanup qga make output
Currently the make variable qapi-dir refers to the qapi-generated directory in absolute terms. This causes the harmless but ugly make output below. By changing this variable to the relative path the output conforms to the norm and the build works fine.
Before patch:
CC /home/aglitke/src/qemu/qapi-generated/qga-qapi-types.o CC /home/aglitke/src/qemu/qapi-generated/qga-qapi-visit.o CC /home/aglitke/src/qemu/qapi-generated/qga-qmp-marshal.o After patch: CC qapi-generated/qga-qapi-types.o CC qapi-generated/qga-qapi-visit.o CC qapi-generated/qga-qmp-marshal.o
--- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
@@ -168,7 +168,7 @@ check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y) test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y) $(qapi-obj-y): $(GENERATED_HEADERS) -qapi-dir := $(BUILD_DIR)/qapi-generated +qapi-dir := qapi-generated test-visitor.o test-qmp-commands.o qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir) qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
Signature · 1 line
1.7.5.rc1
Quoted 5 lines · Adam Litke
Currently the make variable qapi-dir refers to the qapi-generated directory in absolute terms. This causes the harmless but ugly make output below. By changing this variable to the relative path the output conforms to the norm and the build works fine.
Quoted 8 lines
Before patch:
CC /home/aglitke/src/qemu/qapi-generated/qga-qapi-types.o CC /home/aglitke/src/qemu/qapi-generated/qga-qapi-visit.o CC /home/aglitke/src/qemu/qapi-generated/qga-qmp-marshal.o After patch: CC qapi-generated/qga-qapi-types.o CC qapi-generated/qga-qapi-visit.o CC qapi-generated/qga-qmp-marshal.o
This was supposedly to fix a build issue that I was never able to reproduce. I think Luiz could reproduce it though. Luiz, could you try out Adam's patch and confirm it breaks for you?
Regards,
Anthony Liguori
Quoted 19 lines
Signed-off-by Adam Litke<[email protected]>--- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)Makefile +1
-1@@ -168,7 +168,7 @@ check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y) test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y) $(qapi-obj-y): $(GENERATED_HEADERS) -qapi-dir := $(BUILD_DIR)/qapi-generated +qapi-dir := qapi-generated test-visitor.o test-qmp-commands.o qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir) qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
Quoted 17 lines · Anthony Liguori
Quoted 7 lines · Adam Litke
Currently the make variable qapi-dir refers to the qapi-generated directory in
absolute terms. This causes the harmless but ugly make output below. By changing this variable to the relative path the output conforms to the norm and
the build works fine.Quoted 8 lines
Before patch:
CC/home/aglitke/src/qemu/qapi-generated/qga-qapi-types.oCC/home/aglitke/src/qemu/qapi-generated/qga-qapi-visit.oCC/home/aglitke/src/qemu/qapi-generated/qga-qmp-marshal.oAfter patch:
CCqapi-generated/qga-qapi-types.o
CCqapi-generated/qga-qapi-visit.o
CCqapi-generated/qga-qmp-marshal.o
Quoted 3 lines
This was supposedly to fix a build issue that I was never able to reproduce. I think Luiz could reproduce it though. Luiz, could you try out Adam's patch and confirm it breaks for you?
I think that was Stefano:
http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg02752.html
Stefano had a patch that fixed a build breakage he saw with dirty directories by setting:
qapi-dir := $(SRC_DIR)/qapi-generated
That patch ended up breaking the build for others, however, and was reverted.
This patch was an improvement on the original, but we'd all agreed that it wasn't necessary since we don't support working around issues related to dirty directories.
So if it's ugly, we can safely drop it.
Quoted 29 lines
Regards,
Anthony Liguori
Quoted 22 lines
Signed-off-by Adam Litke<[email protected]>---
Makefile| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)Makefile +0
-0@@ -168,7 +168,7 @@ check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y)test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y)
$(qapi-obj-y): $(GENERATED_HEADERS)
Makefile +1
-1-qapi-dir := $(BUILD_DIR)/qapi-generated +qapi-dir := qapi-generatedtest-visitor.o test-qmp-commands.o qemu-ga$(EXESUF):
QEMU_CFLAGS+= -I $(qapi-dir)
qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
Quoted 18 lines · On Mon, 12 Dec 2011 17:38:36 -0600 Michael Roth <[email protected]>…
Quoted 17 lines · Anthony Liguori
Quoted 15 lines · Adam Litke
Currently the make variable qapi-dir refers to the qapi-generated directory in
absolute terms. This causes the harmless but ugly make output below. By changing this variable to the relative path the output conforms to the norm and
the build works fine.Before patch:
CC/home/aglitke/src/qemu/qapi-generated/qga-qapi-types.oCC/home/aglitke/src/qemu/qapi-generated/qga-qapi-visit.oCC/home/aglitke/src/qemu/qapi-generated/qga-qmp-marshal.oAfter patch:
CCqapi-generated/qga-qapi-types.o
CCqapi-generated/qga-qapi-visit.o
CCqapi-generated/qga-qmp-marshal.o
Quoted 3 lines
Quoted 3 lines
This was supposedly to fix a build issue that I was never able to reproduce. I think Luiz could reproduce it though. Luiz, could you try out Adam's patch and confirm it breaks for you?
It doesn't :( I also tried to reproduce again with -rc4 (which was the version I was getting it) but it doesn't happen anymore.
Quoted 7 lines
I think that was Stefano:
http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg02752.html
Stefano had a patch that fixed a build breakage he saw with dirty directories by setting:
Quoted 8 lines
qapi-dir := $(SRC_DIR)/qapi-generated
That patch ended up breaking the build for others, however, and was reverted.
This patch was an improvement on the original, but we'd all agreed that it wasn't necessary since we don't support working around issues related to dirty directories.
What kind of issue? I'm 100% certain that my tree was clean, the only thing I did not do was to clone it again.
We have had races when building the qapi in the past, maybe that's the problem and commit 9b12940 makes it less likely.
We could revert it and wait for the problem to happen again...
Quoted 33 lines
So if it's ugly, we can safely drop it.
Quoted 29 lines
Regards,
Anthony Liguori
Quoted 22 lines
Signed-off-by Adam Litke<[email protected]>---
Makefile| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)Makefile +0
-0@@ -168,7 +168,7 @@ check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y)test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y)
$(qapi-obj-y): $(GENERATED_HEADERS)
Makefile +1
-1-qapi-dir := $(BUILD_DIR)/qapi-generated +qapi-dir := qapi-generatedtest-visitor.o test-qmp-commands.o qemu-ga$(EXESUF):
QEMU_CFLAGS+= -I $(qapi-dir)
qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
Quoted 21 lines · Luiz Capitulino
Quoted 18 lines · On Mon, 12 Dec 2011 17:38:36 -0600 Michael Roth <[email protected]>…
Quoted 17 lines · Anthony Liguori
Quoted 15 lines · Adam Litke
Currently the make variable qapi-dir refers to the qapi-generated directory in
absolute terms. This causes the harmless but ugly make output below. By changing this variable to the relative path the output conforms to the norm and
the build works fine.Before patch:
CC/home/aglitke/src/qemu/qapi-generated/qga-qapi-types.oCC/home/aglitke/src/qemu/qapi-generated/qga-qapi-visit.oCC/home/aglitke/src/qemu/qapi-generated/qga-qmp-marshal.oAfter patch:
CCqapi-generated/qga-qapi-types.o
CCqapi-generated/qga-qapi-visit.o
CCqapi-generated/qga-qmp-marshal.o
Quoted 22 lines
Quoted 3 lines
Quoted 3 lines
This was supposedly to fix a build issue that I was never able to reproduce. I think Luiz could reproduce it though. Luiz, could you try out Adam's patch and confirm it breaks for you?
It doesn't :( I also tried to reproduce again with -rc4 (which was the version I was getting it) but it doesn't happen anymore.
Quoted 15 lines
I think that was Stefano:
http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg02752.html
Stefano had a patch that fixed a build breakage he saw with dirty directories by setting:
qapi-dir := $(SRC_DIR)/qapi-generated
That patch ended up breaking the build for others, however, and was reverted.
This patch was an improvement on the original, but we'd all agreed that it wasn't necessary since we don't support working around issues related to dirty directories.
I am lacking some context here. I am confused how a dirty directory could change the output in this way.
Quoted 7 lines
What kind of issue? I'm 100% certain that my tree was clean, the only thing I did not do was to clone it again.
We have had races when building the qapi in the past, maybe that's the problem and commit 9b12940 makes it less likely.
We could revert it and wait for the problem to happen again...
I would be fine with doing whatever is least likely to cause anyone else problems. I wouldn't want to break the actual build just to make the output look nice.
Quoted 35 lines
Quoted 34 lines
So if it's ugly, we can safely drop it.
Quoted 29 lines
Regards,
Anthony Liguori
Quoted 22 lines
Signed-off-by Adam Litke<[email protected]>---
Makefile| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)Makefile +0
-0@@ -168,7 +168,7 @@ check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y)test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y)
$(qapi-obj-y): $(GENERATED_HEADERS)
Makefile +1
-1-qapi-dir := $(BUILD_DIR)/qapi-generated +qapi-dir := qapi-generatedtest-visitor.o test-qmp-commands.o qemu-ga$(EXESUF):
QEMU_CFLAGS+= -I $(qapi-dir)
qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
Signature · 2 lines
Adam Litke <[email protected]> IBM Linux Technology Center
Quoted 41 lines · Adam Litke
Quoted 40 lines · Luiz Capitulino
Quoted 18 lines · On Mon, 12 Dec 2011 17:38:36 -0600 Michael Roth<[email protected]>…
Quoted 17 lines · Anthony Liguori
Quoted 15 lines · Adam Litke
Currently the make variable qapi-dir refers to the qapi-generated directory in
absolute terms. This causes the harmless but ugly make output below. By changing this variable to the relative path the output conforms to the norm and
the build works fine.Before patch:
CC/home/aglitke/src/qemu/qapi-generated/qga-qapi-types.oCC/home/aglitke/src/qemu/qapi-generated/qga-qapi-visit.oCC/home/aglitke/src/qemu/qapi-generated/qga-qmp-marshal.oAfter patch:
CCqapi-generated/qga-qapi-types.o
CCqapi-generated/qga-qapi-visit.o
CCqapi-generated/qga-qmp-marshal.oQuoted 3 lines
Quoted 3 lines
This was supposedly to fix a build issue that I was never able to reproduce. I think Luiz could reproduce it though. Luiz, could you try out Adam's patch and confirm it breaks for you?
It doesn't :( I also tried to reproduce again with -rc4 (which was the version I was getting it) but it doesn't happen anymore.
Quoted 12 lines
I think that was Stefano:
http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg02752.html
Stefano had a patch that fixed a build breakage he saw with dirty directories by setting:
qapi-dir := $(SRC_DIR)/qapi-generated
That patch ended up breaking the build for others, however, and was reverted.
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
This patch was an improvement on the original, but we'd all agreed that it wasn't necessary since we don't support working around issues related to dirty directories.
I am lacking some context here. I am confused how a dirty directory could change the output in this way.
I guess I'm lacking context as well, I wasn't aware that Luiz had also hit an issue related to this patch, was just going off what I'd read in the thread where I posted this patch...
In Stefano's case, he'd noticed his build issue went away if
a) this (rather, Stefano's original) patch was applied, or
b) if he did a make distclean in his source directory beforehand
So that's why we assumed dirty directories were the problem.
I'm not sure of the circumstances behind the breakage Luiz saw, so I'd err on the side of caution and keep this patch until that's clarified.
Quoted 49 lines
Quoted 8 lines
What kind of issue? I'm 100% certain that my tree was clean, the only thing I did not do was to clone it again.
We have had races when building the qapi in the past, maybe that's the problem and commit 9b12940 makes it less likely.
We could revert it and wait for the problem to happen again...
I would be fine with doing whatever is least likely to cause anyone else problems. I wouldn't want to break the actual build just to make the output look nice.
Quoted 35 lines
Quoted 34 lines
So if it's ugly, we can safely drop it.
Quoted 29 lines
Regards,
Anthony Liguori
Quoted 22 lines
Signed-off-by Adam Litke<[email protected]>---
Makefile| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)Makefile +0
-0@@ -168,7 +168,7 @@ check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y)test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y)
$(qapi-obj-y): $(GENERATED_HEADERS)
Makefile +1
-1-qapi-dir := $(BUILD_DIR)/qapi-generated +qapi-dir := qapi-generatedtest-visitor.o test-qmp-commands.o qemu-ga$(EXESUF):
QEMU_CFLAGS+= -I $(qapi-dir)
qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
Quoted 46 lines · On Tue, 13 Dec 2011 09:22:39 -0600 Michael Roth <[email protected]>…
Quoted 45 lines · Adam Litke
Quoted 43 lines · Luiz Capitulino
Quoted 18 lines · On Mon, 12 Dec 2011 17:38:36 -0600 Michael Roth<[email protected]>…
Quoted 17 lines · Anthony Liguori
Quoted 15 lines · Adam Litke
Currently the make variable qapi-dir refers to the qapi-generated directory in
absolute terms. This causes the harmless but ugly make output below. By changing this variable to the relative path the output conforms to the norm and
the build works fine.Before patch:
CC/home/aglitke/src/qemu/qapi-generated/qga-qapi-types.oCC/home/aglitke/src/qemu/qapi-generated/qga-qapi-visit.oCC/home/aglitke/src/qemu/qapi-generated/qga-qmp-marshal.oAfter patch:
CCqapi-generated/qga-qapi-types.o
CCqapi-generated/qga-qapi-visit.o
CCqapi-generated/qga-qmp-marshal.oQuoted 3 lines
Quoted 3 lines
This was supposedly to fix a build issue that I was never able to reproduce. I think Luiz could reproduce it though. Luiz, could you try out Adam's patch and confirm it breaks for you?
It doesn't :( I also tried to reproduce again with -rc4 (which was the version I was getting it) but it doesn't happen anymore.
Quoted 15 lines
I think that was Stefano:
http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg02752.html
Stefano had a patch that fixed a build breakage he saw with dirty directories by setting:
qapi-dir := $(SRC_DIR)/qapi-generated
That patch ended up breaking the build for others, however, and was reverted.
This patch was an improvement on the original, but we'd all agreed that it wasn't necessary since we don't support working around issues related to dirty directories.
Quoted 6 lines
Quoted 2 lines
I am lacking some context here. I am confused how a dirty directory could change the output in this way.
I guess I'm lacking context as well, I wasn't aware that Luiz had also hit an issue related to this patch, was just going off what I'd read in the thread where I posted this patch...
Well, it happened a few days before the final release. While I was discussing it with Anthony over IRC I was reading qemu-devel and I saw your patches. I guessed they would fix the issue and they did, so Anthony decided to apply them.
Quoted 4 lines
In Stefano's case, he'd noticed his build issue went away if
a) this (rather, Stefano's original) patch was applied, or
b) if he did amake distcleanin his source directory beforehand
I don't exactly remember if I did 'make distclean'. I probably did, but what I did do was to remove my build dir and build again.
Quoted 55 lines
So that's why we assumed dirty directories were the problem.
I'm not sure of the circumstances behind the breakage Luiz saw, so I'd err on the side of caution and keep this patch until that's clarified.
Quoted 49 lines
Quoted 8 lines
What kind of issue? I'm 100% certain that my tree was clean, the only thing I did not do was to clone it again.
We have had races when building the qapi in the past, maybe that's the problem and commit 9b12940 makes it less likely.
We could revert it and wait for the problem to happen again...
I would be fine with doing whatever is least likely to cause anyone else problems. I wouldn't want to break the actual build just to make the output look nice.
Quoted 35 lines
Quoted 34 lines
So if it's ugly, we can safely drop it.
Quoted 29 lines
Regards,
Anthony Liguori
Quoted 22 lines
Signed-off-by Adam Litke<[email protected]>---
Makefile| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)Makefile +0
-0@@ -168,7 +168,7 @@ check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y)test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y)
$(qapi-obj-y): $(GENERATED_HEADERS)
Makefile +1
-1-qapi-dir := $(BUILD_DIR)/qapi-generated +qapi-dir := qapi-generatedtest-visitor.o test-qmp-commands.o qemu-ga$(EXESUF):
QEMU_CFLAGS+= -I $(qapi-dir)
qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)