-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
gollvm: reference to undefined identifier 'syscall.RUSAGE_SELF', while build grpc related package #41382
Comments
CC @thanm @cherrymui In gccgo |
I can't reproduce this -- works ok for me. As Ian mentions, syscall.RUSAGE_SELF is auto-generated as part of the build. If you examine your gollvm build area, you should see it here:
If not, it sounds as though something went haywire with your build. |
@thanm , I will check that tomorrow. |
@thanm , some related files are generated/built (see attachments) - but I don't see _RUSAGE_SELF inside sysinfo.go. But I do see it inside sysinfo.macros.txt . @thanm, @cherrymui : what should I check/investigate, during gollvm's rebuild process, to find out why it's not auto-generating properly ? Ivan |
I was able to compile by adding
to the source file, under a local package visibility. Ivan |
Thanks for posting the zip file with build artifacts. I can see the problem now; I'll send a patch shortly to address this. |
Change https://golang.org/cl/254941 mentions this issue: |
Finally. Looking forward to test it/rebuild llvm |
Add a few more explicit references to enumeration constants (RUSAGE_SELF, DT_UNKNOWN) in sysinfo.c to insure that their hosting enums are emitted into DWARF, when using a clang host compiler during the gollvm build. Updates golang/go#41382. Updates golang/go#41404. Change-Id: Id0ed7a82ae5dc98ccffa5269a7147e0171c9b0ea Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/254941 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Than McIntosh <thanm@google.com>
Add a few more explicit references to enumeration constants (RUSAGE_SELF, DT_UNKNOWN) in sysinfo.c to insure that their hosting enums are emitted into DWARF, when using a clang host compiler during the gollvm build. Updates golang/go#41382. Updates golang/go#41404. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/254941
This should be fixed now at head. Please reopen if not. |
Hi. I was building internals of linkerd and caught a bug, during the build phase, for a protobuf/grpc related package.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Required sources should be pulled and all packages should be compiled, using llvm-goc, as expected.
What did you see instead?
It seems that an error is related to func GetRusage() (rusage *Rusage) .
Ivan
The text was updated successfully, but these errors were encountered: