You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for your github repository chezgo, I’m very intereted. But I can’t build chezgo,
when I run “make run”, I got
go build github.com/go-interpreter/chezgo: invalid flag in #cgo LDFLAGS: ./chez_scheme_9.5.1/boot/a6osx/kernel.o
How can I fix this?
my reply:
This is due to the recent whitelisting of all cgo flags, which appears to be busted yet again.
Use the CGO_LDFLAGS_ALLOW env variable to work around it for now.
jaten@jatens-MacBook-Pro ~/go/src/github.com/go-interpreter/chezgo (master) $ make run
cd chez_scheme_9.5.1/c; make
make[1]: Nothing to be done for `doit'.
go build && ./chezgo
go build github.com/go-interpreter/chezgo: parsing $CGO_LDFLAGS_ALLOW: error parsing regexp: missing argument to\
repetition operator: `*`
make: *** [run] Error 1
jaten@jatens-MacBook-Pro ~/go/src/github.com/go-interpreter/chezgo (master) $ export CGO_LDFLAGS_ALLOW='.*.o'
jaten@jatens-MacBook-Pro ~/go/src/github.com/go-interpreter/chezgo (master) $ make run
cd chez_scheme_9.5.1/c; make
make[1]: Nothing to be done for `doit'.
go build && ./chezgo
>
I noted the issue on golang/go#23749 at the end of the comments.
The text was updated successfully, but these errors were encountered:
from an email
my reply:
This is due to the recent whitelisting of all cgo flags, which appears to be busted yet again.
Use the CGO_LDFLAGS_ALLOW env variable to work around it for now.
I noted the issue on golang/go#23749 at the end of the comments.
The text was updated successfully, but these errors were encountered: