search for: gopath

Displaying 20 results from an estimated 30 matches for "gopath".

2018 Dec 31
0
Aw: Re: rsync remote raw block device with --inplace
...s scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20181231/36a9aec4/attachment.html> -------------- next part -------------- #!/bin/bash echo echo '## ' echo '## installing/updating diskrsync' echo '## ' echo set -x ## customize below lines export GOPATH="/usr/local/ch-static/GO" ## wherever you keep your go projects export EXECDIR="/usr/local/ch-tools3" ## where the executable diskrsync command will be put ## customize above lines export GOBIN="$GOPATH/bin" export GOROOT="`go env GOROOT`" export PATH=&quo...
2020 Apr 29
0
golang: panic: runtime error: cgo argument has Go pointer to Go pointer
Hello, when i use libguestfs to ceph rbd by golang, but there has panic: panic: runtime error: cgo argument has Go pointer to Go pointer goroutine 1 [running]: guestfs.(*Guestfs).Add_drive.func11(0xc000010028, 0xcda6a0, 0xc0000d6000, 0xc000090280) /opt/gopath/src/guestfs/guestfs.go:1440 +0xc2 guestfs.(*Guestfs).Add_drive(0xc000010028, 0x7ffd4b5d67ff, 0xd, 0xc00008d9d8, 0x0) /opt/gopath/src/guestfs/guestfs.go:1440 +0x1b2 main.OpenImage(0x7ffd4b5d67ff, 0xd, 0x0, 0x0, 0x42110b, 0x7c87e0, 0x4f41e0) /opt/gopath/src/disk/disk.go:34 +0x371 main.resizeext4(0x7f...
2020 Apr 23
0
[PATCH nbdkit 2/2] golang: Compile against the local nbdkit build, not installed.
...s/golang/Makefile.am +++ b/plugins/golang/Makefile.am @@ -66,18 +66,21 @@ noinst_DATA = \ examples/dump-plugin/nbdkit-godump-plugin.so: \ $(plugin_sources) examples/dump-plugin/dumpplugin.go cd examples/dump-plugin && \ + PKG_CONFIG_PATH="$(abs_builddir)/server/local" \ GOPATH="$(abs_builddir)" \ $(GOLANG) build -o nbdkit-godump-plugin.so -buildmode=c-shared examples/minimal/nbdkit-gominimal-plugin.so: \ $(plugin_sources) examples/minimal/minimal.go cd examples/minimal && \ + PKG_CONFIG_PATH="$(abs_builddir)/server/local" \ GOPA...
2020 Apr 23
0
[PATCH nbdkit v3 2/2] golang: Compile against the local nbdkit build, not installed.
...ng/Makefile.am @@ -66,18 +66,21 @@ noinst_DATA = \ examples/dump-plugin/nbdkit-godump-plugin.so: \ $(plugin_sources) examples/dump-plugin/dumpplugin.go cd examples/dump-plugin && \ + PKG_CONFIG_PATH="$(abs_builddir)/server/local$${PKG_CONFIG_PATH:-:$$PKG_CONFIG_PATH}" \ GOPATH="$(abs_builddir)" \ $(GOLANG) build -o nbdkit-godump-plugin.so -buildmode=c-shared examples/minimal/nbdkit-gominimal-plugin.so: \ $(plugin_sources) examples/minimal/minimal.go cd examples/minimal && \ + PKG_CONFIG_PATH="$(abs_builddir)/server/local$${PKG_CONFIG_P...
2016 Oct 27
1
[PATCH] run.in: Quote contents of @VAR@ substitutions
...A="@LUA@" # Can't use 'prepend' here because Lua paths use semicolons. if [ -z "$LUA_CPATH" ]; then LUA_CPATH="$b/lua/?.so" @@ -181,7 +181,7 @@ fi export LUA_CPATH # For golang. -export GOLANG=@GOLANG@ +export GOLANG="@GOLANG@" prepend GOPATH "$b/golang" export GOPATH if [ -z "$CGO_CFLAGS" ]; then @@ -198,7 +198,7 @@ fi export CGO_LDFLAGS # For GObject, Javascript and friends. -export GJS=@GJS@ +export GJS="@GJS@" prepend GI_TYPELIB_PATH "$b/gobject" export GI_TYPELIB_PATH # Be friendly t...
2020 Apr 23
1
Re: [PATCH nbdkit v3 2/2] golang: Compile against the local nbdkit build, not installed.
On 4/23/20 2:13 PM, Richard W.M. Jones wrote: > Compiling nbdkit from source when an older nbdkit is installed would > fail because certain symbols such as .get_ready are not defined in the > (installed) <nbdkit-plugin.h>: > > ../../src/libguestfs.org/nbdkit/nbdkit.go:541:8: plugin.get_ready undefined (type _Ctype_struct_nbdkit_plugin has no field or method get_ready) >
2015 Feb 13
2
[PATCH] ./run: Use 'prepend' function to build paths.
...port ERL_LIBS # For Lua. export LUA=@LUA@ +# Can't use 'prepend' here because Lua paths use semicolons. if [ -z "$LUA_CPATH" ]; then LUA_CPATH="$b/lua/?.so" else @@ -167,11 +182,7 @@ export LUA_CPATH # For golang. export GOLANG=@GOLANG@ -if [ -z "$GOPATH" ]; then - GOPATH="$b/golang" -else - GOPATH="$b/golang:$GOPATH" -fi +prepend GOPATH "$b/golang" export GOPATH if [ -z "$CGO_CFLAGS" ]; then CGO_CFLAGS="-I$s/src" @@ -188,11 +199,7 @@ export CGO_LDFLAGS # For GObject, Javascript...
2020 Apr 23
4
[PATCH nbdkit v3 0/2] golang: Compile against the local nbdkit build.
Version 2: https://www.redhat.com/archives/libguestfs/2020-April/thread.html#00166 Version 3 contains all changes discussed in the previous review. Rich.
2014 Oct 09
2
[LLVMdev] Proposal: bindings for the Go programming language
> Importing this path would cause 'go get' to check out LLVM plus the bindings > from SVN using the mechanism described in [3]. We would check index.html > files into the www repository to support this. > > There doesn't seem to be a good way to build complex C++ projects such as LLVM > using 'go get', so there is a script (update_llvm.sh) that builds LLVM and
2020 Apr 23
5
[PATCH nbdkit 0/2 v2] golang: Compile against the local nbdkit build.
Version 1 was here: https://www.redhat.com/archives/libguestfs/2020-April/thread.html#00160 Version 2 side-steps the objections to the first patch by using a well-formed alternate nbdkit.pc file and running ordinary pkg-config against it, so any parsing of --cflags etc will be done by pkg-config. The first patch is essentially the same idea as:
2020 Apr 23
3
[PATCH nbdkit] golang: Compile against the local nbdkit build, not installed.
...--- a/plugins/golang/Makefile.am +++ b/plugins/golang/Makefile.am @@ -66,18 +66,21 @@ noinst_DATA = \ examples/dump-plugin/nbdkit-godump-plugin.so: \ $(plugin_sources) examples/dump-plugin/dumpplugin.go cd examples/dump-plugin && \ + PKG_CONFIG=$(abs_builddir)/golang-pkgconf.sh \ GOPATH="$(abs_builddir)" \ $(GOLANG) build -o nbdkit-godump-plugin.so -buildmode=c-shared examples/minimal/nbdkit-gominimal-plugin.so: \ $(plugin_sources) examples/minimal/minimal.go cd examples/minimal && \ + PKG_CONFIG=$(abs_builddir)/golang-pkgconf.sh \ GOPATH="$(a...
2020 Oct 17
2
Re: Build failure of libnbd
[Adding libguestfs mailing list] I reproduced it locally - the difference was installing "gcc-go". I only had golang-bin installed previously. With gcc-go installed: ../run go install libguestfs.org/libnbd write of Go pointer 0xc000016060 to non-Go memory 0x7f5fe8297390 fatal error: Go pointer stored into non-Go memory runtime stack: runtime_mstart
2020 Feb 14
3
State of llgo in monorepo?
...d has effectively nothing to do with llgo. It's only a tiny utility script used by the llvm build process for running go programs with the desired set of environment variables. >From the comment in the file: > This tool lets us build LLVM components within the tree by setting up a > $GOPATH that resembles a tree fetched in the normal way with "go get". (FWIW, I had the exact same reaction as you, before realizing the above.) On Fri, Feb 14, 2020 at 2:46 AM Raphael “Teemperor” Isemann via llvm-dev < llvm-dev at lists.llvm.org> wrote: > So just to summarise what h...
2020 Aug 25
2
State of llgo in monorepo?
...39;s only a tiny utility script used by the llvm build > process for running go programs with the desired set of environment > variables. > > > > From the comment in the file: > >> > >> This tool lets us build LLVM components within the tree by setting up a > $GOPATH that resembles a tree fetched in the normal way with "go get". > > > > > > (FWIW, I had the exact same reaction as you, before realizing the above.) > > > > On Fri, Feb 14, 2020 at 2:46 AM Raphael “Teemperor” Isemann via llvm-dev > <llvm-dev at lists.ll...
2020 Oct 17
0
Re: Build failure of libnbd
...we > ought to try to support both, or if gcc-go cannot work then we ought > to reject it in ./configure. nbdkit-golang-plugin also fails to build with gcc-go: cd examples/disk && \ PKG_CONFIG_PATH="/home/rjones/d/nbdkit/server/local${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" \ GOPATH="/home/rjones/d/nbdkit/plugins/golang" \ go build -o nbdkit-godisk-plugin.so -buildmode=c-shared # _/home/rjones/d/nbdkit/plugins/golang/examples/disk /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/10/libgolibbegin.a(libgolibbegin_a-go-libmain.o): undefined reference to symbol 'pthread...
2019 Jan 03
1
Golang libvirt bindings problem
...m. I tried this on: - CentOS 7.6 (go version 1.11.2) - Ubuntu 18.04 LTS (go version 1.10.4) Both systems - as advised on project's github pages/godoc.org - have libvirt-dev package installed. Also, the libvirt module is imported as advised: libvirt "github.com/libvirt/libvirt-go" GOPATH is set to /home/$USER/go I downloaded the package via go get; go get -v -u github.com/libvirt/libvirt-go. Please if somebody encountered this before, could you give me a hint if possible in order to solve this? Thank you very much in advance! Regards, Branimir
2020 Oct 17
2
Re: Build failure of libnbd
...port both, or if gcc-go cannot work then we ought >> to reject it in ./configure. > >nbdkit-golang-plugin also fails to build with gcc-go: > >cd examples/disk && \ >PKG_CONFIG_PATH="/home/rjones/d/nbdkit/server/local${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" \ >GOPATH="/home/rjones/d/nbdkit/plugins/golang" \ >go build -o nbdkit-godisk-plugin.so -buildmode=c-shared ># _/home/rjones/d/nbdkit/plugins/golang/examples/disk >/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/10/libgolibbegin.a(libgolibbegin_a-go-libmain.o): undefined reference to symbol...
2020 Mar 17
0
[PATCH libnbd] Add outline framework for Go language bindings (golang).
...%s", err) + } + h.Close () +} diff --git a/run.in b/run.in index 0411c85..9ffece5 100755 --- a/run.in +++ b/run.in @@ -78,6 +78,23 @@ export PYTHONPATH prepend CAML_LD_LIBRARY_PATH "$b/ocaml" export CAML_LD_LIBRARY_PATH +# For golang. +export GOLANG="@GOLANG@" +prepend GOPATH "$b/golang" +export GOPATH +if [ -z "$CGO_CFLAGS" ]; then + CGO_CFLAGS="-I$s/include -I$b" +else + CGO_CFLAGS="$CGO_CFLAGS -I$s/include -I$b" +fi +export CGO_CFLAGS +if [ -z "$CGO_LDFLAGS" ]; then + CGO_LDFLAGS="-L$b/lib/.libs" +e...
2020 Mar 17
0
[PATCH libnbd v2 2/3] Add outline framework for Go language bindings (golang).
...%s", err) + } + h.Close () +} diff --git a/run.in b/run.in index 0411c85..9ffece5 100755 --- a/run.in +++ b/run.in @@ -78,6 +78,23 @@ export PYTHONPATH prepend CAML_LD_LIBRARY_PATH "$b/ocaml" export CAML_LD_LIBRARY_PATH +# For golang. +export GOLANG="@GOLANG@" +prepend GOPATH "$b/golang" +export GOPATH +if [ -z "$CGO_CFLAGS" ]; then + CGO_CFLAGS="-I$s/include -I$b" +else + CGO_CFLAGS="$CGO_CFLAGS -I$s/include -I$b" +fi +export CGO_CFLAGS +if [ -z "$CGO_LDFLAGS" ]; then + CGO_LDFLAGS="-L$b/lib/.libs" +e...
2020 Apr 24
1
[PATCH nbdkit] golang: Pass Plugin and Connection by reference not value.
...l-plugin.so \ examples/ramdisk/nbdkit-goramdisk-plugin.so \ $(NULL) +examples/disk/nbdkit-godisk-plugin.so: \ + $(plugin_sources) examples/disk/disk.go + cd examples/disk && \ + PKG_CONFIG_PATH="$(abs_top_builddir)/server/local$${PKG_CONFIG_PATH:+:$$PKG_CONFIG_PATH}" \ + GOPATH="$(abs_builddir)" \ + $(GOLANG) build -o nbdkit-godisk-plugin.so -buildmode=c-shared + examples/dump-plugin/nbdkit-godump-plugin.so: \ $(plugin_sources) examples/dump-plugin/dumpplugin.go cd examples/dump-plugin && \ diff --git a/plugins/golang/examples/disk/disk.go b/plu...