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/go: using -gccgo fails if .c file has same name as directory #8828
Labels
Milestone
Comments
"2.go" will be compiled successfully if change the name of failed2/failed2.c to anything other than the package name. "3.go" will be compiled successfully in many way, include * change the package name, remove the part of "3.0" or * remove any line in the failed-3.0/a.c or failed-3.0/a.go |
The problem is that failed1/empty.go is compiled to failed1.o, and failed1/failed1.c is also compiled to failed1.o, and so one of them is lost. This doesn't happen with gc because failed1/empty.go is compiled to failed1.6, not failed1.o. The work around for now is to not use the same name for the directory and the file. Labels changed: added repo-main, release-go1.4maybe. Status changed to Accepted. |
Thanks for your explanation. I can't describe it exactly. But the "1.go" and "3.go" has the different error message, they both hasn't the same source file as package name. So the issues's title is not good The trivial "1.go" was write only for test willfully, We can ignore it at this time. The "3.go" is the problem I have encountered and I can't find a work around now. |
You're right, the problem with 3.go is a different, unrelated, problem, and is http://gcc.gnu.org/PR61880; there is a link to a possible patch there. |
CL https://golang.org/cl/154410043 mentions this issue. |
This issue was closed by revision 343d113. Status changed to Fixed. |
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jun 25, 2018
…ng conflicts Fixes golang#8828. LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/154410043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jun 26, 2018
…ng conflicts Fixes golang#8828. LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/154410043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jul 9, 2018
…ng conflicts Fixes golang#8828. LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/154410043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jul 30, 2018
…ng conflicts Fixes golang#8828. LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/154410043
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by Snyh1010:
Attachments:
The text was updated successfully, but these errors were encountered: