qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] qemu compile error


From: Daniel P. Berrange
Subject: Re: [Qemu-devel] qemu compile error
Date: Fri, 20 Oct 2017 13:41:11 +0100
User-agent: Mutt/1.9.1 (2017-09-22)

On Fri, Oct 20, 2017 at 12:13:05PM +0000, Chen, Farrah wrote:
> Hi,
> 
> When I build qemu with commit from aef45d51d1204f3335fb99de6658e0c5612c2b67 
> to the latest one, the following error occurred:
> 
> tsocks git clone git://git.qemu.org/qemu.git

The use of 'tsocks' is probably the problem you have

> cd qemu
> 
> ./configure --target-list=x86_64-softmmu --enable-kvm --enable-vnc 
> --disable-gtk --enable-libusb --enable-numa --disable-sdl
> make
>   GEN     config-host.h
>   GIT     dtc

When we checkout the submodule we just call "git" and expect it to
work - we've no knowledge of tsocks.

>   GEN     trace/generated-tcg-tracers.h
>   GEN     trace/generated-helpers-wrappers.h
>   GEN     trace/generated-helpers.h
>   GEN     module_block.h
>   GEN     trace/generated-helpers.c
> make: *** [git-submodule-update] Error 1
> 
> 
> Would you mind telling me how to avoid this error?

You need to make sure the 'git' command in the $PATH can checkout from
qemu.org directly. Since you seem to require tsocks, then the way to
achieve this is to create a wrapper script and make sure it appears
first in $PATH.

eg something like

   $ cat > $HOME/.local/bin/git <<EOF
   #!/bin/sh

   exec tsocks /usr/bin/git "$@"
   EOF
   chmod +x $HOME/.local/bin/git
   export PATH=$HOME/.local/bin:$PATH

so now just typing 'git' transparently runs tsocks.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



reply via email to

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