You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got a problem of cross compiling program based on gopacket :
the env of go is-------->
GOARCH="mips"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="mips-linux-gcc"
GOGCCFLAGS="-fPIC -mabi=32 -march=mips32 -pthread -fmessage-length=0"
CXX="mips-linux-g++"
CGO_ENABLED="1"
CGO_CFLAGS="-I/usr/include"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-L/root/Desktop/libpcap-1.9.0"
PKG_CONFIG="pkg-config"
the result of it is:
runtime/cgo
cc1: warnings being treated as errors
In file included from gcc_libinit.c:8:
/usr/include/pthread.h:675: Warning:‘regparm’ attribute directive ignored
/usr/include/pthread.h:687: Warning:‘regparm’ attribute directive ignored
/usr/include/pthread.h:732: Warning:‘regparm’ attribute directive ignored
I change the include path to "-I/root/Desktop/libpcap-1.9.0" ,the result is:
loading DWARF type: decoding dwarf section info at offset 0x157: unexpected opcode
I have no idea about that.Can u help me?: )
The text was updated successfully, but these errors were encountered:
I got a problem of cross compiling program based on gopacket :
the env of go is-------->
GOARCH="mips"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="mips-linux-gcc"
GOGCCFLAGS="-fPIC -mabi=32 -march=mips32 -pthread -fmessage-length=0"
CXX="mips-linux-g++"
CGO_ENABLED="1"
CGO_CFLAGS="-I/usr/include"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-L/root/Desktop/libpcap-1.9.0"
PKG_CONFIG="pkg-config"
the result of it is:
runtime/cgo
cc1: warnings being treated as errors
In file included from gcc_libinit.c:8:
/usr/include/pthread.h:675: Warning:‘regparm’ attribute directive ignored
/usr/include/pthread.h:687: Warning:‘regparm’ attribute directive ignored
/usr/include/pthread.h:732: Warning:‘regparm’ attribute directive ignored
I change the include path to "-I/root/Desktop/libpcap-1.9.0" ,the result is:
loading DWARF type: decoding dwarf section info at offset 0x157: unexpected opcode
I have no idea about that.Can u help me?: )
The text was updated successfully, but these errors were encountered: