Repository navigation
Port to plan9 (386, amd64, arm) - #855
Merged
Merged
Conversation
Plan 9's syscall package has no errno numbers, no Kill, Flock, Getrlimit, Stat_t or Umask, and four gem drivers do not build there. This adds the plan9 variants of every seam so `GOOS=plan9 go vet ./...` passes for 386, amd64 and arm. - Errno: Linux numbers and glibc strerror text on plan9 (the MRI undefined-name fallback), and a pure-Go string classification built from the Go standard library's own rules (syscall.ErrorString.Is, os/error_plan9.go), unit-tested on every platform. - Process.kill writes a note through os.(*Process).Signal; getrlimit and the other POSIX process calls raise NotImplementedError; File#flock raises NotImplementedError; File::Stat comes from syscall.Dir. - nats, kafka and parquet (nats.go, franz-go, apache/thrift do not build) become graceful modules: require works, the first operation raises NotImplementedError. Refs #832 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
plan9 joins the "compile on every target" matrix (vet, default and rbgo_core, for 386, amd64 and arm). The README states what works on plan9 and what raises, and that no CI lane runs anything on a Plan 9 kernel. Refs #832 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
errnoStrerror takes its starting text from errnoGoText (Go's own on every platform, glibc's table on plan9) instead of a platform branch that no host test could reach. Refs #832 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports rbgo to
plan9(386, amd64, arm), the lastgo tool dist listtarget it did not compile for.GOOS=plan9 go vet ./...passes for all three, for both the default andrbgo_corebuilds. Refs #832 (closed after the release is verified).Bibliography opened:
syscall/errors_plan9.go,syscall/syscall_plan9.go(ErrorString.Is,Errno,Note),os/error_plan9.go,os/exec_plan9.go,os/user/lookup_plan9.goandsyscall/dir_plan9.goin go1.27.3;errno.go's own account of MRI'sInit_syserr(undefined_error,set_syserr).Errno::X::Errnotakes the Linux value and the message glibc's wording (MRI's fallback for a name the platform lacks). A failed call is mapped to a class by the stdlib's own rules (syscall.ErrorString.Is,os/error_plan9.go), exactsyscalltexts first. An unrecognised string stays a plainSystemCallErrorwith its message. The table and rules are pure Go in a tag-free file, with a unit test that runs on every platform (including a check that the Linux table has exactly the host's names, and the host's values on Linux).Process.killwrites a note viaos.(*Process).Signal;getrlimitand the other POSIX process calls andFile#flockraiseNotImplementedError;File::Statfromsyscall.Dir;File.utime/lutime,umask, PStore lock and subprocess (/bin/rc -c) seams.compile on every target. No lane runs anything on a Plan 9 kernel; the README says so.syscall.Errnodirectly go througherrnoOfError/errIsErrno, which are the sameerrors.As/errors.Ison every other platform.Test plan
GOOS=plan9 GOARCH={386,amd64,arm} go vet ./...GOOS=plan9 go vet -tags rbgo_core ./...(amd64)-race, 100% coverage on linux and macOS (CI)🤖 Generated with Claude Code