go build报错

wodeme · · 2129 次点击 · 开始浏览    置顶
这是一个创建于 的主题,其中的信息可能已经有所发展或是发生改变。

一个正常的项目中,使用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 `

有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

2129 次点击  
加入收藏 微博
1 回复  |  直到 2019-04-06 17:26:38
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传