Ok, I write the fact which happened to make go1.16.3-plan9-amd64-bootstrap
from go1.16.3-plan9-amd64-bootstrap.tbz:
-----from here----
I made first go1.16.3-plan9-amd64-bootstrap.tar on this Plan9.
cpu% cat go1.16.3-plan9-amd64-bootstrap.tar|{cd /sys/lib/go; tar xT}
tar: // Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a B: ENSE file.
// Package analysisutil defines various helper functions
// used by two or more packages beneath go/analysis.
package analysisutil
import (
"bytes"
"go/ast"
"go/printer"
"go/token"
"go/types"
"io/ioutil"
)
// Format returns a string representation of the expression.
func Format(fset *token.FileSet, x ast.Expr) string {
var b bytes.Buffer
printer.Fprint(&b, fset, x)
return b.String()
}
// HasSideEffects reports whether evaluation of e has side effects.
func HasSideEffects(info *types.Info, e ast.Expr) bool {
safe := true
ast.Inspect(e, func(node ast.Node) bool {
switch n := node.(type) {
case *ast.CallExpr:
typVal := info.Types[n.Fun]
switch {
case typVal.IsType():
// Type conversion, which is safe.
case typVal.IsBuiltin():
// Builtin func, conservatively assumed to not
// be safe for now.
safe = false
return false
default:
// A non-builtin func or method call.
// Conservatively assume that all of them have
// side effects for now.
safe = false
return false
}
case *ast.UnaryExpr:
if n.Op == token.ARROW {
safe = false
return false
}
}
return true
})
return !safe
}
// Unparen returns e with any enclosing parentheses stripped.
func Unparen(e ast.Expr) ast.Expr {
for {
p, ok := e.(*ast.ParenExpr)
if !ok {
return e
}
e = p.X
}
}
// ReadFile reads a �: non-numeric checksum in header
tar: bad archive header checksum in archive: name // Copyright 2018 The Go
Authors. All rights reserved.
// Use of this source code is governed by a B...; expected 037777777777 got
0125506
cpu%
cpu% lc /sys/lib/go/go-plan9-amd64-bootstrap
bin pkg src test
--------to here------
I, then, make go-plan9-amd64-bootstrap file tree on Linux, and copy it to
/sys/lib/go.
>From the procedures above, I thought go-plan9-amd64-bootstrap.tbz was built on
>a
certain system other than Plan9.
Kenji
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T75ee4ccd407669dd-Mf588e3fb610031e0f0ce251f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription