Table of Contents
Go on NetBSD
Go on NetBSD is fairly stable on the architectures below. However, some bugs remain; see the issue tracker for details.
| Kernel version | Architectures | Initial support version | Final support version |
|---|---|---|---|
| 8.0 or above | amd64, arm, 386 | ||
| 7.0 through 7.1 | amd64, arm, 386 | Go 1.3 * | |
| 6.0 through 6.1 | amd64, arm, 386 | Go 1.3 * | Go 1.9.7 |
| 5.0 through 5.2 (EOL) | amd64, 386 | Go 1 | Go 1.2.2 |
* Go 1.5 or above is recommended.
Support for the arm64 architecture is a work in progress, see https://go.dev/issue/30824.
Go packages in pkgsrc
pkgsrc, the NetBSD package collection, contains up-to-date packages for released Go versions. The packages contain the version in the name (e.g. lang/go113) so that multiple versions can be installed in parallel. lang/go is a meta-package that always depends on the default go version.
Note that the go binary name is also installed with a version suffix. Install the pkgtools/pkg_alternatives package to get a go command symlink in your PATH.
There are a number of packages for software written in Go in pkgsrc. At the moment, module-based builds are experimental, and packages are built using a GOPATH layout.
Preparing NetBSD for Go
- install NetBSD (remember to install pkgsrc in the last step)
- install shells/bash and devel/git (do
make package-install cleanin/usr/pkgsrc/shells/bashand/usr/pkgsrc/devel/git.- Using binary packages:
pkgin install bash git
- Using binary packages:
AVX512 Articles AssemblyPolicy Benchmarks Blogs Books BoundingResourceUse CSSStyleGuide ChromeOS CodeReview CodeReviewComments CodeReviewConcurrency CodeTools Comments CommitMessage CommonMistakes CompilerOptimizations Conferences Configuring GoLand for WebAssembly Contributing to gopls CoreDumpDebugging Courses CreatingSubRepository CustomPprofProfiles Darwin DashboardBuilders Deprecated DesignDocuments Diagnostics Download build farm failed logs and debugging DragonFly BSD ErrorValueFAQ Errors ExperienceReports FileTreeDocumentation FreeBSD FromXToGo Frozen Fuzzing trophy case GOPATH Gardening GcToolchainTricks GccgoCrossCompilation GerritAccess GerritBot GithubAccess Go 1.10 Release Party Go 1.6 release party Go 1.8 Release Party Go Community Slides Go Release Cycle Go2 Go2ErrorHandlingFeedback Go2ErrorValuesFeedback Go2GenericsFeedback GoArm GoForCPPProgrammers GoGenerateTools GoGetProxyConfig GoGetTools GoMips GoStrings GoTalks GoUserGroups GoUsers Gomote Gopher HandlingIssues Home HostedContinuousIntegration How to ask for help HowToAsk IDEsAndTextEditorPlugins InstallFromSource InstallTroubleshooting InterfaceSlice InvalidFlag Iota Learn LearnConcurrency LearnErrorHandling LearnServerProgramming LearnTesting Linux LinuxKernelSignalVectorBug Livestreams LockOSThread MacOS12BSDThreadRegisterIssue MethodSets MinimumRequirements MinorReleases Mobile Modules MutexOrChannel NativeClient NetBSD NewSpeakers NoMeToo NoPlusOne NonEnglish OpenBSD PackagePublishing PanicAndRecover PerfDashboard Performance Plan9 Podcasts PortingPolicy PriorDiscussion Projects Proposals ProviderIntegration Questions Quiet Weeks Range RateLimiting ResearchPapers Resolving Problems From Modified Module Path Resources for slog SQLDrivers SQLInterface Screencasts SettingGOPATH SignalHandling SimultaneousAssignment SliceTricks SlowBots Solaris Spectre Spelling Style SuccessStories Switch TableDrivenTests TargetSpecific TestComments TestFailures Timeouts Training Ubuntu Watchflakes WebAccessibilityResourcesAndTips Well known struct tags WhyGo Windows WindowsBuild WindowsCrossCompiling WindowsDLLs X Repositories _Footer cgo golang tools gopherbot gopls integrator FAQ gopls heapdump13 heapdump14 heapdump15 through heapdump17 heapdump15