golang/go

x/sys/plan9: function Exit causes build failure

开放

#78,506 创建于 2026年4月2日

 (6 条评论) (0 个反应) (0 位负责人)Go (19,008 个派生)batch import
BugReportNeedsInvestigationOS-Plan9help wanted

仓库指标

星标
 (133,883 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

package main

import "golang.org/x/sys/plan9"

func main() { plan9.Exit(0) }

This doesn't build

$ GOARCH=amd64 GOOS=plan9 go build
# test
golang.org/x/sys/plan9.exit: relocation target syscall.exit not defined

plan9.Exit calls plan9.exit, which is an assembly stub that jumps to syscall.exit. But there is no syscall.exit in the syscall package on Plan 9.

If the function is not needed (as it clearly doesn't work so nobody is using it), we probably can delete it. If it is needed for some reason, it could just call syscall.Exit, in Go code, not assembly.

cc @golang/plan9

贡献者指南