之前未安装的 icecc 在编译 go 时出现了剩余的部分。

huangapple go评论80阅读模式
英文:

Remainders of previously uninstalled icecc present when compiling go

问题

在我安装了icecc(分布式编译器)的Linux机器上,我现在使用apt purge命令将其移除了。
当我启动一个简单的Go程序时,我会得到以下编译器输出:

└─$ go run .
# runtime/cgo
ICECC[32220] 2023-03-01 22:07:53: 发生异常错误 24 - 远程主机 192.168.0.106 无法处理环境 (192.168.0.106)
# runtime/cgo
ICECC[33408] 2023-03-01 22:07:54: flush_writebuf() 失败(错误:管道中断)
ICECC[33408] 2023-03-01 22:07:54: 远程状态:编译器未启动
ICECC[33408] 2023-03-01 22:07:54: 将源代码块写入主机 192.168.0.106
ICECC[33408] 2023-03-01 22:07:54: 失败(错误:管道中断)
ICECC[33408] 2023-03-01 22:07:54: 发生异常错误 15 - 写入主机失败 (192.168.0.106)
# runtime/cgo
[...]

这个Go程序能够正常编译和启动。
有趣的是,错误输出的日期和时间与执行go run .命令的时间不匹配。

我该如何摆脱这些烦人的消息?

英文:

On a linux machine I had icecc (distributed compiler) installed, which is now removed with apt purge.
When I start a simple go program I get the following compiler output:

└─$ go run .
# runtime/cgo
ICECC[32220] 2023-03-01 22:07:53: got exception Error 24 - remote 192.168.0.106 unable to handle environment (192.168.0.106)
# runtime/cgo
ICECC[33408] 2023-03-01 22:07:54: flush_writebuf() failed(Error: Broken pipe)
ICECC[33408] 2023-03-01 22:07:54: remote status: compiler did not start
ICECC[33408] 2023-03-01 22:07:54: write of source chunk to host 192.168.0.106
ICECC[33408] 2023-03-01 22:07:54: failed (Error: Broken pipe)
ICECC[33408] 2023-03-01 22:07:54: got exception Error 15 - write to host failed (192.168.0.106)
# runtime/cgo
[...]

The go program compiles starts as expected.
Interestingly, the date and time of the error output do not match the time when the go run . command was started.

How can I get rid of the annoying messages?

答案1

得分: 1

我成功通过删除~/.cache/go-build文件夹来解决了这些消息。

英文:

I managed to get rid of the messages by deleting the
~/.cache/go-build folder

huangapple
  • 本文由 发表于 2023年3月6日 16:19:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/75648491.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定