[go-nuts] Re: building go1.7.5 ... api check failed

2017-01-28 Thread Dave Cheney
You must not set GOROOT when building from source. It is not necessary and will 
lead to confusing error messages if you at GOROOT

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: building go1.7.5 ... api check failed

2017-01-28 Thread gocss

yes; after the failed api check I issued 4 commands: 
"go env" 
"env | grep GO"  
"which go"
"go -version"
output of those follow:

admin1@tp13:/csspc/etc$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/mnt/data1/admin1/gocode"
GORACE=""
GOROOT="/csspc/etc/go"
GOTOOLDIR="/csspc/etc/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 
-fdebug-prefix-map=/tmp/go-build874482102=/tmp/go-build 
-gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
admin1@tp13:/csspc/etc$ 

admin1@tp13:/csspc/etc/go$ env | grep GO
GOROOT_BOOTSTRAP=/csspc/etc/go.old
GOROOT=/csspc/etc/go
GOPATH=/mnt/data1/admin1/gocode
admin1@tp13:/csspc/etc/go$ 

admin1@tp13:/csspc/etc$ which go
/csspc/etc/go/bin/go
admin1@tp13:/csspc/etc$ 

admin1@tp13:/csspc/etc$ go version
go version go1.7.5 linux/amd64
admin1@tp13:/csspc/etc$ 


On Saturday, January 28, 2017 at 11:06:18 AM UTC-5, gocss wrote:
>
> building in xubuntu 16.04 LTS
>
> # API check
> stat /csspc/etc/go/src/cmd/api/run.go: no such file or directory
> 2017/01/28 10:51:46 Failed: exit status 1
> 2017/01/28 10:51:46 FAILED
>
> doing an ls of above directory:
> admin1@tp13:/csspc/etc/go/src$ ls /csspc/etc/go/src/cmd/api
> ls: cannot access '/csspc/etc/go/src/cmd/api': No such file or directory
> admin1@tp13:/csspc/etc/go/src$ 
>
> I do find an api directory elsewhere
> admin1@tp13:/csspc/etc/go/api$ ls
> except.txt  go1.2.txt  go1.4.txt  go1.6.txt  go1.txt   README
> go1.1.txt   go1.3.txt  go1.5.txt  go1.7.txt  next.txt
> admin1@tp13:/csspc/etc/go/api$ 
>
> *Is this a known issue ... I get this error also building on another 
> machine ???*
> here is full output of the build:
> admin1@tp13:/csspc/etc/go/src$ time ./all.bash
> # Building Go bootstrap tool.
> cmd/dist
>
> # Building Go toolchain using /csspc/etc/go.old.
> bootstrap/internal/sys
> bootstrap/asm/internal/flags
> bootstrap/internal/bio
> bootstrap/compile/internal/big
> bootstrap/internal/gcprog
> bootstrap/internal/obj
> bootstrap/internal/obj/arm
> bootstrap/internal/obj/arm64
> bootstrap/internal/obj/mips
> bootstrap/internal/obj/ppc64
> bootstrap/internal/obj/s390x
> bootstrap/internal/obj/x86
> bootstrap/asm/internal/lex
> bootstrap/link/internal/ld
> bootstrap/asm/internal/arch
> bootstrap/compile/internal/ssa
> bootstrap/asm/internal/asm
> bootstrap/asm
> bootstrap/link/internal/amd64
> bootstrap/link/internal/arm
> bootstrap/link/internal/arm64
> bootstrap/link/internal/mips64
> bootstrap/link/internal/ppc64
> bootstrap/link/internal/s390x
> bootstrap/link/internal/x86
> bootstrap/link
> bootstrap/compile/internal/gc
> bootstrap/compile/internal/arm
> bootstrap/compile/internal/amd64
> bootstrap/compile/internal/arm64
> bootstrap/compile/internal/ppc64
> bootstrap/compile/internal/mips64
> bootstrap/compile/internal/s390x
> bootstrap/compile/internal/x86
> bootstrap/compile
>
> # Building go_bootstrap for host, linux/amd64.
> runtime/internal/sys
> runtime/internal/atomic
> runtime
> sync/atomic
> unicode/utf16
> internal/race
> sort
> errors
> internal/syscall/windows/sysdll
> unicode
> math
> unicode/utf8
> encoding
> sync
> syscall
> internal/singleflight
> io
> container/heap
> hash
> hash/adler32
> strconv
> bytes
> strings
> bufio
> path
> crypto
> reflect
> encoding/base64
> regexp/syntax
> crypto/sha1
> internal/syscall/windows
> internal/syscall/windows/registry
> time
> regexp
> os
> os/signal
> path/filepath
> encoding/binary
> fmt
> io/ioutil
> go/token
> compress/flate
> net/url
> debug/dwarf
> encoding/json
> text/template/parse
> flag
> log
> context
> os/exec
> go/scanner
> go/ast
> compress/zlib
> text/template
> debug/macho
> debug/elf
> go/parser
> go/doc
> go/build
> cmd/go
>
> # Building packages and commands for linux/amd64.
> runtime/internal/sys
> runtime/internal/atomic
> runtime
> internal/race
> errors
> sync/atomic
> unicode
> math
> unicode/utf8
> sort
> container/list
> sync
> container/ring
> crypto/subtle
> container/heap
> io
> syscall
> internal/nettrace
> internal/singleflight
> encoding
> unicode/utf16
> image/color
> internal/syscall/windows/sysdll
> hash
> hash/adler32
> hash/crc32
> crypto/cipher
> crypto/hmac
> hash/crc64
> hash/fnv
> image/color/palette
> runtime/trace
> bytes
> strings
> runtime/race
> cmd/compile/internal/test
> cmd/vet/internal/whitelist
> strconv
> math/rand
> bufio
> path
> text/tabwriter
> vendor/golang_org/x/net/lex/httplex
> html
> math/cmplx
> compress/bzip2
> reflect
> regexp/syntax
> crypto
> crypto/aes
> time
> crypto/sha512
> crypto/md5
> internal/syscall/unix
> crypto/rc4
> crypto/sha1
> crypto/sha256
> encoding/base64
> encoding/ascii85
> encoding/base32
> image
> encoding/pem
> regexp
> os
> image/internal/imageutil
> image/jpeg
> image/draw
> path/filepath
> runtime/debug
> os/signal
> cmd/internal/pprof/svg
> io/ioutil
> encoding/binary
> fmt
> cmd/internal/sys
> crypto/des
> index/suffixarray
> flag
> log
> debug/dwarf
> compress/flate

[go-nuts] Re: building go1.7.5 ... api check failed

2017-01-28 Thread Dave Cheney
Do you have GOROOT set? This error can occur when GOROOT is set incorrectly.

On Sunday, 29 January 2017 03:06:18 UTC+11, gocss wrote:
>
> building in xubuntu 16.04 LTS
>
> # API check
> stat /csspc/etc/go/src/cmd/api/run.go: no such file or directory
> 2017/01/28 10:51:46 Failed: exit status 1
> 2017/01/28 10:51:46 FAILED
>
> doing an ls of above directory:
> admin1@tp13:/csspc/etc/go/src$ ls /csspc/etc/go/src/cmd/api
> ls: cannot access '/csspc/etc/go/src/cmd/api': No such file or directory
> admin1@tp13:/csspc/etc/go/src$ 
>
> I do find an api directory elsewhere
> admin1@tp13:/csspc/etc/go/api$ ls
> except.txt  go1.2.txt  go1.4.txt  go1.6.txt  go1.txt   README
> go1.1.txt   go1.3.txt  go1.5.txt  go1.7.txt  next.txt
> admin1@tp13:/csspc/etc/go/api$ 
>
> *Is this a known issue ... I get this error also building on another 
> machine ???*
> here is full output of the build:
> admin1@tp13:/csspc/etc/go/src$ time ./all.bash
> # Building Go bootstrap tool.
> cmd/dist
>
> # Building Go toolchain using /csspc/etc/go.old.
> bootstrap/internal/sys
> bootstrap/asm/internal/flags
> bootstrap/internal/bio
> bootstrap/compile/internal/big
> bootstrap/internal/gcprog
> bootstrap/internal/obj
> bootstrap/internal/obj/arm
> bootstrap/internal/obj/arm64
> bootstrap/internal/obj/mips
> bootstrap/internal/obj/ppc64
> bootstrap/internal/obj/s390x
> bootstrap/internal/obj/x86
> bootstrap/asm/internal/lex
> bootstrap/link/internal/ld
> bootstrap/asm/internal/arch
> bootstrap/compile/internal/ssa
> bootstrap/asm/internal/asm
> bootstrap/asm
> bootstrap/link/internal/amd64
> bootstrap/link/internal/arm
> bootstrap/link/internal/arm64
> bootstrap/link/internal/mips64
> bootstrap/link/internal/ppc64
> bootstrap/link/internal/s390x
> bootstrap/link/internal/x86
> bootstrap/link
> bootstrap/compile/internal/gc
> bootstrap/compile/internal/arm
> bootstrap/compile/internal/amd64
> bootstrap/compile/internal/arm64
> bootstrap/compile/internal/ppc64
> bootstrap/compile/internal/mips64
> bootstrap/compile/internal/s390x
> bootstrap/compile/internal/x86
> bootstrap/compile
>
> # Building go_bootstrap for host, linux/amd64.
> runtime/internal/sys
> runtime/internal/atomic
> runtime
> sync/atomic
> unicode/utf16
> internal/race
> sort
> errors
> internal/syscall/windows/sysdll
> unicode
> math
> unicode/utf8
> encoding
> sync
> syscall
> internal/singleflight
> io
> container/heap
> hash
> hash/adler32
> strconv
> bytes
> strings
> bufio
> path
> crypto
> reflect
> encoding/base64
> regexp/syntax
> crypto/sha1
> internal/syscall/windows
> internal/syscall/windows/registry
> time
> regexp
> os
> os/signal
> path/filepath
> encoding/binary
> fmt
> io/ioutil
> go/token
> compress/flate
> net/url
> debug/dwarf
> encoding/json
> text/template/parse
> flag
> log
> context
> os/exec
> go/scanner
> go/ast
> compress/zlib
> text/template
> debug/macho
> debug/elf
> go/parser
> go/doc
> go/build
> cmd/go
>
> # Building packages and commands for linux/amd64.
> runtime/internal/sys
> runtime/internal/atomic
> runtime
> internal/race
> errors
> sync/atomic
> unicode
> math
> unicode/utf8
> sort
> container/list
> sync
> container/ring
> crypto/subtle
> container/heap
> io
> syscall
> internal/nettrace
> internal/singleflight
> encoding
> unicode/utf16
> image/color
> internal/syscall/windows/sysdll
> hash
> hash/adler32
> hash/crc32
> crypto/cipher
> crypto/hmac
> hash/crc64
> hash/fnv
> image/color/palette
> runtime/trace
> bytes
> strings
> runtime/race
> cmd/compile/internal/test
> cmd/vet/internal/whitelist
> strconv
> math/rand
> bufio
> path
> text/tabwriter
> vendor/golang_org/x/net/lex/httplex
> html
> math/cmplx
> compress/bzip2
> reflect
> regexp/syntax
> crypto
> crypto/aes
> time
> crypto/sha512
> crypto/md5
> internal/syscall/unix
> crypto/rc4
> crypto/sha1
> crypto/sha256
> encoding/base64
> encoding/ascii85
> encoding/base32
> image
> encoding/pem
> regexp
> os
> image/internal/imageutil
> image/jpeg
> image/draw
> path/filepath
> runtime/debug
> os/signal
> cmd/internal/pprof/svg
> io/ioutil
> encoding/binary
> fmt
> cmd/internal/sys
> crypto/des
> index/suffixarray
> flag
> log
> debug/dwarf
> compress/flate
> debug/gosym
> debug/plan9obj
> cmd/vendor/golang.org/x/arch/arm/armasm
> cmd/vendor/golang.org/x/arch/x86/x86asm
> archive/tar
> cmd/internal/obj
> compress/zlib
> debug/macho
> debug/pe
> debug/elf
> archive/zip
> compress/gzip
> cmd/internal/goobj
> compress/lzw
> context
> math/big
> encoding/hex
> go/token
> os/exec
> database/sql/driver
> go/scanner
> encoding/csv
> cmd/internal/objfile
> database/sql
> go/ast
> encoding/gob
> encoding/json
> cmd/addr2line
> encoding/xml
> go/parser
> crypto/dsa
> crypto/elliptic
> encoding/asn1
> crypto/rand
> go/printer
> crypto/rsa
> vendor/golang_org/x/net/http2/hpack
> crypto/ecdsa
> crypto/x509/pkix
> mime
> mime/quotedprintable
> net/http/internal
> net/url
> text/template/parse
> go/constant
> text/scanner
> image/gif
> image/png
> runtime/pprof
> cmd/cgo
>