hey my main man, Richard...
u got 'go' going -- great stuff indeed
and then you tried to compile pprof and it failed -- no...
what you did was compile pprof (not shown...) great!, and then when you ran it,
it failed... on the same machine?? but surely a cross plan 9, cross compiler/lnker/env
is for getting plan 9 binaries going...
or is your prompt modified??
--- from a non c.c. person, may i speak freely...
it looks like it just failed maybe to do with disc space (possibly)... exit (2) could easily be:
exit(1000001) r.s....
/c:20212510around midnight m.f
ps. are there any s. problems conor?



On Mon, Oct 25, 2021 at 11:05 AM Richard Miller <9fans@hamnavoe.com> wrote:
> adding 'cache=mmap' to the mount options
> makes it work beautifully!

Not quite beautifully, it turns out. The build proceeds a lot further,
but ends with a memory fault as reported below.

Can anyone suggest other mount options I should tweak?

$ GOOS=plan9 GOARCH=386 GOROOT_BOOTSTRAP=/usr/lib/go GOROOT_FINAL=/sys/lib/go1.17 ./make.bash
Building Go cmd/dist using /usr/lib/go. (go1.7.4 linux/amd64)
Building Go toolchain1 using /usr/lib/go.
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 host, linux/amd64.
# cmd/vendor/github.com/google/pprof/third_party/d3
unexpected fault address 0x607c60
fatal error: fault
[signal SIGBUS: bus error code=0x2 addr=0x607c60 pc=0x607c60]

goroutine 1 [running]:
runtime.throw({0xce1702, 0xc00008d870})
        /sys/lib/go1.17/src/runtime/panic.go:1198 +0x71 fp=0xc00008d828 sp=0xc00008d7f8 pc=0x435331
runtime.sigpanic()
        /sys/lib/go1.17/src/runtime/signal_unix.go:732 +0x125 fp=0xc00008d878 sp=0xc00008d828 pc=0x44b325
cmd/compile/internal/typecheck.(*iexporter).pushDecl(0xc6e9c0, 0xc0000a2120)
        /sys/lib/go1.17/src/cmd/compile/internal/typecheck/iexport.go:403 fp=0xc00008d880 sp=0xc00008d878 pc=0x607c60
cmd/compile/internal/typecheck.WriteExports(0xc0000b4000)
        /sys/lib/go1.17/src/cmd/compile/internal/typecheck/iexport.go:272 +0x254 fp=0xc00008da58 sp=0xc00008d880 pc=0x606f34
cmd/compile/internal/gc.dumpexport(0xc0000ae010)
        /sys/lib/go1.17/src/cmd/compile/internal/gc/export.go:39 +0x1d5 fp=0xc00008dba0 sp=0xc00008da58 pc=0xc02d55
cmd/compile/internal/gc.dumpCompilerObj(0xc0000ae010)
        /sys/lib/go1.17/src/cmd/compile/internal/gc/obj.go:106 +0x28 fp=0xc00008dbc0 sp=0xc00008dba0 pc=0xc05748
cmd/compile/internal/gc.dumpobj1({0x7fffdfeb7fde, 0x23}, 0x3)
        /sys/lib/go1.17/src/cmd/compile/internal/gc/obj.go:62 +0x178 fp=0xc00008dc70 sp=0xc00008dbc0 pc=0xc051d8
cmd/compile/internal/gc.dumpobj()
        /sys/lib/go1.17/src/cmd/compile/internal/gc/obj.go:43 +0x36 fp=0xc00008dc98 sp=0xc00008dc70 pc=0xc04ff6
cmd/compile/internal/gc.Main(0xd16458)
        /sys/lib/go1.17/src/cmd/compile/internal/gc/main.go:307 +0x105b fp=0xc00008df20 sp=0xc00008dc98 pc=0xc0495b
main.main()
        /sys/lib/go1.17/src/cmd/compile/main.go:55 +0xdd fp=0xc00008df80 sp=0xc00008df20 pc=0xc26d9d
runtime.main()
        /sys/lib/go1.17/src/runtime/proc.go:255 +0x227 fp=0xc00008dfe0 sp=0xc00008df80 pc=0x437a07
runtime.goexit()
        /sys/lib/go1.17/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00008dfe8 sp=0xc00008dfe0 pc=0x466f81
go tool dist: FAILED: /mnt/sys/lib/go1.17/pkg/tool/linux_amd64/go_bootstrap install -gcflags=all= -ldflags=all= std cmd: exit status 2


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb065f4df67a8bab9-M21962d3e6cc1b1ab472b5700
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription