Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hmmm...it's not building for me:

  $ go get github.com/xiaq/elvish
  # github.com/xiaq/elvish/edit/tty
  dev/go/src/github.com/xiaq/elvish/edit/tty/termios.go:20:   undefined: syscall.TCGETS
  dev/go/src/github.com/xiaq/elvish/edit/tty/termios.go:24: undefined: syscall.TCSETS
  dev/go/src/github.com/xiaq/elvish/edit/tty/termios.go:49:   cannot use &term.Lflag (type *uint64) as type *uint32 in   argument to setFlag
  dev/go/src/github.com/xiaq/elvish/edit/tty/termios.go:53:   cannot use &term.Lflag (type *uint64) as type *uint32 in   argument to setFlag
  # github.com/xiaq/elvish/sys
  dev/go/src/github.com/xiaq/elvish/sys/select.go:66: not   enough arguments to return
I opened up an issue for you: https://github.com/xiaq/elvish/issues/16


I think this is because you are on an older version of Go. Try it with Go 1.3


I am using Go 1.3.

  $ go version
  go version go1.3 darwin/amd64


It builds for me with 1.3 (linux/amd64) on Ubuntu, so I'm guessing it somehow works on Linux but not Mac.

EDIT: Specifically, the first two lines are complaining about an undefined syscall and the next two are complaining about something terminal-related being 64-bit where 32-bit is expected, so those certainly seem like plausible things that would differ across OSes.


The syscall package varies by platform, and TCGETS, for instance, is defined for Linux-

http://golang.org/src/pkg/syscall/types_linux.go

-but not for Darwin-

http://golang.org/src/pkg/syscall/types_darwin.go

So it seems somewhat Linux tied.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: