-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: unbootstrapped cross compiler doesn't emit helpful error anymore #9272
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
Comments
Either we teach cmd/go to also copy that file or treat the missing of that I'd prefer the former, because cmd/dist no longer generates any files for |
I would like to see |
On Thu, Dec 11, 2014 at 5:06 PM, Brad Fitzpatrick [email protected]
|
could we stop copying textflag.h to $GOROOT/pkg/$GOOS_$GOARCH, and instead put it In this way, even if the user can't write to $GOROOT/pkg, they can still use go build to |
I think it is reasonable if you (the developer) are going to set up a cross On Wed, Dec 31, 2014 at 12:21 PM, Minux Ma [email protected] wrote:
|
On Tue, Dec 30, 2014 at 9:35 PM, Dave Cheney [email protected]
Ideally, once you have the toolchain programs, building a one-shot program Even if you're using binary distributions, you should still be able to cross |
Fair enough, thanks for clarifying. If it really is as simple as ensuring On Fri, Jan 2, 2015 at 9:41 AM, Minux Ma [email protected] wrote:
|
We don't need to create a new internal package, I just can't think I've also considered always including those macros in cmd/[5689]a |
Does https://go-review.googlesource.com/#/c/6471/ address this? |
Yes. |
In Go 1.4 and before,
go build
would say$GOOS/$GOARCH must be bootstrapped using make.bash
because it would detect missing zasm files.In tip, we have zgoos files, which are created by
go generate
, so they always exist for all GOOS/GOARCH combinations.cmd/dist
, however, is still responsible for copyingtextflag.h
into the per-GOOS/GOARCHpkg/
directories. Building Go for a single platform and trying togo build
for a different platform now won't result in a helpful error, but instead the assembler won't be able to findtextflag.h
:Expected output:
Actual output:
Version:
This only affects tip, not Go 1.4.
The text was updated successfully, but these errors were encountered: