when use the gccgo build one single go file is ok, but whn I build a large multi custom pacage go mod project, the project have some sub package(such as app/ app/core/server etc) not build success.
how to fix this? anyhelp? I build with -x and see…
I am trying to compile a simple go program using gccgo. My code uses cgo thou, gccgo couldn't compile it. This is my code (which compiles using go compiler):
package main
// #include
// #include
//
// static void myprint(char*…
my os is ubuntu18.04.
my go compiler is gccgo.
GOROOT is /usr/local/go
it is report as:
package testmain
imports runtime/race: cannot find package "runtime/race" in any of:
/usr/local/go/src/runtime/race (from $GOROOT)
…
It is just a simple "Hello World" program, with the source code:
package main
import "fmt"
func main() {
fmt.Println("Hello, World")
}
I compiled it, with
go version go1.10.3 gccgo (GCC) 8.3.0 linux/amd64
and it reported the following error…
I am trying to learn Cgo, so i tried accessing aerospike client from Cgo
package main
// #cgo CFLAGS: -g -Wall
// #include
// #include
// #include "aerospike-client-c/examples/put/example_utils.h"
import "C"
import…
I have a project written entirely in C. I just need to call one function which will have to be coded in GO. Therefore I am using cgo to build C files and then I would like to use the resulting object files to link with my main C project.
Assume I…
I want to copy contents of GOLang structure to C Structure.
Here i want the populated GO Struct (type test struct) to be copied to C structure test_c.
Have put the following logic. I have accessed C structure test_c in go file, as C.test_c, and…
I've just landed in the the GO-sphere, so, as usually, I'm trying to implement some of the classics in the new language to make some comparison.
I'm experiencing a strange situation with the Montecarlo Simulation for PI, using concurrency:
when I…
I am building gccgo given the instruction here. However, I got error message after I did:
../gccgo/configure --prefix=/opt/gccgo --enable-languages=c,c++,go --with-ld=/opt/gold/bin/ld
make
Error:
/opt/gold/bin/ld: error: cannot find -lugin
…
There are two folds to this problem:
1) Go install not able to generate binary
go version go1.7.3 linux/amd64
go env:
GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/opt/gopath" GORACE="" GOROOT="/opt/go"…
Go/gccgo version: 6.3.0
I am building a program with go build -compiler gccgo -x program.go. Build process fails with
% /usr/bin/gccgo -c -g -fgo-pkgpath=/common/flogging…
I have a C function which will return an array of structure to go function.
How can I receive the array of structure and interpret or cast to go structure?
Here is the code snippet
typedef struct student{
nameStruct name;
addressStruct…
I can not in any way to customize the workspace in ArchLinux.
form.go:6:24: ошибка: import file «github.com/google/gxui» not found
"github.com/google/gxui"
^
form.go:7:35: ошибка: import file…
So, I am building docker that uses rsa module of golang. I am using golang by building gcc, which has gccgo.
linux-l853:~/docker # go version
go version gccgo (GCC) 5.0.0 20141113 (experimental) linux/ppc64
Now, when I am building it, I get the…
Is there a way to build hyperledger fabric using gccgo? I want to do this in order to use -finstrument-functions option of gcc to trace function calls. But I encountered two problems. My steps are as follows.
find the build command
make -n…