x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
cgocgo是ARM二进制文件,gofix和gofmt也是ARM二进制文件。我想,如果我提供$GOHOSTOS/$GOHOSTARCH变量,我会交叉编译我的应用程序吗?如何让cgo为ARM目标工作?
+0x34): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared+0xb5): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared+0x34): warning: Using 'getgrgid_r' in statically li
':
C:/workdir/go/src/runtime/cgo/gcc_libinit_windows.c:12: undefined reference to `__imp___iob_func'C:/workdir/go/src/runtime/cgo/gcc_libinit_windows.c:12:(.text+0x6): relocation truncated to fi
我在试着测试cgo代码。pkg\tool\windows_amd64 set GOGCCFLAGS=-m64-mthreads -fmessage-length=0 set CGO_ENABLED=1
# runtime/cgo C:\Users\hyoon\AppData\Local\Temp\go-build779392087\runtime\cgo
但在最近的mac更新之后,我得到了以下错误: # runtime/cgoIn file included from /usr/local/go/src/runtime/cgo/libcgo.h:7:
/usr/local/include/stdio.h:220:5: error: 'TARGET_OS_IPHONE&
/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?/go1.4/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?runtime