Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Doesn't build with gccgo #6

@russel

Description

@russel

I did a "go get" of the project but this failed to compile for all the reasons that are documented in the README.md. So having got the Git clone, I did the simple make install and that worked fine (albeit with a number of warnings): go-python.a appears in the appropriate place. However using:

make GO_COMPILER=gccgo install

I get the

(cd cmd/go-python && CGO_LDFLAGS="-L/usr/lib/python2.7 -lpython2.7" CGO_CFLAGS="-I/usr/include/python2.7 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security " go install -compiler=gccgo .)

github.com/sbinet/go-python/cmd/go-python

./main.go:5:29: error: import file ‘github.com/sbinet/go-python’ not found
"github.com/sbinet/go-python"
^
./main.go:10:9: error: reference to undefined name ‘python’
err := python.Initialize()
^
./main.go:17:8: error: reference to undefined name ‘python’
rc := python.Py_Main(os.Args)
^
make: *** [install] Error 2

Almost certainly user error, but…

Thanks.

PS any move to Python 3 planned, Python 2 is so last millenium ;-)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions