Skip to content

build time warnings under macOS 12.1 #16

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

Closed
georgexsh opened this issue Dec 19, 2021 · 1 comment
Closed

build time warnings under macOS 12.1 #16

georgexsh opened this issue Dec 19, 2021 · 1 comment
Labels
invalid This doesn't seem right

Comments

@georgexsh
Copy link

georgexsh commented Dec 19, 2021

go build outputs warnings, but clipboard.Read works:

ld: warning: object file (/var/folders/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-link-3048299529/000003.o) was built for newer macOS version (12.0) than being linked (11.3)
ld: warning: object file (/var/folders/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-link-3048299529/000004.o) was built for newer macOS version (12.0) than being linked (11.3)
ld: warning: object file (/var/folders/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-link-3048299529/000005.o) was built for newer macOS version (12.0) than being linked (11.3)
ld: warning: object file (/var/folders/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-link-3048299529/000006.o) was built for newer macOS version (12.0) than being linked (11.3)
ld: warning: object file (/var/folders/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-link-3048299529/000007.o) was built for newer macOS version (12.0) than being linked (11.3)
ld: warning: object file (/var/folders/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-link-3048299529/000008.o) was built for newer macOS version (12.0) than being linked (11.3)
ld: warning: object file (/var/folders/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-link-3048299529/000009.o) was built for newer macOS version (12.0) than being linked (11.3)
ld: warning: object file (/var/folders/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-link-3048299529/000010.o) was built for newer macOS version (12.0) than being linked (11.3)
ld: warning: object file (/var/folders/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-link-3048299529/000011.o) was built for newer macOS version (12.0) than being linked (11.3)

my go env:

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/georgexsh/Library/Caches/go-build"
GOENV="/Users/georgexsh/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/georgexsh/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/georgexsh/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.17.5/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.17.5/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.5"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/georgexsh/workspace/wasteland/alfred-timestamp/go.mod"
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/9g/pvy9xv2s2s1grjl7x55dw3hr0000gn/T/go-build4136004347=/tmp/go-build -gno-record-gcc-switches -fno-common"
@georgexsh georgexsh changed the title build time warnings under macOS build time warnings under macOS 12.1 Dec 19, 2021
@georgexsh
Copy link
Author

tried to install the latest go from source via brew install go --HEAD, those warnings disappeared.

ref golang/go#43856 (comment)

@changkun changkun added the invalid This doesn't seem right label Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants