laher / goxc

a build tool for Go, with a focus on cross-compiling, packaging and deployment
1.68k stars 79 forks source link

Does not seem to pre-build necessary tools? #72

Closed natefinch closed 9 years ago

natefinch commented 9 years ago

See output here: http://pastebin.ubuntu.com/11724808/ (enhanced with better error reporting from PR #71)

Key line seems to be: 'go' returned error: Wait error: exit status 1: go build runtime: windows/amd64 must be bootstrapped using make.bash

I thought running goxc -t was optional? FWIW, I'm running go 1.4.2 from source in a pretty standard environment on Ubuntu.

After I run goxc -t, it works fine.

laher commented 9 years ago

Sorry - breaking change: automatically rebuilding toolchain was removed recently. It caused lots of subtle problems for different users. I just updated the readme.

Note that this problem will go away in August with Go1.5 (you won't need to build the toolchain any more come Go1.5).

If you want, you can still switch auto-rebuild-toolchain back on by reconfiguring the xc task with "validateToolchain": "true" and "autoRebuildToolchain": "true" (using TaskSettings in the config file, or even commandline options).

e.g. in .goxc.json

{
    "Tasks": [
        "default"
    ],
    "TaskSettings": {
        "xc": {
            "validateToolchain": "true",
            "autoRebuildToolchain": "true"
        }
    },
    "ConfigVersion": "0.9"
}
natefinch commented 9 years ago

Cool, thanks. Yeah, when I looked again, I noticed the default tasks didn't include building the toolchain. Fair enough. Changing the readme is all that was really needed.

On Tue, Jun 16, 2015 at 2:51 PM Am Laher notifications@github.com wrote:

Sorry - breaking change: automatically rebuilding toolchain was removed recently. It caused lots of subtle problems for different users. I just updated the readme.

Note that this problem will go away in August with Go1.5 (you won't need to build the toolchain any more come Go1.5).

If you want, you can still switch auto-rebuild-toolchain back on by reconfiguring the xc task with "validateToolchain": "true" and "autoRebuildToolchain": "true" (using TaskSettings in the config file, or even commandline options).

e.g. in .goxc.json

{ "Tasks": [ "default" ], "TaskSettings": { "xc": { "validateToolchain": "true", "autoRebuildToolchain": "true" } }, "ConfigVersion": "0.9" }

— Reply to this email directly or view it on GitHub https://github.com/laher/goxc/issues/72#issuecomment-112527331.