All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: "Chen, Farrah" <farrah.chen@intel.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Hu, Robert" <robert.hu@intel.com>
Subject: Re: [Qemu-devel] qemu compile error
Date: Fri, 20 Oct 2017 13:41:11 +0100	[thread overview]
Message-ID: <20171020124111.GK21172@redhat.com> (raw)
In-Reply-To: <1B925CC0CD9F3341B32D442251E7E1DC391048B2@shsmsx102.ccr.corp.intel.com>

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	other threads:[~2017-10-20 12:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-20 12:13 [Qemu-devel] qemu compile error Chen, Farrah
2017-10-20 12:41 ` Daniel P. Berrange [this message]
2017-10-20 12:41 ` Peter Maydell
2017-10-20 12:45   ` Daniel P. Berrange
2017-10-20 14:42   ` Eric Blake
2017-10-23 13:43   ` Chen, Farrah
2017-10-23 13:46     ` Daniel P. Berrange
2017-10-24  2:17       ` Chen, Farrah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171020124111.GK21172@redhat.com \
    --to=berrange@redhat.com \
    --cc=farrah.chen@intel.com \
    --cc=qemu-devel@nongnu.org \
    --cc=robert.hu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.