I installed gccgo using:
sudo pacman -S gcc-go
When I tried building my code using go build -buildvcs=false -compiler gccgo ., the following error was returned:
# github.com/CompeyDev/nemo/prisma/db
gccgo: fatal error: Killed signal terminated…
I have the following code:
buffer := make([]byte, 256)
conn.Read(buffer)
result:= string(buffer)
fmt.Println("Val:", result)
floatResult, _ := strconv.ParseFloat(result, 64)
fmt.Println("Val on float:", floatResult)
The output is the…
I am trying to build gccgo (9.2) on AIX and facing now a problem I can't solve.
The machine: AIX 7.1, Processor Type: PowerPC_POWER7, CPU Type: 64-bit, Kernel Type: 64-bit
The Error: "./sync/atomic.gox exists but does not contain any Go export…
I built gcc 9.1.0 on Solaris 11 (SPARC) from sources (GNU). The build went well and CGO free Go code can be compiled and works.
With CGO code the gccgo build does not compile.
go code referencing any C standard type like C.int returns an error:
sh>…
I'm building gccgo with crosstool-ng 1.24.0. Got linker error when compiling the very simple main.go. Any idea how to solve this? Any pointer to a successful gogcc build even for a different popular target that can easily be verified?
The host is…
I am driving to compile the project filebeat going for solar / SPARC environments. Officially, Elastic tools are not supported by Solaris.
Neamoins, there is circumventenement to this problem / compile via gccgo. I actually prepare my gccgo…
I am trying to use gorocksdb which is a cgo package wapping the rocksdb library on windows.
I built the rocksdb library with vcpkg which gave me as output rocksdb-shared.dll. I set the build path to my PATH.
I installed msys64 in order to have…
I have question is it possible to return from Go function pointer on C? For example main.c can be:
struct open_db_return db_ptr = open_db(db_path);
GoSlice backet = {"DB", 2, 2};
GoSlice key = {"CONFIG", 6, 6};
struct get_value_return val =…
To outline my end goal. I want to compile a go application, statically linking to QT5. I have statically compiled QT5. Now I need to compile my Go program.
As I understand it to do this, I have to use gccgo rather than the gc compiler. Fine.
So…
I am using Golang and cgo. When my C code raises an assert(), I am unable to see the stack trace of the C code when using cgo.
Instead, I see the stack trace of the golang runtime that caught the assert.
Here is an example of my C code
#include…
I has a prblem when I use gccgo to build static programe version
1> use go build
go build -compiler gccgo -gccgoflags '-static -L/lib64' test.go
result:
/usr/bin/ld: cannot find -lgo
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find…
I'm attempting to convert a go library to be called by C and I'm starting with a simple test (based on an example answering another question I found that worked) file but I'm getting errors when I try to build. I have a struct in C that I'm trying…
The source code is
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
The Object file is built without error
root@OpenWrt:/mnt/sda3# gccgo -v -c hello.go
Using built-in specs.
COLLECT_GCC=gccgo
Target:…
I'm trying to compile a Go app for linux/arm and keep running into problems on my Ubuntu machine. When I run GOOS=linux GOARCH=arm go build in my source directory, I get tons of erorrs that are variations of:
# github.com/huin/mqtt
gccgo: error:…