unsupported GOARCH sparc
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package build
const goosList = "android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows "
const goarchList = "386 amd64 amd64p32 arm arm64 ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32le ppc s390 s390x sparc sparc64 "
// ArchChar returns the architecture character for the given goarch.
// For example, ArchChar("amd64") returns "6".
func ArchChar(goarch string) (string, error) {
switch goarch {
case "386":
return "8", nil
case "amd64":
return "6", nil
case "arm":
return "5", nil
}
return "", errors.New("unsupported GOARCH " + goarch)
}
Why aren't using the go tool from the 1.4 release and GCC 5?
For that matter, GCC 5 includes its own version of the go tool anyhow that should work fine on Solaris SPARC.
When developing something new, is there a reason to work with 1.2 sources?
> The file which contains the error message is from go-release-branch.go1.2,
> located at src/pkg/go/build/build.go, though I am not sure how this is
> handled in the newest code either, since sparc is still not a valid GOARCH
> with an ArchChar as far as I know. I tried just throwing something in their
> to get it to return something else but no dice
>
>> // ArchChar returns the architecture character for the given goarch.
>> // For example, ArchChar("amd64") returns "6".
>> func ArchChar(goarch string) (string, error) {
>> switch goarch {
>> case "386":
>> return "8", nil
>> case "amd64":
>> return "6", nil
>> case "arm":
>> return "5", nil
>> }
>> return "", errors.New("unsupported GOARCH " + goarch)
>> }
What change did you make to this function? I would expect that that is where the error message is coming from.
// auto generated by go tool dist
package main
const defaultCC = `gcc`
const defaultCXX = `g++`
# gccgo -o go.bin testflag.go test.go get.go main.go run.go tool.go build.go env.go help.go match_test.go vcs.go clean.go fix.go http.go version.go discovery.go fmt.go list.go pkg.go vet.go signal.go go11.go signal_unix.go zdefaultcc.go -lnsl -lsocket -lthread -lpthread -lrt -static-libgcc -Wall -Werror -static-libgo
case "sparc":
return "", nil
func ArchChar(goarch string) (string, error) {
switch goarch {
case "386":
return "8", nil
case "amd64", "amd64p32":
return "6", nil
case "arm":
return "5", nil
case "arm64":
return "7", nil
case "ppc64", "ppc64le":
return "9", nil
}
return "", errors.New("unsupported GOARCH " + goarch)
}
# gccgo -o go.bin alldocs.go build.go clean.go context.go discovery.go doc.go env.go fix.go fmt.go generate_test.go generate.go get.go go11.go help.go http.go list.go main.go match_test.go note.go pkg_test.go pkg.go run.go signal_unix.go signal.go tag_test.go test.go testdata testflag.go testgo.go tool.go vcs_test.go vcs.go version.go vet.go zdefaultcc.go -lnsl -lsocket -lthread -lpthread -lrt -static-libgcc -Wall -Werror -static-libgo
pkg.go:270:53: error: reference to undefined identifier 'build.ImportComment'
bp, err := buildContext.Import(path, srcDir, build.ImportComment)
^
vcs.go:12:23: error: import file 'internal/singleflight' not found
"internal/singleflight"
^
vcs.go:637:28: error: expected package
var fetchGroup singleflight.Group
^
build.go:785:44: error: reference to undefined field or method 'PkgTargetRoot'
pkgs := readpkglist(filepath.Join(p.build.PkgTargetRoot, shlib))
^
build.go:927:22: error: reference to undefined field or method 'PkgTargetRoot'
plibdir := p.build.PkgTargetRoot
^
build.go:1609:38: error: reference to undefined field or method 'PkgTargetRoot'
inc = append(inc, flag, a1.p.build.PkgTargetRoot)
^
pkg.go:111:22: error: reference to undefined field or method 'ImportComment'
p.ImportComment = pp.ImportComment
^
pkg.go:124:15: error: reference to undefined field or method 'MFiles'
p.MFiles = pp.MFiles
^
pkg.go:275:33: error: reference to undefined field or method 'ImportComment'
if err == nil && !isLocal && bp.ImportComment != "" && bp.ImportComment != path {
^
pkg.go:275:59: error: reference to undefined field or method 'ImportComment'
if err == nil && !isLocal && bp.ImportComment != "" && bp.ImportComment != path {
^
pkg.go:276:72: error: reference to undefined field or method 'ImportComment'
err = fmt.Errorf("code in directory %s expects import %q", bp.Dir, bp.ImportComment)
^
# gccgo -c build.go build_test.go deps_test.go doc.go read_test.go read.go syslist_test.go syslist.go
Hoping that explicitly providing the .o file explicitly would help find those references, but including this in the build did not fix the problem either.
Any clue about where I should go from here?
Thanks,
JSo
# gccgo -o go.bin alldocs.go build.go clean.go context.go discovery.go doc.go env.go fix.go fmt.go generate_test.go generate.go get.go go11.go help.go http.go list.go main.go match_test.go note.go pkg_test.go pkg.go run.go signal_unix.go signal.go tag_test.go test.go testflag.go testgo.go tool.go vcs_test.go vcs.go version.go vet.go zdefaultcc.go -lnsl -lsocket -lthread -lpthread -lrt -static-libgcc -Wall -Werror -static-libgo
Undefined first referenced
symbol in file
go.singleflight.Do.pN21_go.singleflight.Group /var/tmp//cc9KCZZS.o
go.build.SrcDirs.pN16_go.build.Context /var/tmp//cc9KCZZS.o
go.build.Default /var/tmp//cc9KCZZS.o
go.build.ArchChar /var/tmp//cc9KCZZS.o
go.build.IsCommand.pN16_go.build.Package /var/tmp//cc9KCZZS.o
go.build.ToolDir /var/tmp//cc9KCZZS.o
go.build.Error.pN18_go.build.NoGoError /var/tmp//cc9KCZZS.o
__go_td_pN18_go.build.NoGoError /var/tmp//cc9KCZZS.o
go.build.IsLocalImport /var/tmp//cc9KCZZS.o
go.build.ImportDir.pN16_go.build.Context /var/tmp//cc9KCZZS.o
__go_td_pN16_go.build.Package /var/tmp//cc9KCZZS.o
go.build..import /var/tmp//cc9KCZZS.o
go.build.ImportDir /var/tmp//cc9KCZZS.o
go.build.Import.pN16_go.build.Context /var/tmp//cc9KCZZS.o
ld: fatal: symbol referencing errors. No output written to go.bin
# gccgo -c build.go build_test.go deps_test.go doc.go read_test.go read.go syslist_test.go syslist.go
# gccgo -o go.bin testflag.go test.go get.go main.go run.go tool.go build.go env.go help.go match_test.go vcs.go clean.go fix.go http.go version.go discovery.go fmt.go list.go pkg.go vet.go signal.go go11.go signal_unix.go zdefaultcc.go -lnsl -lsocket
Undefined first referenced
symbol in file
go.build.SrcDirs.pN16_go.build.Context /var/tmp//cc4BVjxs.o
go.build.Default /var/tmp//cc4BVjxs.o
go.build.ArchChar /var/tmp//cc4BVjxs.o
__go_td_pN16_go.build.Context /var/tmp//cc4BVjxs.o
go.build.IsCommand.pN16_go.build.Package /var/tmp//cc4BVjxs.o
go.build.ToolDir /var/tmp//cc4BVjxs.o
__go_td_pN18_go.build.NoGoError /var/tmp//cc4BVjxs.o
go.build.IsLocalImport /var/tmp//cc4BVjxs.o
go.build.ImportDir.pN16_go.build.Context /var/tmp//cc4BVjxs.o
__go_td_pN16_go.build.Package /var/tmp//cc4BVjxs.o
go.build..import /var/tmp//cc4BVjxs.o
go.build.ImportDir /var/tmp//cc4BVjxs.o
go.build.Import.pN16_go.build.Context /var/tmp//cc4BVjxs.o
ld: fatal: symbol referencing errors. No output written to go.bin
pkgutil -i libmpfr4 libmpfr-dev libgmp-dev libgmp10 libgmpxx4 gcc4core
# gccgo -c singleflight.go singleflight_test.go
# gccgo -c build.go build_test.go deps_test.go doc.go read_test.go read.go syslist_test.go syslist.go
build.go: //"go/build"
context.go: //"go/build"
get.go: //"go/build"
main.go: //"go/build"
pkg.go: //"go/build"
test.go: //"go/build"
tool.go: //"go/build"
// auto generated by go tool dist
package main
const defaultCC = `gcc`
const defaultCXX = `g++`
gccgo -o go.bin alldocs.go build.go clean.go context.go discovery.go doc.go env.go fix.go fmt.go generate_test.go generate.go get.go go11.go help.go http.go list.go main.go match_test.go note.go pkg_test.go pkg.go run.go signal_unix.go signal.go tag_test.go test.go testflag.go testgo.go tool.go vcs_test.go vcs.go version.go vet.go zdefaultcc.go ../../go/build/build.o ../../internal/singleflight/singleflight.o -lnsl -lsocket -lthread -lpthread -lrt -static-libgcc -Wall -Werror -static-libgo
# file go.bin
go.bin: ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped
~/hello_world # go build .
main.go:3:8: cannot find package "fmt" in any of:
/opt/csw/src/fmt (from $GOROOT)
/home/user/go/src/fmt (from $GOPATH)
package .
imports runtime: cannot find package "runtime" in any of:
/opt/csw/src/runtime (from $GOROOT)
/home/user/go/src/runtime (from $GOPATH)
% find / -name "fmt.gox"
/opt/csw/lib/sparcv9/go/4.9.0/sparc-sun-solaris2.10/fmt.gox
/opt/csw/lib/go/4.9.0/sparc-sun-solaris2.10/fmt.gox
% uname -a
SunOS hostname 5.10 Generic_150400-16 sun4v sparc sun4v
pkgutil -i gcc4core lzip xz libgccpp1 libcpptest_dev libcpptest0 libisl10 libcloog_isl4 gcc4g++
tar xvf mpc-1.0.3.tar.gz mpfr-3.1.2.tar.xz gmp-6.0.0a.tar.lz isl-0.14.tar.bz2 gcc-5.1.0.tar.bz2
cd gmp-6.0.0
mkdir -p /opt/app/gmp6
./configure --build=sparc-sun-solaris2.10 --prefix=/opt/app/gmp6
cd ../mpfr-3.1.2
mkdir /opt/app/mpfr3
setenv LDFLAGS "-L/opt/app/gmp6/lib -R/opt/app/gmp6/lib”
wget http://www.mpfr.org/mpfr-current/allpatches
/opt/csw/gnu/patch -N -Z -p1 < allpatches
./configure --build=sparc-sun-solaris2.10 --prefix=/opt/app/mpfr3 --with-gmp=/opt/app/gmp6
gmake install
setenv LDFLAGS “"
cd ../mpc-1.0.3
mkdir /opt/app/mpc1
setenv LDFLAGS "-L/opt/app/gmp6/lib -R/opt/app/gmp6/lib -L/opt/app/mpfr3/lib -R/opt/app/mpfr3/lib”
./configure --build=sparc-sun-solaris2.10 --prefix=/opt/app/mpc1 --with-mpfr=/opt/app/mpfr3 --with-gmp=/opt/app/gmp6
gmake install
setenv LDFLAGS “"
cd ../isl-0.14
mkdir /opt/app/isl
./configure --with-gmp-prefix=/opt/app/gmp6 --disable-shared --enable-static --prefix=/opt/app/isl
gmake -j 8
gmake install
unset LDFLAGS
cd ..
vi links_to_make.sh
chmod +x links_to_make.sh
./links_to_make.sh
% cat links_to_make.sh
#! /bin/bash
ln -s /opt/app/gmp6/lib/libgmp.a /opt/app/gcc51/lib/math/libgmp.a
ln -s /opt/app/gmp6/lib/libgmp.la /opt/app/gcc51/lib/math/libgmp.la
ln -s /opt/app/gmp6/lib/libgmp.so /opt/app/gcc51/lib/math/libgmp.so
ln -s /opt/app/gmp6/lib/libgmp.so.10 /opt/app/gcc51/lib/math/libgmp.so.10
ln -s /opt/app/gmp6b/libgmp.so.10.2.0 /opt/app/gcc51/lib/math/libgmp.so.10.2.0
ln -s /opt/app/mpfr3/lib/libmpfr.a /opt/app/gcc51/lib/math/libmpfr.a
ln -s /opt/app/mpfr3/lib/libmpfr.la /opt/app/gcc51/lib/math/libmpfr.la
ln -s /opt/app/mpfr3/lib/libmpfr.so /opt/app/gcc51/lib/math/libmpfr.so
ln -s /opt/app/mpfr3/lib/libmpfr.so.4 /opt/app/gcc51/lib/math/libmpfr.so.4
ln -s /opt/app/mpfr3/lib/libmpfr.so.4.1.2 /opt/app/gcc51/lib/math/libmpfr.so.4.1.2
ln -s /opt/app/mpc1/lib/libmpc.a /opt/app/gcc51/lib/math/libmpc.a
ln -s /opt/app/mpc1/lib/libmpc.la /opt/app/gcc51/lib/math/libmpc.la
ln -s /opt/app/mpc1/lib/libmpc.so /opt/app/gcc51/lib/math/libmpc.so
ln -s /opt/app/mpc1/lib/libmpc.so.3 /opt/app/gcc51/lib/math/libmpc.so.3
ln -s /opt/app/mpc1/lib/libmpc.so.3.0.0 /opt/app/gcc51/lib/math/libmpc.so.3.0.0
cd gcc-5.1.0
mkdir -p /opt/app/gcc51/lib/math
mkdir objdir
cd objdir
../configure --build=sparc-sun-solaris2.10 --with-mpc=/opt/app/mpc1 --with-mpfr=/opt/app/mpfr3 --with-gmp=/opt/app/gmp6 --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-shared --enable-nls --disable-multilib --enable-languages=c,c++,go,objc --prefix=/opt/app/gcc51 --with-stage1-ldflags="-Wl,-rpath=/opt/app/gcc51/lib/math,-rpath=/opt/csw/lib -static-libstdc++" --with-boot-ldflags="-Wl,-rpath=/opt/app/gcc51/lib/math,-rpath=/opt/csw/lib -static-libstdc++" --with-build-time-tools=/opt/csw/gnu --enable-objc-gc --enable-threads=posix --enable-libssp --with-included-gettext --with-isl=/opt/app/isl
gmake -j 12 > make.out
gmake install
ln -s /opt/app/gcc51/lib/libgo.so.7 /opt/csw/lib
setenv PATH /opt/app/gcc51/bin:$PATH
setenv GOPATH ~/go
cd ~/go/src/github.com/user/hello
go install .
hello.go:3:8: cannot find package "fmt" in any of:
/opt/app/gcc51/src/fmt (from $GOROOT)
/home/user/go/src/fmt (from $GOPATH)
package github.com/user/hello
imports runtime: cannot find package "runtime" in any of:
/opt/app/gcc51/src/runtime (from $GOROOT)
/home/user/go/src/runtime (from $GOPATH)
ln -s /home/user/golang/go-master/src /opt/app/gcc51/src
% go install .
import cycle not allowed
package github.com/user/hello
imports fmt
imports errors
imports runtime
imports unsafe
imports runtime
% /opt/app/gcc51/bin/gccgo -c hello.go
% /opt/app/gcc51/bin/gccgo -o hello hello.o
% ./hello
Hello World
% go list -f '{{join .Deps "\n"}}' .
fmt
runtime
% go list -f '{{join .DepsErrors "\n"}}'
template: main:1:7: executing "main" at <.DepsErrors>: wrong type for value; expected []string; got []*main.PackageError
GOARCH="sparc"
GOBIN=""
GOCHAR=""
GOEXE=""
GOHOSTARCH="sparc"
GOHOSTOS="solaris"
GOOS="solaris"
GOPATH="/home/user/go"
GORACE=""
GOROOT="/opt/app/gcc51"
GOTOOLDIR="/opt/app/gcc51/libexec/gcc/sparc-sun-solaris2.10/5.1.0"
CC="/opt/app/gcc51/bin/gcc"
GOGCCFLAGS="-fPIC -fmessage-length=0"
CXX="/opt/app/gcc51/bin/g++"
CGO_ENABLED="0"
Hi Ian,I am not setting $GOROOT in the shell environment, that is the go tool doing that.I DO have a directory under $GOROOT/src called "runtime" and another one called "unsafe". If those are not there then I get the following error:# go install -compiler gccgo .
hello.go:3:8: cannot find package "fmt" in any of:
/opt/app/gcc51/src/fmt (from $GOROOT)
/home/user/go/src/fmt (from $GOPATH)
package github.com/user/hello
imports runtime: cannot find package "runtime" in any of:
/opt/app/gcc51/src/runtime (from $GOROOT)
/home/user/go/src/runtime (from $GOPATH)
As I mentioned it is the above error that lead me to link the src directory from the golang/go repo under my GOROOT so that it could find the fmt package when I run the code. But this seems incorrect. It seems like it should use the fmt.gox file from the pkg source rather than requiring the source code for the fmt package, which appears to be what its looking for.Once I make that link from to GOROOT/src it all errors out like
>> % go install .
>> import cycle not allowed
>> package github.com/user/hello
>> imports fmt
>> imports errors
>> imports runtime
>> imports unsafe
>> imports runtime
A gmake of a more complex package errors out like this:import "bufio": import path does not contain a slash
package bufio: unrecognized import path "bufio"
import "bytes": import path does not contain a slash
package bytes: unrecognized import path "bytes"
import "compress/lzw": import path does not begin with hostname
package compress/lzw: unrecognized import path "compress/lzw"
import "crypto": import path does not contain a slash
package crypto: unrecognized import path "crypto"
import "crypto/aes": import path does not begin with hostname
package crypto/aes: unrecognized import path "crypto/aes"
import "crypto/cipher": import path does not begin with hostname
package crypto/cipher: unrecognized import path "crypto/cipher"
import "crypto/dsa": import path does not begin with hostname
package crypto/dsa: unrecognized import path "crypto/dsa"
import "crypto/ecdsa": import path does not begin with hostname
package crypto/ecdsa: unrecognized import path "crypto/ecdsa"
import "crypto/elliptic": import path does not begin with hostname
package crypto/elliptic: unrecognized import path "crypto/elliptic"
import "crypto/hmac": import path does not begin with hostname
package crypto/hmac: unrecognized import path "crypto/hmac"
import "crypto/md5": import path does not begin with hostname
package crypto/md5: unrecognized import path "crypto/md5"
import "crypto/rand": import path does not begin with hostname
package crypto/rand: unrecognized import path "crypto/rand"
import "crypto/rsa": import path does not begin with hostname
package crypto/rsa: unrecognized import path "crypto/rsa"
import "crypto/sha1": import path does not begin with hostname
package crypto/sha1: unrecognized import path "crypto/sha1"
import "crypto/sha256": import path does not begin with hostname
package crypto/sha256: unrecognized import path "crypto/sha256"
import "crypto/sha512": import path does not begin with hostname
package crypto/sha512: unrecognized import path "crypto/sha512"
import "crypto/x509": import path does not begin with hostname
package crypto/x509: unrecognized import path "crypto/x509"
import "encoding/base32": import path does not begin with hostname
package encoding/base32: unrecognized import path "encoding/base32"
import "encoding/base64": import path does not begin with hostname
package encoding/base64: unrecognized import path "encoding/base64"
import "encoding/binary": import path does not begin with hostname
package encoding/binary: unrecognized import path "encoding/binary"
import "encoding/hex": import path does not begin with hostname
package encoding/hex: unrecognized import path "encoding/hex"
import "encoding/json": import path does not begin with hostname
package encoding/json: unrecognized import path "encoding/json"
import "errors": import path does not contain a slash
package errors: unrecognized import path "errors"
import "flag": import path does not contain a slash
package flag: unrecognized import path "flag"
import "fmt": import path does not contain a slash
package fmt: unrecognized import path "fmt"
import "runtime": import path does not contain a slash
package runtime: unrecognized import path "runtime"
import "io": import path does not contain a slash
package io: unrecognized import path "io"
import "log": import path does not contain a slash
package log: unrecognized import path "log"
import "math": import path does not contain a slash
package math: unrecognized import path "math"
import "net": import path does not contain a slash
package net: unrecognized import path "net"
import "os": import path does not contain a slash
package os: unrecognized import path "os"
import "os/signal": import path does not begin with hostname
package os/signal: unrecognized import path "os/signal"
import "strings": import path does not contain a slash
package strings: unrecognized import path "strings"
import "sync": import path does not contain a slash
package sync: unrecognized import path "sync"
import "syscall": import path does not contain a slash
package syscall: unrecognized import path "syscall"
import "time": import path does not contain a slash
package time: unrecognized import path "time"
import "net/rpc": import path does not begin with hostname
package net/rpc: unrecognized import path "net/rpc"
import "reflect": import path does not contain a slash
package reflect: unrecognized import path "reflect"
import "sort": import path does not contain a slash
package sort: unrecognized import path "sort"
import "unicode": import path does not contain a slash
package unicode: unrecognized import path "unicode"
import "unicode/utf8": import path does not begin with hostname
package unicode/utf8: unrecognized import path "unicode/utf8"
import "log/syslog": import path does not begin with hostname
package log/syslog: unrecognized import path "log/syslog"
import "unsafe": import path does not contain a slash
package unsafe: unrecognized import path "unsafe"
import "hash": import path does not contain a slash
package hash: unrecognized import path "hash"
import "math/big": import path does not begin with hostname
package math/big: unrecognized import path "math/big"
import "math/rand": import path does not begin with hostname
package math/rand: unrecognized import path "math/rand"
import "strconv": import path does not contain a slash
package strconv: unrecognized import path "strconv"
import "text/scanner": import path does not begin with hostname
package text/scanner: unrecognized import path "text/scanner"
import "sync/atomic": import path does not begin with hostname
package sync/atomic: unrecognized import path "sync/atomic"
import "io/ioutil": import path does not begin with hostname
package io/ioutil: unrecognized import path "io/ioutil"
import "regexp": import path does not contain a slash
package regexp: unrecognized import path "regexp"
import "os/exec": import path does not begin with hostname
package os/exec: unrecognized import path "os/exec"
import "path/filepath": import path does not begin with hostname
package path/filepath: unrecognized import path "path/filepath"
Makefile:12: recipe for target 'deps' failed
gmake: *** [deps] Error 1Which looks like the go command is just not able to import of figure out the import paths correctly.Does that help?
Thanks,JSo
> I am not setting $GOROOT in the shell environment, that is the go tool doing
> that.
OK.
> I DO have a directory under $GOROOT/src called "runtime" and another one
> called "unsafe".
OK, you should not have those.
If those are not there then I get the following error:
>
>> # go install -compiler gccgo .
>> hello.go:3:8: cannot find package "fmt" in any of:
>> /opt/app/gcc51/src/fmt (from $GOROOT)
>> /home/
>> user
>> /go/src/fmt (from $GOPATH)
>> package github.com/user/hello
>> imports runtime: cannot find package "runtime" in any of:
>> /opt/app/gcc51/src/runtime (from $GOROOT)
>> /home/
>> user
>> /go/src/runtime (from $GOPATH)
That makes no sense to me at all. I don't see anything like that.
What are the contents of the generated file zstdpkglist in your libgo
build directory? That should list "fmt" and "runtime" as standard
packages, which should prevent that error from being reported.
package main
var stdpkg = map[string]bool{
}
timestamp
# /opt/csw/bin/go-5.2 build hello.go
hello.go:3:8: cannot find package "fmt" in any of:
/opt/csw/src/fmt (from $GOROOT)
/home/jsonstro/go/src/fmt (from $GOPATH)
package runtime: cannot find package "runtime" in any of:
/opt/csw/src/runtime (from $GOROOT)
/home/jsonstro/go/src/runtime (from $GOPATH)
import cycle not allowed
package fmt
imports errors
imports runtime
imports unsafe
imports runtime
~/go/src/golang.org/x/tour # /opt/csw/bin/go-5.2 get -x golang.org/x/tour/gotour
package bufio: unrecognized import path "bufio"
package bytes: unrecognized import path "bytes"
package crypto/rand: unrecognized import path "crypto/rand"
package crypto/sha1: unrecognized import path "crypto/sha1"
package crypto/tls: unrecognized import path "crypto/tls"
package encoding/base64: unrecognized import path "encoding/base64"
package encoding/binary: unrecognized import path "encoding/binary"
package encoding/json: unrecognized import path "encoding/json"
package errors: unrecognized import path "errors"
package flag: unrecognized import path "flag"
package fmt: unrecognized import path "fmt"
package go/ast: unrecognized import path "go/ast"
package go/build: unrecognized import path "go/build"
package go/parser: unrecognized import path "go/parser"
package go/printer: unrecognized import path "go/printer"
package go/token: unrecognized import path "go/token"
package io: unrecognized import path "io"
package io/ioutil: unrecognized import path "io/ioutil"
package net: unrecognized import path "net"
package net/http: unrecognized import path "net/http"
package net/url: unrecognized import path "net/url"
package runtime: unrecognized import path "runtime"
package strings: unrecognized import path "strings"
package sync: unrecognized import path "sync"
package time: unrecognized import path "time"
package log: unrecognized import path "log"
package os: unrecognized import path "os"
package os/exec: unrecognized import path "os/exec"
package path/filepath: unrecognized import path "path/filepath"
package strconv: unrecognized import path "strconv"
package unicode/utf8: unrecognized import path "unicode/utf8"
package html: unrecognized import path "html"
package html/template: unrecognized import path "html/template"
package regexp: unrecognized import path "regexp"
package unicode: unrecognized import path "unicode"
package image: unrecognized import path "image"
package image/png: unrecognized import path "image/png"
package math/rand: unrecognized import path "math/rand"
~/go/src/github.com/hashicorp/serf # gmake
/opt/csw/bin/go-5.2 get -d -v ./...
import "bufio": import path does not contain a slash
package bufio: unrecognized import path "bufio"
import "bytes": import path does not contain a slash
package bytes: unrecognized import path "bytes"
import "crypto/rand": import path does not begin with hostname
package crypto/rand: unrecognized import path "crypto/rand"
import "encoding/base64": import path does not begin with hostname
package encoding/base64: unrecognized import path "encoding/base64"
import "encoding/json": import path does not begin with hostname
package encoding/json: unrecognized import path "encoding/json"
import "errors": import path does not contain a slash
package errors: unrecognized import path "errors"
import "flag": import path does not contain a slash
package flag: unrecognized import path "flag"
import "fmt": import path does not contain a slash
package fmt: unrecognized import path "fmt"
github.com/armon/circbuf (download)
import "runtime": import path does not contain a slash
package github.com/armon/circbuf
imports runtime: unrecognized import path "runtime"
github.com/armon/go-metrics (download)
import "io": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports io: unrecognized import path "io"
import "log": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports log: unrecognized import path "log"
import "math": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports math: unrecognized import path "math"
import "net": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports net: unrecognized import path "net"
import "os": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports os: unrecognized import path "os"
import "os/signal": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports os/signal: unrecognized import path "os/signal"
import "strings": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports strings: unrecognized import path "strings"
import "sync": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports sync: unrecognized import path "sync"
import "syscall": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports syscall: unrecognized import path "syscall"
import "time": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports time: unrecognized import path "time"
github.com/hashicorp/go-msgpack (download)
import "encoding/binary": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports encoding/binary: unrecognized import path "encoding/binary"
import "net/rpc": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports net/rpc: unrecognized import path "net/rpc"
import "reflect": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports reflect: unrecognized import path "reflect"
import "sort": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports sort: unrecognized import path "sort"
import "unicode": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports unicode: unrecognized import path "unicode"
import "unicode/utf8": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports unicode/utf8: unrecognized import path "unicode/utf8"
github.com/hashicorp/go-syslog (download)
import "log/syslog": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports log/syslog: unrecognized import path "log/syslog"
github.com/hashicorp/logutils (download)
github.com/hashicorp/mdns (download)
github.com/hashicorp/go.net (download)
import "unsafe": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports unsafe: unrecognized import path "unsafe"
github.com/miekg/dns (download)
import "crypto": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto: unrecognized import path "crypto"
import "crypto/dsa": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/dsa: unrecognized import path "crypto/dsa"
import "crypto/ecdsa": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/ecdsa: unrecognized import path "crypto/ecdsa"
import "crypto/elliptic": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/elliptic: unrecognized import path "crypto/elliptic"
import "crypto/hmac": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/hmac: unrecognized import path "crypto/hmac"
import "crypto/md5": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/md5: unrecognized import path "crypto/md5"
import "crypto/rsa": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/rsa: unrecognized import path "crypto/rsa"
import "crypto/sha1": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/sha1: unrecognized import path "crypto/sha1"
import "crypto/sha256": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/sha256: unrecognized import path "crypto/sha256"
import "crypto/sha512": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/sha512: unrecognized import path "crypto/sha512"
import "crypto/x509": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports crypto/x509: unrecognized import path "crypto/x509"
import "encoding/base32": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports encoding/base32: unrecognized import path "encoding/base32"
import "encoding/hex": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports encoding/hex: unrecognized import path "encoding/hex"
import "hash": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports hash: unrecognized import path "hash"
import "math/big": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports math/big: unrecognized import path "math/big"
import "math/rand": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports math/rand: unrecognized import path "math/rand"
import "strconv": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports strconv: unrecognized import path "strconv"
import "text/scanner": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports text/scanner: unrecognized import path "text/scanner"
github.com/hashicorp/memberlist (download)
import "compress/lzw": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports github.com/hashicorp/memberlist
imports compress/lzw: unrecognized import path "compress/lzw"
import "crypto/aes": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports github.com/hashicorp/memberlist
imports crypto/aes: unrecognized import path "crypto/aes"
import "crypto/cipher": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports github.com/hashicorp/memberlist
imports crypto/cipher: unrecognized import path "crypto/cipher"
import "sync/atomic": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports github.com/hashicorp/memberlist
imports sync/atomic: unrecognized import path "sync/atomic"
import "io/ioutil": import path does not begin with hostname
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports github.com/hashicorp/memberlist
imports io/ioutil: unrecognized import path "io/ioutil"
import "regexp": import path does not contain a slash
package github.com/armon/circbuf
imports github.com/armon/go-metrics
imports github.com/hashicorp/go-msgpack/codec
imports github.com/hashicorp/go-syslog
imports github.com/hashicorp/logutils
imports github.com/hashicorp/mdns
imports github.com/hashicorp/go.net/ipv4
imports github.com/hashicorp/go.net/ipv6
imports github.com/miekg/dns
imports github.com/hashicorp/memberlist
imports regexp: unrecognized import path "regexp"
github.com/mitchellh/cli (download)
Fetching https://golang.org/x/crypto/ssh/terminal?go-get=1
https fetch failed.
Fetching http://golang.org/x/crypto/ssh/terminal?go-get=1
Parsing meta tags from http://golang.org/x/crypto/ssh/terminal?go-get=1 (status code 200)
get "golang.org/x/crypto/ssh/terminal": found meta tag main.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at http://golang.org/x/crypto/ssh/terminal?go-get=1
get "golang.org/x/crypto/ssh/terminal": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
https fetch failed.
Fetching http://golang.org/x/crypto?go-get=1
Parsing meta tags from http://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
2334: open64("refactor/satisfy/find.go", O_WRONLY|O_CREAT|O_EXCL, 0666) = 4
2334: write(4, " / / C o p y r i g h t".., 16384) = 16384
2334: write(4, " - - - - - - - -\n\n / /".., 341) = 341
2334: fstat64(4, 0xFFBFEE80) = 0
2334: close(4) = 0
2334: setitimer(ITIMER_REAL, 0xFFBFEF28, 0x00000000) = 0
2334: sigaction(SIGALRM, 0xFFBFEDE8, 0xFFBFEE88) = 0
2334: write(3, " D I R C\0\0\002\0\00287".., 8192) = 8192
2334: write(3, "\0\01219 uF1 `18 / S D H".., 8192) = 8192
2334: write(3, " l g r a p h / r t a / r".., 8192) = 8192
2334: write(3, "\016 g o / s s a / b u i".., 8192) = 8192
2334: write(3, "\0\0\0\0\0\0\0\0\0\01684".., 8192) = 8192
2334: write(3, "C8E5 { s ;01CD _\0 " g o".., 8192) = 8192
2334: write(3, " a / s r c / c a l l s /".., 8192) = 8192
2334: write(3, "B5D70E xCE "DF1E\01E r e".., 2384) = 2384
2334: fstat64(3, 0xFFBFF008) = 0
2334: close(3) = 0
2334: rename(".git/index.lock", ".git/index") = 0
2334: access(".git/hooks/post-checkout", X_OK) Err#2 ENOENT
2334: fstat64(1, 0xFFBFF4E0) = 0
2334: getpid() = 2334 [2294]
2334: write(1, " d o n e\n", 5) = 5
2334: _exit(0)
And basically it just sits there forever doing nothing. Let me know if anything else might be helpful. When I re-run the checkout it just gives me the error output I already included above.
Thanks,
JSo
On Friday, 15 May 2015 23:56:09 UTC+1, Ian Lance Taylor wrote:
>
>
>Yes. The zstdpkglist.go file should have a list of all the standard
>packages. It should be created during the libgo build. Look for the
>s-zstdpkglist rule in libgo/Makefile.am. Or just try removing
>sparc-sun-solaris2.10/libgo/s-zstdpkglist and running "make" to see
>the commands that it runs. Something must be wrong there, but I don't
>know what.
>
>Ian