Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T tor-browser-build
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 195
    • Issues 195
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Applications
  • tor-browser-build
  • Issues
  • #40464

go 1.18 fails to build on macOS

@pierov ran into this issue while we were attempting to build alpha 11.5a8:

Opening log file: Thu Mar 17 19:08:27 2022
Starting build (script: build): 2022-03-17 19:08:28
# golang.org/x/sys/unix
unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:136:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:151:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:166:3: //go:linkname must refer to declared function or variable
unix/zsyscall_darwin_amd64.go:166:3: too many errors
Finishing build (script: build): 2022-03-17 19:08:33
Build time: 0 hours 0 minutes and 5 seconds

Some initial googling points us to: https://stackoverflow.com/questions/71507321/go-upgrade-to-1-18-go-build-run-with-error-my-system-is-mac-12

In the meantime I've reverted the go update on the alpha branch until we can investigate/implement a fix.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking