Skip to content

build issue #1

@glycerine

Description

@glycerine

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions