Git Product home page Git Product logo

Comments (2)

sbinet avatar sbinet commented on May 18, 2024

hi Russel,

I haven't tested building go-python with gccgo in a long time (obviously)
but it seems something's broken with gccgo.

with the following little project, I could reproduce your issue:

$ cd /tmp/go-tmp
$ export GOPATH=`pwd`
$ mkdir -p src/foo
$ cd src/foo
$ cat > foo.go << EOF
package foo
import "fmt"
func Foo() {
 fmt.Printf("hello foo\n")
}
EOF

$ mkdir bar && cd bar
$ cat > bar.go << EOF
package main
import "foo"
func main() {
 foo.Foo()
}
EOF

$ go get -compiler=gccgo -v .
foo
foo/bar
# foo/bar
./bar.go:3:11: error: import file ‘foo’ not found
 import "foo"
           ^
./bar.go:6:2: error: reference to undefined name ‘foo’
  foo.Foo()
  ^
zsh: exit 2     go get -compiler=gccgo -v .

do you have the same gccgo version than I do ?

$ gccgo --version
gccgo (GCC) 4.8.1 20130725 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

wrt Python-3: I don't plan to migrate just yet as my workplace has yet to move away from py-2... but I'd be happy to open a python-3 branch and pull requests there :}

-s

from go-python.

russel avatar russel commented on May 18, 2024

My gccgo reports:

|> gccgo --version
gccgo (Debian 4.8.1-8) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

wrt Python version, I would have thought your work would be champing at the bit to get to Python 3.3. What is the reason for staying with Python 2.7? I may well try and take a fork and feature branch for the C Python 3.3 API. I guess there is also PyPy to think about.

from go-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.