一个正常的项目中,使用go build是没有问题
但在使用go build -gcflags "all=-N -l"命令出现报错
之前使用没有问题,在更新来下vscode的插件,不清楚是那个插件导致问题
错误信息如下:
runtime.strequal: relocation target runtime.memequal not defined for ABIInternal (but is defined for ABI0) runtime.cgocall: relocation target runtime.asmcgocall not defined for ABIInternal (but is defined for ABI0) runtime.cgoCheckWriteBarrier: relocation target runtime.systemstack not defined for ABIInternal (but is defined for ABI0) runtime.cgoCheckTypedBlock: relocation target runtime.systemstack not defined for ABIInternal (but is defined for ABI0) runtime.cgoCheckUsingType: relocation target runtime.morestackc not defined for ABI0 (but is defined for ABIInternal) runtime.(TypeAssertionError).Error: relocation target runtime.memequal not defined for ABIInternal (but is defined for ABI0) runtime.panicwrap: relocation target internal/bytealg.IndexByteString not defined for ABIInternal (but is defined for ABI0) runtime.memhash: relocation target runtime.aeshash not defined for ABIInternal (but is defined for ABI0) runtime.(itab).init: relocation target runtime.memequal not defined for ABIInternal (but is defined for ABI0) runtime.lock: relocation target runtime.procyield not defined for ABIInternal (but is defined for ABI0) runtime.notesleep: relocation target runtime.asmcgocall not defined for ABIInternal (but is defined for ABI0) runtime.notetsleep_internal: relocation target runtime.asmcgocall not defined for ABIInternal (but is defined for ABI0) runtime.(*mheap).sysAlloc: relocation target runtime.memmove not defined for ABIInternal (but is defined for ABI0) runtime.mallocgc: relocation target runtime.publicationBarrier not defined for ABIInternal (but is defined for ABI0) runtime.mallocgc: relocation target runtime.memclrNoHeapPointers not defined for ABIInternal (but is defined for ABI0) runtime.mallocgc: relocation target runtime.systemstack not defined for ABIInternal (but is defined for ABI0) runtime.persistentalloc: relocation target runtime.systemstack not defined for ABIInternal (but is defined for ABI0) runtime.persistentalloc1: relocation target runtime.morestackc not defined for ABI0 (but is defined for ABIInternal) runtime.typedmemmove: relocation target runtime.memmove not defined for ABIInternal (but is defined for ABI0) runtime.typedslicecopy: relocation target runtime.memmove not defined for ABIInternal (but is defined for ABI0) runtime.memclrHasPointers: relocation target runtime.memclrNoHeapPointers not defined for ABIInternal (but is defined for ABI0) /usr/local/go/pkg/tool/darwin_amd64/link: too many errors
`