go 1.9时编译报了点错:

decoder.DisallowUnknownFields undefined (type *json.Decoder has no field or method DisallowUnknownFields)

DisallowUnknownFields 是go 1.10开始支持的。索性升级到目前最新go 1.11

结果编译报错

/usr/local/go/pkg/tool/linux_amd64/link: signal: killed

不出意外的是内存不够了。

[17100245.930976] Out of memory: Kill process 29642 (link) score 390 or sacrifice child
[17100245.932301] Killed process 29642 (link) total-vm:583272kB, anon-rss:508192kB, file-rss:0kB, shmem-rss:0kB
[17100245.981540] oom_reaper: reaped process 29642 (link), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

ccj 于 1 个月前 修改
0 回复
需要 登录 后方可回复, 如果你还没有账号你可以 注册 一个帐号。