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

cmd/link: ld: warning: -no_pie is deprecated in new macOS version #55871

Closed
huanghy6268 opened this issue Sep 26, 2022 · 3 comments
Closed

cmd/link: ld: warning: -no_pie is deprecated in new macOS version #55871

huanghy6268 opened this issue Sep 26, 2022 · 3 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin
Milestone

Comments

@huanghy6268
Copy link

huanghy6268 commented Sep 26, 2022

refer to this comment but tigger another error -buildmode=pie not supported when -race is enabled when running go test -race -buildmode=pie, is there any suggestion to solve this problem?

@huanghy6268 huanghy6268 changed the title ld: warning: -no_pie is deprecated in new macOS version cmd/link: ld: warning: -no_pie is deprecated in new macOS version Sep 26, 2022
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Sep 26, 2022
@ZekeLu
Copy link
Contributor

ZekeLu commented Sep 26, 2022

See #20038 and #53539

@huanghy6268
Copy link
Author

huanghy6268 commented Sep 26, 2022

See #20038 and #53539

I see, it seems this combination is not available, can I change the value of buildmode to avoid this warning ld: warning: -no_pie is deprecated in new macOS version and pass -race as well?

@dmitshur
Copy link
Contributor

dmitshur commented Sep 26, 2022

I think this is a duplicate of #55112.

@dmitshur dmitshur closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2022
@dmitshur dmitshur added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 26, 2022
@dmitshur dmitshur added this to the Go1.20 milestone Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin
Projects
None yet
Development

No branches or pull requests

4 participants