Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dyld: Symbol not found: _utimensat #50855

Closed
hopehook opened this issue Jan 27, 2022 · 5 comments
Closed

dyld: Symbol not found: _utimensat #50855

hopehook opened this issue Jan 27, 2022 · 5 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@hopehook
Copy link
Member

What version of Go are you using (go version)?

if i installed go1.17.6.darwin-amd64.pkg

$ go version
go version go1.17.6 darwin/amd64

if i installed go1.18beta1.darwin-amd64.pkg

$ go version
dyld: Symbol not found: _utimensat
  Referenced from: /usr/local/go/bin/go
  Expected in: flat namespace

[1]    95321 abort      go version

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

if i installed go1.17.6.darwin-amd64.pkg

go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/myname/Library/Caches/go-build"
GOENV="/Users/myname/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/myname/lab/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/myname/lab/go:/Users/myname/work/code:/Users/myname/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.6"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/xc/x_k35ynn063c15716c0d_5pm0000gn/T/go-build335607442=/tmp/go-build -gno-record-gcc-switches -fno-common"

if i installed go1.18beta1.darwin-amd64.pkg

$ go env   
dyld: Symbol not found: _utimensat
  Referenced from: /usr/local/go/bin/go
  Expected in: flat namespace

[1]    95562 abort      go env

What did you do?

I download unstable version go1.18beta1.darwin-amd64.pkg from https://go.dev/dl/, and installed it to my mac.
When i run go version command, it show me that failed message.

What did you expect to see?

go version go1.18 darwin/amd64

What did you see instead?

dyld: Symbol not found: _utimensat

@cherrymui
Copy link
Member

What version of macOS do you use? Thanks.

@mknyszek mknyszek added this to the Go1.18 milestone Jan 27, 2022
@mknyszek mknyszek added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jan 27, 2022
@hopehook
Copy link
Member Author

What version of macOS do you use? Thanks.

macOS 10.12.5

@cherrymui
Copy link
Member

Go 1.17 requires macOS 10.13 or later, see https://go.dev/doc/go1.17#darwin

@mikowiec
Copy link

It was OK with go1.17.7 and macOS SIerra 10.12.6.

After upgrade go to 1.18.beta2 the same issue observed.

Please fix it, due impossible to buy a new mac for golang.

Thank in advance.

@ianlancetaylor
Copy link
Member

@mikowiec I'm sorry, we have to be able to move forward somehow. macOS 10.12 is no longer supported by Apple, and we no longer support it either.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

6 participants