Skip to content

build issue #1

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

Open
glycerine opened this issue May 8, 2018 · 0 comments
Open

build issue #1

glycerine opened this issue May 8, 2018 · 0 comments

Comments

@glycerine
Copy link
Collaborator

from an email

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant