qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PULL v2 0/9] Misc changes for 2016-06-06


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PULL v2 0/9] Misc changes for 2016-06-06
Date: Tue, 7 Jun 2016 13:23:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0


On 07/06/2016 13:13, Peter Maydell wrote:
> On 7 June 2016 at 12:03, Paolo Bonzini <address@hidden> wrote:
>> On 07/06/2016 12:58, Peter Maydell wrote:
>>> Worse, when I revert this merge attempt and do a build on the previously
>>> working master, it fails (all trees, all configs):
>>>
>>> /home/pm215/qemu/qemu-img.c: In function ‘help’:
>>> /home/pm215/qemu/qemu-img.c:43:59: error: expected ‘,’ or ‘;’ before
>>> ‘QEMU_PKGVERSION’
>>>  #define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION QEMU_PKGVERSION \
>>>                                                            ^
>>> /home/pm215/qemu/qemu-img.c:89:12: note: in expansion of macro
>>> ‘QEMU_IMG_VERSION’
>>>             QEMU_IMG_VERSION
>>>             ^
>>> /home/pm215/qemu/qemu-img.c: In function ‘main’:
>>> /home/pm215/qemu/qemu-img.c:43:59: error: expected ‘)’ before 
>>> ‘QEMU_PKGVERSION’
>>>  #define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION QEMU_PKGVERSION \
>>>                                                            ^
>>> /home/pm215/qemu/qemu-img.c:3520:16: note: in expansion of macro
>>> ‘QEMU_IMG_VERSION’
>>>          printf(QEMU_IMG_VERSION);
>>>                 ^
>>>
>>> The change is badly broken somehow.
>>
>> This is the same issue with PKGVERSION being defined twice (before) and
>> nowhere (now), instead of once.  And I suspect this is a long-standing
>> issue where config-host.mak and config-host.h are not being rebuilt
>> correctly.
>>
>> However, if you force-rebuild config-host.h it should work.
> 
> It didn't. I've just spent a bunch of time manually going around
> and forcing reconfigures in all my build trees to unwedge them again :-(

This helped here:

diff --git a/Makefile b/Makefile
index 59af636..a27336d 100644
--- a/Makefile
+++ b/Makefile
@@ -168,8 +168,8 @@ endif
 all: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all modules
 
 config-host.h: config-host.h-timestamp
-config-host.h-timestamp: config-host.mak
+config-host.h-timestamp: config-host.mak $(SRC_PATH)/scripts/create_config
 qemu-options.def: $(SRC_PATH)/qemu-options.hx
        $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN  
 $@")
 
 SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]