Closed ghj1976 closed 2 years ago
这是 github.com/mattn/go-sqlite3 的bug
Happening to me too
happening to me too
I haven't updated yet to run into this but cannot get a clear output on the ld -v
to get the exact version:
@(#)PROGRAM:ld PROJECT:ld64-764
BUILD 11:22:55 Apr 28 2022
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
LTO support using: LLVM version 13.1.6, (clang-1316.0.21.2.5) (static support for 28, runtime is 28)
TAPI support using: Apple TAPI version 13.1.6 (tapi-1316.0.7.3)
As of 2.39 the -no-pie
field isn't deprecated but this is GNU ld so I guess it's a misomer.
I haven't done a manual link to verify but my guess is that the warning is getting propagated from the ld call. The relevant darwin/arm64 logic for the params can be seen on this commit although I don't know how should the linker frontend proceed with this
Sam over here :(
See also #54482 . Although it has some discussion about another issue, but there are already some discussion about this. Closing as a dup. Thanks.
Also note that this is a warning, not an error. The build should still succeed and the generated program should work. (Although it affects some tests that checks build output.)
its only a warning but its annoying, how do we disable it?
@ollolollollooloo See https://github.com/golang/go/issues/54482#issuecomment-1251124908
Pudieron resolver este inconveniente ld: warning: -no_pie is deprecated when targeting new OS versions
?
golang版本升级到1.18.8 或者1.19.3 即可解决 Upgrade the version of golang to 1.18.8 or 1.19.3 to solve the problem
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
macOS Monterey 12.6
Xcode Version 14.0 (14A309)