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 :|