出现问题:
Build Error : go build - o /${path}/ __debug_bin1678338702 -gcflags #aruntime / cgo
_cgo_export.C:6: warning: ignoring # pragma GCC diagnostic
_cgo_export.c:7: warning: ignoring # pragma GCC diagnostic
_cgo_export.c:8: warning: ignoring # pragma GCC diagnostic ( exit status 2 )
解决方法:
go env -w CC="/opt/compiler/gcc-8.2/bin/gcc"
go env -w CXX="/opt/compiler/gcc-8.2/bin/g++"