-
Notifications
You must be signed in to change notification settings - Fork 18k
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
syscall: add prlimit #59712
Comments
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
This is a problem that needs to be fixed in gccgo's Go library. |
how please ? |
Change https://go.dev/cl/486576 mentions this issue: |
@YallaPayInc You'll have to patch and rebuild gccgo's libgo library. The fix is https://go.dev/cl/486576. |
i uploaded patch file on project directory but still error exist |
@YallaPayInc To be clear, you are using gccgo, which is not the usual Go compiler. In order to use the patch, you will have to build and install a new version of gccgo. If you have not done that before, that is a difficult job. But if you have done that before, are you sure that you want to be using gccgo? Perhaps you should be using the default Go compiler, which is known as gc. |
i'm using it already g++ (Ubuntu 12.2.0-3ubuntu1) 12.2.0 |
i have path for gcc under usr/lib so is this correct path to add patch file for fix issue ? |
In order to apply the patch you must download the GCC sources, you must apply the patch to the GCC sources, and you must rebuild and reinstall GCC. If you have not done this before I do not recommend doing it today. It is difficult. |
regarding to this error message when compile Go project so i upload this files if you can help |
/usr/bin/ld: warning: helper.o: missing .note.GNU-stack section implies executable stack |
@ianlancetaylor I assigned this to you in triage, assuming that your CL is the fix and will close out the issue. |
As of https://go.dev/cl/476695 golang.org/x/sys/unix can call syscall.prlimit, so we need such a function in libgo. For golang/go#46279 Fixes golang/go#59712 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/486576
i have this issues when go run my project package
/usr/bin/ld: /root/.cache/go-build/b5/b57f729b94d703ef771f9fbc8d67eb3ffd7f44d5567a271fccd55d54c1a2cecf-d(go.o): in function `golang_0org_1x_1sys_1unix.Prlimit':
/root/go/pkg/mod/golang.org/x/sys@v0.7.0/unix/syscall_linux.go:1895: undefined reference to `syscall.prlimit'
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: