laher / goxc Goto Github PK
View Code? Open in Web Editor NEWa build tool for Go, with a focus on cross-compiling, packaging and deployment
a build tool for Go, with a focus on cross-compiling, packaging and deployment
When setting Windows specific LdFlags it overrides the PackageVersion setting which means my Windows builds don't get a version number.
"BuildSettings": {
"LdFlags": "-H windowsgui"
}
When I try to build my binaries with the following configuration:
{
"ArtifactsDest": "./binaries",
"Resources": {},
"PackageVersion": "1.0.0",
"FormatVersion": "0.8"
}
from this directory /home/fkalter/gopath/src/github.com/FreekKalter/gls
The zip files it creates has the following content:
gls_1.0_linux_386/
|
|- gls (the compiled exutable)
|- home
|- fkalter
|- gopath
|- src
|- github.com
|-FreekKalter
|- gls
|-README.md
How do i include the readme in the root of the zip file?
I'm trying to build a DEB for a really simple executable. Notice the .deb is 420 bytes, not many KB as I would expect. I am running on OSX 10.9.
~/src/inspeqtor (master=)$ goxc
[goxc] 2014/06/19 13:27:53 Working directory: '/Users/mikep/src/inspeqtor', Config name: 'default'
[goxc] 2014/06/19 13:27:53 Using Go root: /usr/local/Cellar/go/1.3/libexec
[goxc] 2014/06/19 13:27:53 Warning: could not find any main dirs: <nil>
[goxc] 2014/06/19 13:27:53 Running tasks: [go-vet go-test go-install xc codesign copy-resources archive-zip archive-tar-gz pkg-build rmbin downloads-page]
[goxc:go-vet] 2014/06/19 13:27:53 invoking '/usr/local/Cellar/go/1.3/libexec/bin/go vet ./...' from '/Users/mikep/src/inspeqtor'
[goxc:go-vet] 2014/06/19 13:27:53 Task go-vet succeeded
[goxc:go-test] 2014/06/19 13:27:53 invoking '/usr/local/Cellar/go/1.3/libexec/bin/go test ./...' from '/Users/mikep/src/inspeqtor'
? inspeqtor [no test files]
[goxc:go-test] 2014/06/19 13:27:54 Task go-test succeeded
[goxc:go-install] 2014/06/19 13:27:54 Task go-install succeeded
[goxc:xc] 2014/06/19 13:27:54 Parallelizing xc for 1 platforms, using max 3 of 4 processors
[goxc:xc] 2014/06/19 13:27:54 mainDirs : []
[goxc:xc] 2014/06/19 13:27:54 Task xc succeeded
[goxc:codesign] 2014/06/19 13:27:54 Task codesign succeeded
[goxc:copy-resources] 2014/06/19 13:27:54 resources: []
[goxc:copy-resources] 2014/06/19 13:27:54 Task copy-resources succeeded
[goxc:archive-zip] 2014/06/19 13:27:54 Task archive-zip succeeded
[goxc:archive-tar-gz] 2014/06/19 13:27:54 Parallelizing archive-tar-gz for 1 platforms, using max 3 of 4 processors
[goxc:archive-tar-gz] 2014/06/19 13:27:54 Artifact(s) archived to /Users/mikep/src/inspeqtor/output/1.0.0/inspeqtor_1.0.0_linux_amd64.tar.gz
[goxc:archive-tar-gz] 2014/06/19 13:27:54 Task archive-tar-gz succeeded
[goxc:pkg-build] 2014/06/19 13:27:54 Task pkg-build succeeded
[goxc:rmbin] 2014/06/19 13:27:54 Task rmbin succeeded
[goxc:downloads-page] 2014/06/19 13:27:54 Task downloads-page succeeded
~/src/inspeqtor (master=)$ ls -l output/1.0.0/
total 24
-rw------- 1 mikep staff 249 Jun 19 13:27 downloads.md
-rw-r--r-- 1 mikep staff 420 Jun 19 13:27 inspeqtor_1.0.0_amd64.deb
-rw-r--r-- 1 mikep staff 32 Jun 19 13:27 inspeqtor_1.0.0_linux_amd64.tar.gz
~/src/inspeqtor (master=)$ ls
conf.d inspeqtor.go inspeqtor.yml monitrun.txt output
~/src/inspeqtor (master=)$ ls -l
total 136
drwxr-xr-x 5 mikep staff 170 Jun 17 20:32 conf.d
-rw-r--r-- 1 mikep staff 1446 Jun 17 19:59 inspeqtor.go
-rw-r--r-- 1 mikep staff 32 Jun 16 13:12 inspeqtor.yml
-rw-r--r-- 1 mikep staff 61206 Jun 17 20:34 monitrun.txt
drwxr-xr-x 3 mikep staff 102 Jun 19 13:15 output
~/src/inspeqtor (master=)$ more .goxc.json
{
"ArtifactsDest": "output",
"Arch": "amd64",
"Os": "linux",
"PackageVersion": "1.0.0",
"ConfigVersion": "0.9"
}
When including a directory with many files (such as an HTML directory for a web app) the output becomes unusable as every file is listed (it appears) twice.
An option to not list every mapped file would be very useful.
It's really cool the way that you pass through ldflags
. It'd be great if we could specify other flags to export, perhaps as a map[string]string
of something like:
build_time: date +"%m-%d-%Y"
something_else: ....
Hey everyone. I ran into a little issue while trying to include a .goxc.json file a project of mine.
I started off with the example in the README.md, goxc -wc xc -GOARM=5
, then added filtering:
{
"Arch": "arm",
"Os": "linux",
"Tasks": [
"xc"
],
"TaskSettings": {
"xc": {
"GOARM": "5"
}
},
"ConfigVersion": "0.9"
}
which to me seemed like it should result in a config file such that subsequent calls of goxc
should generate armv5 binaries.
However what I ran into is that the toolchain is not built using GOARM=5, thus the binaries produced result in "Illegal Instruction" when run. Running GOARM=5 goxc
for the first toolchain build worked as expected, as well as adding task settings for the toolchain task:
"toolchain": {
"GOARM": "5"
}
I didn't see the toolchain task settings mentioned in the wiki, I just peeked at the code and played guess and check :)
To me this behavior seems a little odd. I know that explicitly calling goxc -t
will not use the .goxc.json settings in the current directory and instead use those from $HOME, but when goxc
implicitly builds the toolchain it uses the local settings. When using the local config, the intent can be determined via the xc task settings, so it feels strange that it continues without error to produce a toolchain that doesn't fulfill the local intent.
The other strange thing I noticed is that when using Go 1.2.2 it doesn't seem to have this behavior, so I am wondering if there is an upstream change such that a toolchain built with GOARM=6 (the default IIRC) cannot build GOARM=5 binaries.
Hi there, I love goxc! Full disclosure: I work for Travis CI. I submit this issue as an individual, not as a Travis representative. I noticed the note in the README about not really being tested on Mac, and wanted to present the option of testing on Travis with multi-os enabled such that tests can be run on linux/amd64 and darwin/amd64. Thoughts? ❤️
For gh, I tried to compile on Windows. I unzip the build artifact and all files have the prefix gh_0.24.2-snapshot_windows_386
. For example gh_0.24.2-snapshot_windows_386\gh.exe
. Other platforms don't have the problem.
See screenshot:
With go build
I can specify -o
to customize the name of the binary it builds:
go build -o my-awesome-project
Is there a way to achieve this with goxc
? (Apologies for the silly question!)
Hi,
we're using goxc at Gemnasium to create a xc executable of our command line client, and apparently the last release can't be installed on ubuntu:
dpkg: error processing archive gemnasium-toolbelt_0.2.6_amd64.deb (--install):
parsing file '/var/lib/dpkg/tmp.ci/control' near line 7 package 'gemnasium-toolbelt':
`Depends' field, invalid package name `${shlibs': must start with an alphanumeric character
Errors were encountered while processing:
gemnasium-toolbelt_0.2.6_amd64.deb
The previous version 0.2.5 was in december, and didn't have this issue.
Thanks,
Philippe
For users with multiple entries in $GOPATH, it uses the concatenated path as the output directory.
i.e. if you have GOPATH=/foo/bar:/baz/spaz, goxc will use the path "/foo/bar:/baz/spaz/bin/..." to save binaries.
The simple solution is in https://github.com/laher/goxc/blob/master/goxc.go, you can add a filepath.SplitList when you read GOPATH, and use the first one.
The correct solution is to use go/build, and examine p.Root. Appending 'bin' to this will get you what you want. This will also match the behaviour of the go tool.
After running this command:
goxc -tasks-="go-vet" -wc
My .goxc.json file looks like this:
{
"ArtifactsDest": "",
"TasksExclude": [
"go-vet"
],
"Arch": "386 amd64",
"Os": "windows",
"Resources": {
"Include": "config.json"
},
"PackageVersion": "1.2.1",
"FormatVersion": "0.6"
}
After running goxc in the same folder, I get this output:
[goxc] 2013/05/14 19:41:01 Working directory: '.', Config name: ''
[goxc] 2013/05/14 19:41:01 Warning!! Unrecognised Setting 'TasksExclude' (value [go-vet])
[goxc] 2013/05/14 19:41:01 Running tasks: [go-test go-install xc codesign copy-resources archive pkg-build rmbin downloa
ds-page]
Other properties of config file are loaded normally, since my main.VERSION variable is populated.
Platform: Windows 8, amd64
Go version: 1.1
OS: OSX 10.9
Toolchain: XCode 5.0.2
GCC on OSX is the llvm-gcc clang frontend, not the real GCC (I think my understanding is correct, please correct me if I'm wrong).
clang -print-libgcc-file-name
doesn't print the full path to libgcc which causes errors while compiling.
I worked around it by symlinking /usr/bin/gcc to my apple-gcc42 install from homebrew
To install apple-gcc42:
brew tap homebrew/versions
brew install apple-gcc42
Is there a way to specify the compiler to use via a flag? Maybe this would be the way to make goxc -t
work properly on OSX. Without having to do messy symlinking over system symlinks.
References:
https://code.google.com/p/go/source/detail?r=537555f45dcc
Homebrew/legacy-homebrew#17913
On a fresh 64-bit Go 1.1.2 installation on Windows 8, I get this terminal session (note the status of environment variables before and after building the toolchain):
PS C:\Users\Selvek\Dev\Go\src\github.com\sellweek\TOGY> goxc -version
goxc version: 0.8.x
build date: unknown
PS C:\Users\Selvek\Dev\Go\src\github.com\sellweek\TOGY> go env
set GOARCH=amd64
set GOBIN=
set GOCHAR=6
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Selvek\Dev\Go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set CC=gcc
set GOGCCFLAGS=-g -O2 -m64 -mthreads
set CGO_ENABLED=1
PS C:\Users\Selvek\Dev\Go\src\github.com\sellweek\TOGY> goxc -t
[goxc] 2013/11/01 22:16:48 Building toolchain, so getting config from HOME directory. To use current directory's config,
use the wd option (i.e. goxc -t -wd=.)
[goxc] 2013/11/01 22:16:50 user dir: C:\Users\Selvek
[goxc] 2013/11/01 22:16:50 Working directory: 'C:\Users\Selvek', Config name: 'default'
[goxc] 2013/11/01 22:16:50 Toolchain task only - not searching for main dirs
[goxc] 2013/11/01 22:16:50 Running tasks: [toolchain] on packages []
[goxc:toolchain] 2013/11/01 22:16:50 Please do NOT try to quit during a build-toolchain. This can leave your Go toolchai
n in a non-working state.
[goxc:toolchain] 2013/11/01 22:16:50 Invoking 'C:\Go\src\make.bat --no-clean' from C:\Go\src
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/cov
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/8l
cmd/8a
cmd/8c
cmd/8g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go
1 file(s) moved.
# Building packages and commands.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
unicode/utf16
sync
sort
io
syscall
container/heap
bytes
strings
bufio
path
text/tabwriter
hash
time
crypto/cipher
crypto
crypto/md5
hash/crc32
crypto/subtle
crypto/sha1
crypto/hmac
crypto/sha256
html
os
compress/bzip2
hash/adler32
container/list
strconv
math/rand
container/ring
path/filepath
os/signal
crypto/sha512
hash/crc64
net
reflect
regexp/syntax
io/ioutil
net/url
regexp
os/exec
fmt
encoding/binary
encoding/base64
crypto/aes
debug/dwarf
crypto/des
flag
go/token
text/template/parse
log
go/scanner
debug/elf
debug/macho
go/ast
debug/pe
text/template
encoding/json
encoding/xml
go/parser
go/doc
go/printer
compress/flate
math/big
go/build
cmd/cgo
go/format
cmd/api
cmd/fix
compress/gzip
crypto/elliptic
crypto/ecdsa
crypto/rand
crypto/rc4
crypto/rsa
crypto/dsa
encoding/asn1
crypto/x509/pkix
encoding/hex
encoding/pem
crypto/x509
crypto/tls
mime
net/textproto
mime/multipart
net/http
archive/zip
cmd/go
encoding/gob
expvar
index/suffixarray
html/template
runtime/pprof
text/scanner
cmd/vet
cmd/gofmt
net/http/pprof
cmd/godoc
cmd/yacc
archive/tar
compress/lzw
compress/zlib
database/sql/driver
database/sql
debug/gosym
encoding/ascii85
encoding/base32
encoding/csv
hash/fnv
image/color
image
image/draw
image/gif
image/jpeg
image/png
log/syslog
math/cmplx
net/http/cgi
net/http/cookiejar
net/http/httptest
net/http/httputil
net/http/fcgi
net/mail
net/rpc
net/smtp
os/user
runtime/cgo
net/rpc/jsonrpc
runtime/debug
# runtime/cgo
realgcc.exe: warning: '-x c' after last input file has no effect
realgcc.exe: no input files
runtime/race
testing
testing/iotest
testing/quick
[goxc:toolchain] 2013/11/01 22:17:17 Invoking 'C:\Go\src\make.bat --no-clean' from C:\Go\src
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/cov
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/8l
cmd/6l
cmd/8a
cmd/6a
cmd/8c
cmd/6c
cmd/8g
cmd/6g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go
pkg/runtime (windows/amd64)
1 file(s) moved.
# Building tools for local system. windows/386
runtime/cgo
# runtime/cgo
realgcc.exe: warning: '-x c' after last input file has no effect
realgcc.exe: no input files
[goxc:toolchain] 2013/11/01 22:17:28 Task toolchain succeeded
PS C:\Users\Selvek\Dev\Go\src\github.com\sellweek\TOGY> go env
set GOARCH=386
set GOBIN=
set GOCHAR=8
set GOEXE=.exe
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Selvek\Dev\Go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_386
set CC=gcc
set GOGCCFLAGS=-g -O2 -m32 -mthreads
set CGO_ENABLED=1
Using http://godoc.org/html/template you can easily render whatever file you like. With another cli flag users could provide their own template.
I'm running goxc -t
to build my toolchain, but subsequent builds of my project now take 10x longer:
➜ update_service git:(master) ✗ time GOPATH=/Users/leehambley/Projects/update_service go build -v *.go
github.com/mgutz/ansi
runtime/cgo
net
crypto/x509
net/textproto
mime/multipart
crypto/tls
net/http
command-line-arguments
GOPATH=/Users/leehambley/Projects/update_service go build -v *.go 1.78s user 0.64s system 101% cpu 2.389 total
The advice from #go-nuts
is "your compiler, and source directories don't match in versions"... recommended solution cd go/src; ./all.bash
That leaves me with the current situation:
[goxc:xc] 2013/08/01 09:03:45 'go' returned error: exit status 1
[goxc:xc] 2013/08/01 09:03:45 Error: exit status 1
[goxc:xc] 2013/08/01 09:03:45 Have you run `goxc -t` for this platform???
[goxc:xc] 2013/08/01 09:03:45 No successes!
[goxc:xc] 2013/08/01 09:03:45 Stopping after 'xc' failed with error 'exit status 1'
Is goxc bundling an older version those standard libraries? I'm using go 1.1.1
directly from Google's repository installed from source on the latest OSX?
I am the author of WeedFS, and used your tool to compile for version 0.31 for many platforms. It's great and thanks! However, seems the darwin and windows version do not work. I compiled it on linux. The linux version works well.
https://code.google.com/p/weed-fs/downloads/list
The goxc is up-to-date.
Hey im having some issue passing the -short flag to the go-test task. Looking in the code briefly Im not sure its possible right now. It would be super helpful for my build flow at the moment im just skipping the tests and running them independently. Anyway love the project let me know if I missed something.
I'm using godep to manage dependency. But it requires me to run godep go build
to build with my dependencies managed. I'm wondering if it makes sense to being able to run that as part of the goxc
build.
Thanks,
Owen
Hi,
I have a project that looks a bit like this:
main.go
templates/1.template
templates/2.template
templates/3.template
conf/config.json
I'd like the template and conf directories to end up in the final packaged tar.gz.
I've setup the following .goxc.json:
{
"PackageVersion": "1.0.0",
"PrereleaseInfo": "snapshot",
"ConfigVersion": "0.9",
"Resources": {
"Include": "conf,templates",
"Exclude": "*.go"
}
}
However, it seems when the tar.gz is built, it flattens it down to one single directory:
paul@macbook:/tmp$ tar xvzf /Users/paul/dev/go/bin/myproject-xc/1.0.0-snapshot/myproject_1.0.0-snapshot_linux_amd64.tar.gz
x myproject_1.0.0-snapshot_linux_amd64/myproject
x myproject_1.0.0-snapshot_linux_amd64/1.template
x myproject_1.0.0-snapshot_linux_amd64/2.template
x myproject_1.0.0-snapshot_linux_amd64/3.template
x myproject_1.0.0-snapshot_linux_amd64/config.json
Is there any way to preserve the directory structure with resource includes?
Thanks!
Is there a way to place other files, such as an init or install script, into the deb?
I was writing a very small program, which just a single file (package main) at ~/Desktop, then I tried goxc -d=dist
, it gave me some info:
goxc -d=dist
[goxc] 2014/02/07 20:56:10 Working directory: '/Users/Gizak/Desktop', Config name: 'default'
[goxc] 2014/02/07 20:56:10 Using Go root: /usr/local/go
[goxc] 2014/02/07 20:56:10 Found 'main package' dirs (len 1): [/Users/Gizak/Desktop]
[goxc] 2014/02/07 20:56:10 Running tasks: [go-vet go-test go-install xc codesign copy-resources archive-zip archive-tar-gz pkg-build rmbin downloads-page]
[goxc:go-vet] 2014/02/07 20:56:10 invoking '/usr/local/go/bin/go vet ./...' from '/Users/Gizak/Desktop'
go tool: no such tool "vet"; to install:
go get code.google.com/p/go.tools/cmd/vet
[goxc:go-vet] 2014/02/07 20:56:10 'go' returned error: exit status 3
[goxc:go-vet] 2014/02/07 20:56:10 Go-vet failed (goxc just treats this as a warning for now)
[goxc:go-vet] 2014/02/07 20:56:10 Task go-vet succeeded
[goxc:go-test] 2014/02/07 20:56:10 invoking '/usr/local/go/bin/go test -i ./...' from '/Users/Gizak/Desktop'
[goxc:go-test] 2014/02/07 20:56:10 Task go-test succeeded
[goxc:go-install] 2014/02/07 20:56:10 invoking '/usr/local/go/bin/go install -ldflags " -X main.BUILD_DATE '2014-02-07T20:56:10-05:00' -X main.VERSION 'unknown' "' from '/Users/Gizak/Desktop'
go install: no install location for directory /Users/Gizak/Desktop outside GOPATH
[goxc:go-install] 2014/02/07 20:56:10 'go' returned error: exit status 1
[goxc:go-install] 2014/02/07 20:56:10 Stopping after 'go-install' failed with error 'exit status 1'
And I was wondering, is goxc able to compile this way?
Currently the path to binaries is hard coded to /usr/bin/{{bin-name}}.
It would be nice to be able to specify a different prefix.
Unix/Linux users are used to tarballs containing only a single directory at their base (mirroring the name of the tarball). Goxc puts multiple files in the root, which is likely to ruffle some feathers.
Goxc's current behavior:
% tar tzf inbucket_20131001-snapshot_linux_386.tar.gz
inbucket
README.md
LICENSE
bin/dist-unix.sh
Conventional behavior:
% tar tzf inbucket_20131001-snapshot_linux_386.tar.gz
inbucket_20131001-snapshot_linux_386/inbucket
inbucket_20131001-snapshot_linux_386/README.md
inbucket_20131001-snapshot_linux_386/LICENSE
inbucket_20131001-snapshot_linux_386/bin/dist-unix.sh
I poked around to see if I could fix this myself, but I didn't see a way to get the proper name (sans .tar.gz extension) down to the archive.TarGz methods.
First of all, thank you very much for your work on this project. It if very helpful.
I have two config files:
.goxc.json
{
"PackageVersion": "0.2.1",
"PrereleaseInfo": "",
"ConfigVersion": "0.9",
"Os": "linux darwin",
"Resources": {
"Include": "INSTALL*,README*,LICENSE*,*.xml,config.json",
"Exclude": "*.go"
}
}
windows.gozxc.json
{
"Os": "windows",
"ConfigVersion": "0.9",
"BuildSettings": {
"LdFlags": "-H windowsgui"
}
}
In other words, I was expecting:
build -ldflags "-H windowsgui -X main.BUILD_DATE '2014-01-30T19:29:12-08:00' -X main.VERSION '0.2.1' "
goxc xc
would compile linux, darwin, and windows (with the appropriate windows specific LdFlag) but only linux and darwin are compiled.I worked around this by issuing two separate commands:
goxc -d=./public/ -c=windows xc
goxc -d=./public/ xc
Is this the best way to do this?
Thanks again for your hard work and am looking forward to your response.
I'm using godep to manage my dependencies. But the goxc build also include the Godeps folder during build. Is there a way to exclude it from build?
Build errors are:
[goxc:go-install] 2013/11/24 18:15:07 invoking '/opt/boxen/homebrew/Cellar/go/1.1.2/libexec/bin/go install' from '/Users/owen_ou/gocode/src/github.com/jingweno/gh/Godeps/_workspace/src/github.com/kr/text/mc'
mc.go:13:2: cannot find package "github.com/kr/pty" in any of:
/opt/boxen/homebrew/Cellar/go/1.1.2/libexec/src/pkg/github.com/kr/pty (from $GOROOT)
/Users/owen_ou/gocode/src/github.com/kr/pty (from $GOPATH)
[goxc:go-install] 2013/11/24 18:15:07 'go' returned error: exit status 1
[goxc:go-install] 2013/11/24 18:15:07 Stopping after 'go-install' failed with error 'exit status 1'
Hey @laher. I have recently changed to Mac from Linux. Running goxc
on https://github.com/pksunkara/whitespaces is not building the binaries. As you can see from the below output, goxc
is not bundling the binaries into the zip
files.
Can you fix it soon? Thanks.
pksunkara@apicave → make goxc
goxc
[goxc] 2015/04/02 02:23:06 Warning: could not establish list of source packages. Using working directory
[goxc] 2015/04/02 02:23:06 Warning: could not find any main dirs: <nil>
[goxc:go-vet] 2015/04/02 02:23:06 Task go-vet succeeded
? github.com/pksunkara/whitespaces [no test files]
[goxc:go-test] 2015/04/02 02:23:07 Task go-test succeeded
[goxc:go-install] 2015/04/02 02:23:07 Task go-install succeeded
[goxc:xc] 2015/04/02 02:23:07 Parallelizing xc for 22 platforms, using max 3 of 4 processors
[goxc:xc] 2015/04/02 02:23:07 Task xc succeeded
[goxc:codesign] 2015/04/02 02:23:07 Task codesign succeeded
[goxc:copy-resources] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:copy-resources] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:copy-resources] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:copy-resources] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:copy-resources] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:copy-resources] 2015/04/02 02:23:07 resources: [README.md LICENSE]
[goxc:copy-resources] 2015/04/02 02:23:07 Copying file /Users/pksunkara/Coding/pksunkara/whitespaces/README.md to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/README.md
[goxc:copy-resources] 2015/04/02 02:23:07 Copying file /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/LICENSE
[goxc:copy-resources] 2015/04/02 02:23:07 Task copy-resources succeeded
[goxc:archive-zip] 2015/04/02 02:23:07 Parallelizing archive-zip for 19 platforms, using max 3 of 4 processors
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_darwin_amd64.zip
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_darwin_386.zip
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_freebsd_386.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_freebsd_amd64.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_freebsd_arm.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_openbsd_386.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_openbsd_amd64.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_windows_386.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_windows_amd64.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_netbsd_386.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_netbsd_amd64.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_netbsd_arm.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_plan9_386.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_dragonfly_386.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_dragonfly_amd64.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_nacl_386.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_nacl_amd64p32.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_nacl_arm.zip
[goxc:archive-zip] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-zip] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-zip] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-zip] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_solaris_amd64.zip
[goxc:archive-zip] 2015/04/02 02:23:07 Task archive-zip succeeded
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Parallelizing archive-tar-gz for 3 platforms, using max 3 of 4 processors
[goxc:archive-tar-gz] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-tar-gz] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_linux_386.tar.gz
[goxc:archive-tar-gz] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-tar-gz] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_linux_amd64.tar.gz
[goxc:archive-tar-gz] 2015/04/02 02:23:07 IncludeGlobs: [INSTALL* README* LICENSE*]
[goxc:archive-tar-gz] 2015/04/02 02:23:07 ExcludeGlobs: [*.go]
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/README.md for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Globbing /Users/pksunkara/Coding/pksunkara/whitespaces/LICENSE for exclusion /Users/pksunkara/Coding/pksunkara/whitespaces/*.go
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Resources to include: [README.md LICENSE]
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Artifact(s) archived to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_linux_arm.tar.gz
[goxc:archive-tar-gz] 2015/04/02 02:23:07 Task archive-tar-gz succeeded
[goxc:deb] 2015/04/02 02:23:07 WARNING - no debian 'control' file found. Use `debber` to generate proper debian metadata
[goxc:deb] 2015/04/02 02:23:07 Wrote deb to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_i386.deb
[goxc:deb] 2015/04/02 02:23:07 WARNING - no debian 'control' file found. Use `debber` to generate proper debian metadata
[goxc:deb] 2015/04/02 02:23:07 Wrote deb to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_amd64.deb
[goxc:deb] 2015/04/02 02:23:07 WARNING - no debian 'control' file found. Use `debber` to generate proper debian metadata
[goxc:deb] 2015/04/02 02:23:07 Wrote deb to /Users/pksunkara/Coding/pksunkara/whitespaces/build/1.1.1/whitespaces_1.1.1_armhf.deb
[goxc:deb] 2015/04/02 02:23:07 Task deb succeeded
[goxc:deb-dev] 2015/04/02 02:23:07 WARNING - no debian 'control' file found. Use `debber` to generate proper debian metadata
[goxc:deb-dev] 2015/04/02 02:23:07 Task deb-dev succeeded
[goxc:rmbin] 2015/04/02 02:23:07 Task rmbin succeeded
[goxc:downloads-page] 2015/04/02 02:23:07 Task downloads-page succeeded
I was wondering whether anybody else has seen an HTTP 413 error when running the bintray plugin. I'm getting the following error:
[goxc:bintray] 2014/08/01 10:21:32 Not included: downloads.md (pattern *.zip,*.tar.gz,*.deb)
relative path rmq_0.2.57_amd64.deb, full path /home/travis/gopath/src/github.com/relops/rmq/build/0.2.57/rmq_0.2.57_amd64.deb
[goxc:bintray] 2014/08/01 10:21:32 Adding Header - Content-Length: 2778110
[goxc:bintray] 2014/08/01 10:21:33 Http response received
[goxc:bintray] 2014/08/01 10:21:33 Error code: 413 Request Entity Too Large
[goxc:bintray] 2014/08/01 10:21:33 Error body: Request Entity Too Large
[goxc:bintray] 2014/08/01 10:21:33 Stopping after 'bintray' failed with error 'Error code: 413, message: 413 Request Entity Too Large'
[goxc] 2014/08/01 10:21:33 RunTasks returned error Error code: 413, message: 413 Request Entity Too Large
It seems that the go-test task passes "-i" to go test.
-i
Install packages that are dependencies of the test.
Do not run the test.
If I intentionally break some unit tests and then run "goxc go-test", I get "Task go-test succeeded" and it doesn't seem to actually run the tests.
Here is the output of dpkg:
max@raspberrypi /tmp $ LANG=C sudo dpkg -i goup_0.1.0_armel.deb
dpkg: error processing goup_0.1.0_armel.deb (--install):
package architecture (armel) does not match system (armhf)
Errors were encountered while processing:
goup_0.1.0_armel.deb
I installed it afterwards with --force-architecture
and my tool ran just fine. You can download it here: http://dump.danjou.de/goup/0.1.0/
I am running goxc on https://github.com/pksunkara/alpaca for all platforms except plan9. The system just hangs after invoking the build tasks. Are you running them parallely?
Can you please do it sequentially?
Running them all individually succeeded in outputting the binaries.
I am just trying the goxc tool for the first time, and after goxc -t and goxc -tasks-=package on my program I get the following:
darwin_386/wam85: Mach-O 64-bit executable x86_64
darwin_amd64/wam85: Mach-O 64-bit executable x86_64
linux_386/wam85: Mach-O 64-bit executable x86_64
linux_amd64/wam85: Mach-O 64-bit executable x86_64
windows_386/wam85.exe: Mach-O 64-bit executable x86_64
windows_amd64/wam85.exe: Mach-O 64-bit executable x86_64
I am on darwin/amd64, and the go build tree is from this mornings hg checkout. I used a config like this to make the toolchain:
goxc -arch="386 amd64" -os="linux darwin windows" -wc
My Resources list includes an "etc" directory, inside that there is a "redhat-el6" directory with more files in it. The bintray task seems to handle the first level of directories fine, but then fails on the second level.
[goxc:bintray] 2013/09/13 15:33:54 Stopping after 'bintray' failed with error 'Put https://api.bintray.com//content/jhillyerd/golang/inbucket/0.1-snapshot/etc/redhat-el6: read /home/james/target/inbucket-xc/0.1-snapshot/etc/redhat-el6: is a directory'
I'd like to use bintray to publish .debs and OSX packages. Right now goxc is publishing into a generic bintray repo, which works for the OSX packages using homebrew. Bintray can also automatically generate metadata for apt-get, provided you denote the target repo as being of type Debian. So I was wondering if you can configure goxc to publish into multiple repos on bintray?
For reference, my current JSON config looks like this:
{
"ArtifactsDest": "build",
"Tasks": [
"xc", "package", "bintray"
],
"BuildConstraints": "darwin,linux",
"ConfigVersion": "0.9",
"TaskSettings" : {
"bintray" : {
"package" : "rmq",
"subject": "relops",
"repository": "rmq",
"downloadspage": "bintray.md"
}
}
}
One more request:
auto copy additional files, like config.ini
, folder with templates etc.
Would be best probably with some kind of config file.
[resources]
config.ini
templates/
Best regards,
Dobrosław Żybort
Hello! I'm having trouble when running goxc -bc="windows,386" -d=dist -q
with Go 1.4 in my project's folder (/home/nick/apps/project). Thank you in advance for looking at this!
Note: though it advices me to run goxc -t, I've already done that.
It returns the following (sorry for so long output):
nick@ubuntu:~/apps/project$ goxc -d=dist -bc="windows,386" -q
[goxc:xc] 2014/12/12 22:30:07 Toolchain not ready for {windows 386}. Re-building toolchain. (stat /home/nick/go/bin/windows_386/go.exe: no such file or directory)
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
cmd/8l
cmd/6a
cmd/8a
cmd/6c
cmd/8c
cmd/6g
cmd/8g
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
unicode/utf16
bytes
math
strings
strconv
bufio
sort
container/heap
encoding/base64
syscall
time
os
reflect
fmt
encoding
encoding/json
flag
path/filepath
path
io/ioutil
log
regexp/syntax
regexp
go/token
go/scanner
go/ast
go/parser
os/exec
os/signal
net/url
text/template/parse
text/template
go/doc
go/build
cmd/go
runtime (windows/386)
# Building packages and commands for host, linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sync
sort
io
syscall
hash
container/heap
encoding
unicode/utf16
hash/crc32
container/list
bytes
strings
bufio
text/tabwriter
time
path
crypto/subtle
crypto/cipher
crypto/hmac
internal/syscall
html
compress/bzip2
strconv
math/rand
hash/adler32
container/ring
hash/crc64
hash/fnv
image/color
image/color/palette
os
math/cmplx
reflect
regexp/syntax
crypto
crypto/md5
encoding/base64
path/filepath
net/url
io/ioutil
os/exec
regexp
crypto/aes
crypto/rc4
fmt
encoding/binary
crypto/sha1
crypto/sha256
crypto/sha512
crypto/des
encoding/pem
os/signal
cmd/pprof/internal/svg
encoding/ascii85
encoding/base32
image
index/suffixarray
runtime/race
cmd/internal/goobj
cmd/internal/rsc.io/arm/armasm
cmd/internal/rsc.io/x86/x86asm
debug/dwarf
debug/gosym
debug/plan9obj
debug/elf
debug/macho
debug/pe
flag
log
go/token
encoding/json
encoding/xml
go/scanner
cmd/internal/objfile
go/ast
text/template/parse
cmd/addr2line
compress/flate
go/parser
go/printer
text/template
compress/gzip
math/big
cmd/cgo
go/format
go/doc
cmd/fix
crypto/elliptic
go/build
encoding/asn1
crypto/ecdsa
crypto/rand
crypto/dsa
crypto/x509/pkix
crypto/rsa
encoding/hex
mime
net/http/internal
runtime/pprof
cmd/nm
cmd/gofmt
cmd/objdump
runtime/cgo
cmd/pack
cmd/pprof/internal/profile
html/template
cmd/pprof/internal/tempfile
cmd/yacc
archive/tar
cmd/pprof/internal/plugin
cmd/pprof/internal/report
cmd/pprof/internal/symbolizer
cmd/pprof/internal/symbolz
archive/zip
compress/lzw
compress/zlib
cmd/pprof/internal/commands
database/sql/driver
database/sql
cmd/pprof/internal/driver
encoding/csv
net
encoding/gob
image/draw
image/jpeg
image/gif
image/png
os/user
runtime/debug
testing
testing/iotest
testing/quick
text/scanner
crypto/x509
net/textproto
log/syslog
mime/multipart
net/mail
crypto/tls
net/http
net/smtp
cmd/go
cmd/pprof/internal/fetch
expvar
net/http/cgi
cmd/pprof
net/http/cookiejar
net/http/fcgi
net/http/httptest
net/http/httputil
net/http/pprof
net/rpc
net/rpc/jsonrpc
# Building packages and commands for windows/386.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sync
unicode/utf16
sort
io
syscall
hash
container/heap
encoding
hash/crc32
container/list
crypto/subtle
crypto/cipher
bytes
strings
bufio
text/tabwriter
time
path
crypto/hmac
html
compress/bzip2
hash/adler32
container/ring
hash/crc64
hash/fnv
image/color
log/syslog
runtime/race
strconv
math/rand
image/color/palette
math/cmplx
os
reflect
regexp/syntax
crypto
crypto/md5
encoding/base64
net/url
path/filepath
crypto/aes
io/ioutil
regexp
os/exec
crypto/rc4
crypto/sha1
crypto/sha256
crypto/sha512
encoding/pem
fmt
encoding/binary
net
os/signal
crypto/des
cmd/pprof/internal/svg
encoding/ascii85
encoding/base32
image
cmd/internal/goobj
cmd/internal/rsc.io/arm/armasm
cmd/internal/rsc.io/x86/x86asm
debug/dwarf
debug/gosym
debug/elf
debug/macho
debug/pe
debug/plan9obj
flag
log
go/token
cmd/internal/objfile
encoding/json
encoding/xml
go/scanner
go/ast
cmd/addr2line
text/template/parse
compress/flate
go/parser
go/printer
text/template
compress/gzip
math/big
encoding/hex
mime
cmd/cgo
go/format
go/doc
cmd/fix
crypto/elliptic
go/build
encoding/asn1
crypto/ecdsa
crypto/rand
crypto/rsa
crypto/dsa
crypto/x509/pkix
net/textproto
crypto/x509
mime/multipart
net/http/internal
runtime/pprof
cmd/nm
cmd/gofmt
crypto/tls
cmd/objdump
cmd/pack
cmd/pprof/internal/profile
net/http
html/template
cmd/pprof/internal/plugin
cmd/pprof/internal/tempfile
cmd/pprof/internal/symbolizer
cmd/pprof/internal/symbolz
cmd/yacc
archive/tar
cmd/pprof/internal/report
archive/zip
compress/lzw
compress/zlib
cmd/go
cmd/pprof/internal/fetch
database/sql/driver
cmd/pprof/internal/commands
database/sql
cmd/pprof/internal/driver
encoding/csv
encoding/gob
expvar
cmd/pprof
image/draw
image/gif
image/jpeg
image/png
index/suffixarray
net/http/cgi
net/http/cookiejar
net/http/fcgi
net/http/httptest
net/http/httputil
net/http/pprof
net/mail
net/rpc
net/smtp
os/user
runtime/debug
net/rpc/jsonrpc
testing
testing/iotest
testing/quick
text/scanner
---
Installed Go for windows/386 in /home/nick/go
Installed commands in /home/nick/go/path/bin
[goxc:xc] 2014/12/12 22:30:23 'go' returned error: exit status 1
[goxc:xc] 2014/12/12 22:30:23 Error: exit status 1
[goxc:xc] 2014/12/12 22:30:23 Have you run `goxc -t` for this platform (386,windows)???
[goxc:xc] 2014/12/12 22:30:23 Multiple errors (returning first one): [exit status 1]
[goxc:xc] 2014/12/12 22:30:23 Stopping after 'xc' failed with error 'exit status 1'
[goxc] 2014/12/12 22:30:23 RunTasks error: exit status 1
Providing necessary information
go env
GOARCH="amd64"
GOBIN="/home/nick/go/path/bin"
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/nick/go/path"
GORACE=""
GOROOT="/home/nick/go"
GOTOOLDIR="/home/nick/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
go version
go version go1.4 linux/amd64
Hello,
I've cross-compiled from Ubuntu 12.04 LTS to OpenBSD 5.4.
On OpenBSD I've got this error on execution:
runtime: panic before malloc heap initialized
fatal error: runtime: cannot reserve arena virtual address space
J.H
Would be nice to have some kind of config file, like .goxc
.
Then we can simply run goxc .
in project folder
destination = ./out/
zip = false
verbose = true
[platforms]
windows = 386
linux = amd64
Best regards,
Dobrosław Żybort
I used the pkg-source
task to build a source package so that I could upload to launchpad.
But, it's not working at all. I had to make some changes to debian/control
and debian/changelog
files to actually make it a valid source package.
Then came the failing builds. Here's the log
Main error being.
cd /build/buildd/whitespaces-1.0.0~1/src && find * -name '*.go' -exec dirname {} \; | xargs -n1 go install
/bin/sh: 1: cd: can't cd to /build/buildd/whitespaces-1.0.0~1/src
I would like to work with you to fix this issue and probably even build a launchpad task.
goxc
supports including resources to all builds with the Resources config. Is it easy to support including resources for an individual build? Say for Darwin.
The use case that I have is I need to attach some shell scripts to the Darwin builds which are packaged as tar.gz files. But the resources end up showing up in all builds (the shell scripts only apply for Darwin). Example see: https://github.com/jingweno/gh/releases/0.11.0.
Another problem I found with attaching resources is it can only attach files in the root directory, if I put the files in a subdirectory it will fail to include in the final build zip files. A sample config file:
"Resources": {
"Include": "INSTALL*,README*,LICENSE*,./subdir/gh.*",
"Exclude": "*.go"
}
Let me know if anything I could help.
Many thanks,
Owen
Please help me sort this out, thanks.
I had tried many combinations, for example:
goxc -os=linux -arch=amd64 -build-tags=zmq_2_x
# or
goxc -os=linux -arch=amd64 -build-ldflags=zmq_3_x
# or
goxc -os=linux -arch=amd64 -build-ccflags=zmq_3_x
# etc
And it always goes wrong.
[goxc] 2014/03/07 16:42:02 Working directory: '/Users/bom_d_van/Code/go/workspace/src/snippets/mygoxc', Config name: 'default'
[goxc] 2014/03/07 16:42:02 Using Go root: /usr/local/go
[goxc] 2014/03/07 16:42:02 Found 'main package' dirs (len 1): [/Users/bom_d_van/Code/go/workspace/src/snippets/mygoxc]
[goxc] 2014/03/07 16:42:02 Running tasks: [go-vet go-test go-install xc codesign copy-resources archive-zip archive-tar-gz pkg-build rmbin downloads-page]
[goxc:go-vet] 2014/03/07 16:42:02 invoking '/usr/local/go/bin/go vet ./...' from '/Users/bom_d_van/Code/go/workspace/src/snippets/mygoxc'
go tool: no such tool "vet"; to install:
go get code.google.com/p/go.tools/cmd/vet
[goxc:go-vet] 2014/03/07 16:42:02 'go' returned error: exit status 3
[goxc:go-vet] 2014/03/07 16:42:02 Go-vet failed (goxc just treats this as a warning for now)
[goxc:go-vet] 2014/03/07 16:42:02 Task go-vet succeeded
[goxc:go-test] 2014/03/07 16:42:02 invoking '/usr/local/go/bin/go test -i ./...' from '/Users/bom_d_van/Code/go/workspace/src/snippets/mygoxc'
[goxc:go-test] 2014/03/07 16:42:02 Task go-test succeeded
[goxc:go-install] 2014/03/07 16:42:02 invoking '/usr/local/go/bin/go install -ldflags zmq_3_x' from '/Users/bom_d_van/Code/go/workspace/src/snippets/mygoxc'
[goxc:go-install] 2014/03/07 16:42:02 Task go-install succeeded
[goxc:xc] 2014/03/07 16:42:02 Parallelizing xc for 1 platforms, using max 7 of 8 processors
[goxc:xc] 2014/03/07 16:42:02 mainDirs : [/Users/bom_d_van/Code/go/workspace/src/snippets/mygoxc]
[goxc:xc] 2014/03/07 16:42:02 building mygoxc for platform {linux amd64}.
[goxc:xc] 2014/03/07 16:42:02 specified env vars for 'go': [GOOS=linux GOARCH=amd64]
[goxc:xc] 2014/03/07 16:42:02 invoking '/usr/local/go/bin/go build -ldflags zmq_3_x -o /Users/bom_d_van/Code/go/workspace/src/snippets/mygoxc/snapshot/linux_amd64/mygoxc .' from '/Users/bom_d_van/Code/go/workspace/src/snippets/mygoxc'
# github.com/alecthomas/gozmq
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:18: undefined: Socket
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:18: undefined: SocketType
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:27: undefined: Socket
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:36: undefined: Socket
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:44: undefined: Socket
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:53: undefined: Socket
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:62: undefined: Socket
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:70: undefined: Socket
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:78: undefined: Socket
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:86: undefined: Socket
../../github.com/alecthomas/gozmq/zmqgen_2_2.go:86: too many errors
[goxc:xc] 2014/03/07 16:42:02 'go' returned error: exit status 2
[goxc:xc] 2014/03/07 16:42:02 Error: exit status 2
[goxc:xc] 2014/03/07 16:42:02 Have you run `goxc -t` for this platform (amd64,linux)???
[goxc:xc] 2014/03/07 16:42:02 Multiple errors (returning first one): [exit status 2]
[goxc:xc] 2014/03/07 16:42:02 Stopping after 'xc' failed with error 'exit status 2'
[goxc] 2014/03/07 16:42:02 RunTasks returned error exit status 2
I already run goxc -t
and I could use goxc to compile go programs that do not use gozmq.
I want to push through all the planned 'breaking changes' at once, for v0.6, so that after this I can concentrate on adding functionality.
The biggest change is to make goxc feel more like a build tool, by specifying task names as commandline args.
Note that I need to assess each of these further during the development.
Any feedback on this welcome.
goxc clean go-test compile archive
Keeping OS/Arch, because BuildConstraints can be a bit ungainly (esp because of using !s in commandline), although it is useful for more granular filtering.
Instead, just apply BuildConstraints after OS/Arch. no longer a 'breaking' change
I'm getting issues like below when trying to build 32 bit and 64 bit binaries on a 64 bit Windows:
Stderr: go build runtime: windows/386 must be bootstrapped using make.bat
I'm on Go 1.4.
I am using bintray task to upload automatically. My use case is to upload one binary for every platform. Works very well! Here are some improvements desired:
Now after uploading, I still need to manually click every file to make it show in the download list.
Sometimes, I made a tiny change right after uploading a new version. In order to replace the previously uploaded file, I need to manually delete each file, and then upload newer builds.
Here is my output, could anyone tell me what's going on here? Thanks in advance.
$ goex -t
[goxc] 2013/12/24 09:24:30 Building toolchain, so getting config from HOME directory. To use current directory's config, use the wd option (i.e. goxc -t -wd=.)
[goxc] 2013/12/24 09:24:30 user dir: /Users/bom_d_van
[goxc] 2013/12/24 09:24:30 Working directory: '/Users/bom_d_van', Config name: 'default'
[goxc] 2013/12/24 09:24:30 Setting GoRoot to /usr/local/go
[goxc] 2013/12/24 09:24:30 Go root: /usr/local/go
[goxc] 2013/12/24 09:24:30 Toolchain task only - not searching for main dirs
[goxc] 2013/12/24 09:24:30 Running tasks: [toolchain] on packages []
[goxc:toolchain] 2013/12/24 09:24:30 Please do NOT try to quit during a build-toolchain. This can leave your Go toolchain in a non-working state.
[goxc:toolchain] 2013/12/24 09:24:30 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_ljfTSu', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:30 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:30 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:30 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_YH6JmU', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:31 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:31 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:31 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_SWAfrT', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:31 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:31 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:31 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_sP2KUI', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:32 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:32 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:32 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_OkEYXj', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:32 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:32 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:32 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_4VdVLi', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:33 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:33 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:33 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_DUpI8i', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:33 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:33 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:33 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_QaARrN', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:34 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:34 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:34 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_jCjMR0', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:34 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:34 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:34 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_UsCqt0', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:35 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:35 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:35 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_JvPPMP', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:35 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:35 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:35 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_Lgjjph', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:36 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:36 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:36 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_MdWTcF', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:36 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:36 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:36 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_LDJAjw', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:37 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:37 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:37 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_IrlJMG', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:37 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:37 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:37 Invoking '/usr/local/go/src/make.bash --no-clean' from /usr/local/go/src
# Building C bootstrap tool.
cmd/dist
ld: can't open output file for writing 'cmd/dist/dist.ld_pwdRsC', errno=13 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[goxc:toolchain] 2013/12/24 09:24:38 Build Toolchain: wait error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:38 Error: exit status 1
[goxc:toolchain] 2013/12/24 09:24:38 No successes!
[goxc:toolchain] 2013/12/24 09:24:38 Stopping after 'toolchain' failed with error 'exit status 1'
I'm not sure if I'm doing something wrong... just trying to follow the instructions in the README. I've installed Go from source and it's working. When attempting go get github.com/laher/goxc
, the response indicates several missing files. I'm running Windows 8.1.
C:\Users\Corey\Documents\workspace\Experiments\goxc>go get github.com/laher/goxc
# github.com/laher/goxc/core
open src\github.com\laher\goxc\core\constants.go: No such file or directory
# github.com/laher/argo/ar
open src\github.com\laher\argo\ar\common.go: No such file or directory
# github.com/laher/goxc/typeutils
open src\github.com\laher\goxc\typeutils\mapstringinterfaceutils.go: No such file or directory
# github.com/debber/debber-v0.3/targz
open src\github.com\debber\debber-v0.3\targz\reader.go: No such file or directory
# github.com/laher/goxc/source
open src\github.com\laher\goxc\source\parser.go: No such file or directory
I'm hoping I just missed something easy.
...
[goxc:xc] 2014/04/02 17:24:35 Stopping after 'xc' failed with error 'The xc task will attempt to compile multiple binaries to the same path (/projectx/snapshot/linux_386/com.nroed.datawarehouse). Please make sure {{.Os}} and {{.Arch}} variables are used in the OutPath'
[goxc] 2014/04/02 17:24:35 RunTasks returned error The xc task will attempt to compile multiple binaries to the same path (/projectx/snapshot/linux_386/com.nroed.datawarehouse). Please make sure {{.Os}} and {{.Arch}} variables are used in the OutPath
I am getting x509 failed to load system roots and no roots provided
for Darwin builds. After some googling, I got to know I need to disable cgo (https://groups.google.com/forum/?fromgroups#!topic/golang-nuts/z9Q1wTZNR7k). But looks like cgo is already disabled when building the toolchain (the Go version is 1.1). Here's the log: https://drone.io/github.com/jingweno/gh/184
It seems that the AppName
configuration in .goxc.json
is not treated the same as the -n=...
command line flags.
If I run goxc -n=foobar xc pkg-build
then my output DEB is at ./build/1.0.0/foobar_1.0.0_amd64.deb
. However, if I run goxc -n=foobar -wc xc pkg-build
and then goxc xc pkg-build
then my output DEB is at ./build/1.0.0/X_1.0.0_amd64.deb
, where X
is the name of the current directory.
Hi Am,
I used https://gist.github.com/laher/5795578 to get rid of the error in issue 10 but got the aforementioned error in its place.
Do you know of a way to resolve this issue?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.