qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] configure: Change capstone's default state to d


From: Thomas Huth
Subject: Re: [Qemu-devel] [PATCH] configure: Change capstone's default state to disabled
Date: Sun, 12 May 2019 15:47:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 11/05/2019 20.28, Programmingkid wrote:
> 
>> On May 11, 2019, at 2:05 PM, Thomas Huth <address@hidden> wrote:
>>
>> On 11/05/2019 19.21, Programmingkid wrote:
>>>
>>>> On Apr 20, 2019, at 6:40 AM, Thomas Huth <address@hidden> wrote:
>>>>
>>>> On 19/04/2019 15.44, G 3 wrote:
[...]
>>>>> Thank you for replying. Capstone comes with QEMU? Every time I try to
>>>>> compile QEMU I see an error relating to Capstone not being on my system.
>>>>> Why do you feel that disabling Capstone by default is not a good idea?
>>>>>
>>>>> Here is the error message I see when compiling QEMU:
>>>>>
>>>>> CHK version_gen.h
>>>>> make[1]: *** No rule to make target
>>>>> `/Users/John/qemu-git/capstone/libcapstone.a'.  Stop.
>>>>> make: *** [subdir-capstone] Error 2
>>>>
>>>> I assume you're using a git checkout here, right? For git checkouts, the
>>>> Makefile should take care of calling the scripts/git-submodule.sh script
>>>> which should initialize the submodule in the capstone directory.
>>>>
>>>> What's the content of your .git-submodule-status file? What does
>>>> "configure" say about capstone support on your system?
>>>>
>>>> Thomas
>>>
>>> Yes I use a git checkout.
>>>
>>> This is the contents of my .git-submodule-status file:
>>> #!/bin/sh
>> [...]
>>
>> That were the contents of scripts/git-submodule.sh. I meant the hidden
>> file .git-submodule-status in the main directory.
> 
> This is it:
>  88f18909db731a627456f26d779445f84e449536 dtc (v1.4.7)
>  f0da6726207b740f6101028b2992f918477a4b08 slirp (v4.0.0-rc0-25-gf0da672)
>  b64af41c3276f97f0e181920400ee056b9c88037 tests/fp/berkeley-softfloat-3 
> (heads/master)
>  5a59dcec19327396a011a17fd924aed4fec416b3 tests/fp/berkeley-testfloat-3 
> (remotes/origin/HEAD)
>  6b3d716e2b6472eb7189d3220552280ef3d832ce ui/keycodemapdb 
> (heads/master-4-g6b3d716)

There should be an entry for capstone in here, too. :-/

>>> I did a 'make clean' followed by a 'make distclean'. Then tried building 
>>> again using this command line:
>>>
>>> ./configure --target-list=ppc-softmmu,i386-softmmu,x86_64-softmmu
>>> make -j 4
>>
>> That should normally populate the capstone directory. What happens if
>> you run "make git-submodule-update" directly?
> 
> Here is the result:
> $ make git-submodule-update
> make[1]: Nothing to be done for `all'.
> make[1]: *** No rule to make target 
> `/Users/John/Documents/Development/Projects/Qemu/qemu-git/capstone/libcapstone.a'.
>   Stop.
> make: *** [subdir-capstone] Error 2

Apparently the submodule update is not working right for you. What do
you get when you run:

 git submodule update capstone

?

>>> I took a look at the capstone folder. There is no 'make' file in this 
>>> folder. Should there be one?
>>
>> Yes, the capstone folder should be populated automatically. Is it
>> completely empty for you?
> 
> It isn't empty. All I see are two folders: obj and docs.

Maybe try to clean the folder first:

 rm -r capstone
 mkdir capstone
 make git-submodule-update

If that does not help, maybe try a completely fresh git checkout?

 Thomas



reply via email to

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