-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic: variable cons not bound #41
Comments
You can try a release version, such as
master is not stable. |
It did not build out of the box (go version go1.19.3 darwin/amd64): cora/types.go:277:11: undefined: syscall.MAP_ANONYMOUS Built successfully after changing the line 277 to: syscall.MAP_ANON|syscall.MAP_PRIVATE /flags int/) I am looking forward to shen-go hopefully updated to kernel 33. |
Oops ... the syscall
I realized that use mmap is not necessary, because the OS already use virtual memory address Try the latest master, I fix the build now.
I'll do it later. @lbuczkow |
I've created another issue for the upgrade #45, so this one can be closed. |
A fresh build on mac (Ventura) does not work:
~/shen % git clone https://github.com/tiancaiamao/shen-go.git
Cloning into 'shen-go'...
remote: Enumerating objects: 2422, done.
remote: Counting objects: 100% (161/161), done.
remote: Compressing objects: 100% (105/105), done.
remote: Total 2422 (delta 83), reused 108 (delta 55), pack-reused 2261
Receiving objects: 100% (2422/2422), 5.09 MiB | 1.12 MiB/s, done.
Resolving deltas: 100% (1455/1455), done.
~/shen % cd shen-go
~/shen/shen-go % go version
go version go1.19.3 darwin/amd64
~/shen/shen-go % make all
go install github.com/tiancaiamao/shen-go/cmd/kl
go build -o shen github.com/tiancaiamao/shen-go/cmd/shen
~/shen/shen-go % ./shen
panic: variable cons not bound
goroutine 1 [running]:
github.com/tiancaiamao/shen-go/klambda.PrimNS1Value(0xc0003c3940?)
/Users/lb/shen/shen-go/klambda/primitives.go:761 +0xa8
main.glob..func3(0xc000065240)
/Users/lb/shen/shen-go/cmd/shen/kl.go:5029 +0x508
github.com/tiancaiamao/shen-go/klambda.myCall(0xc000065240)
/Users/lb/shen/shen-go/klambda/inst.go:287 +0xd6
github.com/tiancaiamao/shen-go/klambda.(*ControlFlow).Call(0xc000065240, 0xc000064000?, {0x0, 0x0, 0x100714780?})
/Users/lb/shen/shen-go/klambda/inst.go:263 +0x1d3
github.com/tiancaiamao/shen-go/klambda.Call(...)
/Users/lb/shen/shen-go/klambda/inst.go:252
main.regist(0x1007899a1?)
/Users/lb/shen/shen-go/cmd/shen/main.go:40 +0x151
main.main()
/Users/lb/shen/shen-go/cmd/shen/main.go:74 +0x1f2
The text was updated successfully, but these errors were encountered: