Trying to install goxc for go cross-compilation. I've compiled go from sources as described in docs at golang.org. Now I'm trying to do go get, but getting unrecognized import path errors...
C:\Program Files (x86)\PowerCmd>go get github.com/laher/goxc
package archive/tar: unrecognized import path "archive/tar"
package archive/zip: unrecognized import path "archive/zip"
package bufio: unrecognized import path "bufio"
package bytes: unrecognized import path "bytes"
...
Env variables seems to be ok...
C:\Program Files (x86)\PowerCmd>go env
set GOARCH=386
set GOBIN=E:\Go\bin
set GOCHAR=8
set GOEXE=.exe
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=E:\Go
set GORACE=
set GOROOT=E:\Go\bin
set GOTOOLDIR=E:\Go\bin\pkg\tool\windows_386
set TERM=dumb
set CC=gcc
set GOGCCFLAGS=-g -O2 -m32 -mthreads
set CXX=g++
set CGO_ENABLED=1
What's wrong, what do you think?
I've tried to run go get -v github.com/laher/goxc, maybe it could help..
C:\Program Files (x86)\PowerCmd>go get -v github.com/laher/goxc
import "archive/tar": import path doesn't contain a hostname
package archive/tar: unrecognized import path "archive/tar"
import "archive/zip": import path doesn't contain a hostname
package archive/zip: unrecognized import path "archive/zip"
import "bufio": import path doesn't contain a slash
package bufio: unrecognized import path "bufio"
import "bytes": import path doesn't contain a slash
package bytes: unrecognized import path "bytes"
import "compress/gzip": import path doesn't contain a hostname
...