You're following out-of-date instructions. godoc is now "go doc".
On Tuesday, 25 April 2023 at 16:52:09 UTC+1 Mario Marietto wrote: > Hello to everyone. > > I've restarted the tutorial from the beginning and I've saved every > command issued : > > $ cd /home/marietto > $ wget https://dl.google.com/go/go1.20.3.linux-arm64.tar.gz > $ tar -xf archive.tar.gz > $ mv go go1.20.3 > > $ nano /home/marietto/.profile > > PATH="$HOME/bin:$HOME/.local/bin:$PATH" > GOROOT_BOOTSTRAP="$HOME/go1.20.3" > export PATH > export GOROOT_BOOTSTRAP > > $ source /home/marietto/.profile > > $ git clone https://go.googlesource.com/go go_git > > Clone in 'go_git' in corso... > remote: Finding sources: 100% (10/10) > remote: Total 570024 (delta 454760), reused 570018 (delta 454760) > Ricezione degli oggetti: 100% (570024/570024), 333.21 MiB | 6.12 MiB/s, > fatto. > Risoluzione dei delta: 100% (454760/454760), fatto. > Aggiornamento dei file in corso: 100% (12328/12328), fatto. > > $ cd go_git > $ git branch -a > > > * master > remotes/origin/HEAD -> origin/master > remotes/origin/master > remotes/origin/release-branch.go1 > remotes/origin/release-branch.go1.1 > remotes/origin/release-branch.go1.10 > remotes/origin/release-branch.go1.11 > remotes/origin/release-branch.go1.12 > remotes/origin/release-branch.go1.13 > remotes/origin/release-branch.go1.14 > remotes/origin/release-branch.go1.15 > remotes/origin/release-branch.go1.16 > remotes/origin/release-branch.go1.17 > remotes/origin/release-branch.go1.18 > remotes/origin/release-branch.go1.19 > remotes/origin/release-branch.go1.2 > remotes/origin/release-branch.go1.20 > remotes/origin/release-branch.go1.3 > remotes/origin/release-branch.go1.4 > remotes/origin/release-branch.go1.5 > remotes/origin/release-branch.go1.6 > remotes/origin/release-branch.go1.7 > remotes/origin/release-branch.go1.8 > remotes/origin/release-branch.go1.9 > > $ cd /home/marietto/go_git/src > $ bash make.bash > > Building Go cmd/dist using /home/marietto/go1.20.3. (go1.20.3 linux/arm64) > Building Go toolchain1 using /home/marietto/go1.20.3. > > Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1. > Building Go toolchain2 using go_bootstrap and Go toolchain1. > Building Go toolchain3 using go_bootstrap and Go toolchain2. > Building packages and commands for linux/arm64. > --- > Installed Go for linux/arm64 in /home/marietto/go_git > Installed commands in /home/marietto/go_git/bin > > marietto@marietto-nano:~/go_git/src$ sudo nano /home/marietto/.profile > > GOROOT_BOOTSTRAP="/home/marietto/go1.20.3" > GOROOT=$HOME/go_git > GOPATH=$HOME/docker_build > > PATH="$HOME/bin:$HOME/.local/bin:$PATH:$GOROOT/bin:$GOPATH/bin" > > export PATH > export GOROOT_BOOTSTRAP > export GOROOT > export GOPATH > > $ go version > go version go1.20.3 linux/arm64 > > marietto@marietto-nano:~/go_git/src$ go get golang.org/x/tools/cmd/godoc > > > go: downloading golang.org/x/tools v0.8.0 > go: downloading golang.org/x/sys v0.7.0 > go: downloading github.com/yuin/goldmark v1.4.13 > go: downloading golang.org/x/mod v0.10.0 > go: downloading golang.org/x/net v0.9.1-0.20230410173003-9001ca7de9d7 > go: downloading golang.org/x/crypto v0.5.1-0.20230203195927-310bfa40f1e4 > go: downloading golang.org/x/text v0.9.0 > go: added github.com/yuin/goldmark v1.4.13 > go: upgraded golang.org/x/mod v0.8.0 => v0.10.0 > go: upgraded golang.org/x/tools v0.6.0 => v0.8.0 > > marietto@marietto-nano:~/go_git/src$ godoc --help > bash: godoc: command not found > > $ sudo find / -name godoc > > /home/marietto/docker_build/pkg/mod/golang.org/x/to...@v0.8.0/cmd/godoc > <http://golang.org/x/tools@v0.8.0/cmd/godoc> > /home/marietto/docker_build/pkg/mod/golang.org/x/to...@v0.8.0/godoc > <http://golang.org/x/tools@v0.8.0/godoc> > > marietto@marietto-nano:~/go_git/src$ ls -lah $GOPATH > > totale 12K > drwxrwxr-x 3 marietto marietto 4,0K apr 25 17:22 . > drwxr-xr-x 27 marietto marietto 4,0K apr 25 17:01 .. > drwxrwxr-x 4 marietto marietto 4,0K apr 25 17:22 pkg > > marietto@marietto-nano:~/go_git/src$ echo $GOPATH > /home/marietto/docker_build > > $ sudo find /home/marietto/docker_build -name src > > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/cmd/bundle/testdata/src > <http://golang.org/x/tools@v0.8.0/cmd/bundle/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/cmd/guru/testdata/src > <http://golang.org/x/tools@v0.8.0/cmd/guru/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/cmd/fiximports/testdata/src > <http://golang.org/x/tools@v0.8.0/cmd/fiximports/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/cmd/callgraph/testdata/src > <http://golang.org/x/tools@v0.8.0/cmd/callgraph/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/assign/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/assign/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/loopclosure/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/loopclosure/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/structtag/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/structtag/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/ifaceassert/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/ifaceassert/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/pkgfact/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/pkgfact/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/atomicalign/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/atomicalign/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/tests/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/tests/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/buildssa/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/buildssa/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/sortslice/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/sortslice/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/asmdecl/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/asmdecl/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/testinggoroutine/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/testinggoroutine/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/bools/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/bools/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/errorsas/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/errorsas/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/framepointer/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/framepointer/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/atomic/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/atomic/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/shift/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/shift/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/fieldalignment/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/fieldalignment/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/stringintconv/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/stringintconv/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/nilness/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/nilness/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/lostcancel/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/lostcancel/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/unusedwrite/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unusedwrite/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/httpresponse/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/httpresponse/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/nilfunc/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/nilfunc/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/usesgenerics/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/usesgenerics/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/printf/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/printf/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/findcall/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/findcall/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/timeformat/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/timeformat/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/buildtag/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/buildtag/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/deepequalerrors/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/deepequalerrors/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/sigchanyzer/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/sigchanyzer/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/composite/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/composite/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/unmarshal/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unmarshal/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/cgocall/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/cgocall/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/directive/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/directive/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/copylock/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/copylock/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/stdmethods/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/stdmethods/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/reflectvaluecompare/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/reflectvaluecompare/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/unusedresult/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unusedresult/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/unsafeptr/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unsafeptr/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/unreachable/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/unreachable/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/shadow/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/shadow/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/analysis/passes/ctrlflow/testdata/src > <http://golang.org/x/tools@v0.8.0/go/analysis/passes/ctrlflow/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/ssa/testdata/src > <http://golang.org/x/tools@v0.8.0/go/ssa/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/ssa/interp/testdata/src > <http://golang.org/x/tools@v0.8.0/go/ssa/interp/testdata/src> > /home/marietto/docker_build/pkg/mod/ > golang.org/x/to...@v0.8.0/go/callgraph/vta/testdata/src > <http://golang.org/x/tools@v0.8.0/go/callgraph/vta/testdata/src> > > $ sudo find /home/marietto/docker_build -name bin > nothing. > > Something is not going well with this command : > > $ go get golang.org/x/tools/cmd/godoc > > and I suspect that's not my fault. My journey ends here ? No,please,help > me. Thanks. > > On Tue, Apr 25, 2023 at 3:11 PM Mario Marietto <mariet...@gmail.com> > wrote: > >> Hello to everyone. >> >> I've restarted the tutorial from the beginning and I'm trying to >> accomplish the next step,as indicated where he says : >> >> "*Note* containerd by default installs as static in the install script. >> Due to that failing (most likely needs musl to properly compile statically) >> I instead decided to install it as dynamic, meaning it needed to be >> one-offed" >> >> According with the tutorial I've created the script called >> compile_docker_utils.sh and I have set it +x and I ran it : >> >> compile_docker_utils.sh >> >> PREFIX="$HOME/docker_utils" ./install.sh containerd dynamic >> for package in "runc vndr" >> do >> PREFIX="$HOME/docker_utils" ./install.sh $package >> done >> >> >> This is what happens : >> >> + RM_GOPATH=0 >> + TMP_GOPATH= >> + : /home/marietto/docker_utils >> + '[' -z '' ']' >> ++ mktemp -d >> + export GOPATH=/tmp/tmp.ZhgEkEF3Ly >> + GOPATH=/tmp/tmp.ZhgEkEF3Ly >> + RM_GOPATH=1 >> + case "$(go env GOARCH)" in >> ++ go env GOARCH >> + export GO_BUILDMODE=-buildmode=pie >> + GO_BUILDMODE=-buildmode=pie >> ++ dirname ./install.sh >> + dir=. >> + bin=containerd >> + shift >> + '[' '!' -f ./containerd.installer ']' >> + . ./containerd.installer >> ++ set -e >> ++ : v1.6.20 >> + install_containerd dynamic >> + echo 'Install containerd version v1.6.20' >> Install containerd version v1.6.20 >> + git clone https://github.com/containerd/containerd.git >> /tmp/tmp.ZhgEkEF3Ly/src/github.com/containerd/containerd >> Clone in '/tmp/tmp.ZhgEkEF3Ly/src/github.com/containerd/containerd' in >> corso... >> remote: Enumerating objects: 111847, done. >> remote: Counting objects: 100% (288/288), done. >> remote: Compressing objects: 100% (159/159), done. >> remote: Total 111847 (delta 147), reused 237 (delta 126), pack-reused >> 111559 >> Ricezione degli oggetti: 100% (111847/111847), 94.08 MiB | 6.21 MiB/s, >> fatto. >> Risoluzione dei delta: 100% (70427/70427), fatto. >> Aggiornamento dei file in corso: 100% (5268/5268), fatto. >> + cd /tmp/tmp.ZhgEkEF3Ly/src/github.com/containerd/containerd >> + git checkout -q v1.6.20 >> + export 'BUILDTAGS=netgo osusergo static_build' >> + BUILDTAGS='netgo osusergo static_build' >> + export EXTRA_FLAGS=-buildmode=pie >> + EXTRA_FLAGS=-buildmode=pie >> + export 'EXTRA_LDFLAGS=-extldflags "-fno-PIC -static"' >> + EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"' >> + '[' dynamic = dynamic ']' >> + export BUILDTAGS= >> + BUILDTAGS= >> + export EXTRA_FLAGS= >> + EXTRA_FLAGS= >> + export EXTRA_LDFLAGS= >> + EXTRA_LDFLAGS= >> + make >> + bin/ctr >> go: no such tool "compile" >> make: *** [Makefile:249: bin/ctr] Errore 2 >> + RM_GOPATH=0 >> + TMP_GOPATH= >> + : /home/marietto/docker_utils >> + '[' -z '' ']' >> ++ mktemp -d >> + export GOPATH=/tmp/tmp.exqHoLQLtJ >> + GOPATH=/tmp/tmp.exqHoLQLtJ >> + RM_GOPATH=1 >> + case "$(go env GOARCH)" in >> ++ go env GOARCH >> + export GO_BUILDMODE=-buildmode=pie >> + GO_BUILDMODE=-buildmode=pie >> ++ dirname ./install.sh >> + dir=. >> + bin=runc >> + shift >> + '[' '!' -f ./runc.installer ']' >> + . ./runc.installer >> ++ set -e >> ++ : v1.1.5 >> + install_runc proxy tini tomlv vndr >> + RUNC_BUILDTAGS=seccomp >> + echo 'Install runc version v1.1.5 (build tags: seccomp)' >> Install runc version v1.1.5 (build tags: seccomp) >> + git clone https://github.com/opencontainers/runc.git >> /tmp/tmp.exqHoLQLtJ/src/github.com/opencontainers/runc >> Clone in '/tmp/tmp.exqHoLQLtJ/src/github.com/opencontainers/runc' in >> corso... >> remote: Enumerating objects: 38294, done. >> remote: Counting objects: 100% (77/77), done. >> remote: Compressing objects: 100% (59/59), done. >> remote: Total 38294 (delta 23), reused 59 (delta 18), pack-reused 38217 >> Ricezione degli oggetti: 100% (38294/38294), 18.24 MiB | 4.57 MiB/s, >> fatto. >> Risoluzione dei delta: 100% (25163/25163), fatto. >> + cd /tmp/tmp.exqHoLQLtJ/src/github.com/opencontainers/runc >> + git checkout -q v1.1.5 >> + '[' -z proxy ']' >> + target=proxy >> + make BUILDTAGS=seccomp proxy >> make: *** No rule to make target «proxy». Stop. >> >> >> The same happens with tini,tomlv,vndr. Are these components fundamentals >> for running docker ? Why won't it compile them ? Is there another method to >> install them ? Thanks. >> >> >> On Tue, Apr 25, 2023 at 2:34 AM Ian Lance Taylor <ia...@golang.org> >> wrote: >> >>> On Mon, Apr 24, 2023 at 5:24 PM Mario Marietto <mariet...@gmail.com> >>> wrote: >>> > >>> > root@marietto-nano:/home/marietto/Scaricati/go_git/src# bash make.bash >>> > >>> > WARNING: /home/marietto/go1.10.3/bin/go does not exist, found >>> /usr/bin/go from env >>> > WARNING: set /usr/lib/go-1.18 as GOROOT_BOOTSTRAP >>> > Building Go cmd/dist using /usr/lib/go-1.18. (go1.18.1 linux/arm64) >>> > Building Go toolchain1 using /usr/lib/go-1.18. >>> > Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1. >>> > Building Go toolchain2 using go_bootstrap and Go toolchain1. >>> > Building Go toolchain3 using go_bootstrap and Go toolchain2. >>> > Building packages and commands for linux/arm64. >>> > --- >>> > Installed Go for linux/arm64 in /home/marietto/Scaricati/go_git >>> > Installed commands in /home/marietto/Scaricati/go_git/bin >>> > *** You need to add /home/marietto/Scaricati/go_git/bin to your PATH. >>> > >>> > It seems that everything is going well right now. What should I do >>> next to compile and build docker ? Can you tell me at which exact point of >>> the tutorial I should restart ? (this is the tutorial that I'm following : >>> > >>> > https://gist.github.com/cwgem/c913c80dcb8eeef38abc30ff3abf1750 >>> >>> I've never tried this myself and I have no idea whether it works. But >>> where those instructions say "all.bash", just run "make.bash" and keep >>> following the instructions as though you ran "all.bash". >>> >>> Ian >>> >> >> >> -- >> Mario. >> > > > -- > Mario. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e4ad316f-7a7c-4d8d-b161-7f1f929a2447n%40googlegroups.com.