Skip to content
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

panic on OS X #54

Closed
josephschorr opened this issue Jan 7, 2016 · 4 comments
Closed

panic on OS X #54

josephschorr opened this issue Jan 7, 2016 · 4 comments

Comments

@josephschorr
Copy link
Contributor

When running the multi-progress bar example on OSX:

go run example.go 
panic: Can't get terminal settings: inappropriate ioctl for device

goroutine 1 [running]:
main.main()
    /go/src/github.com/c/example/example.go:18 +0x24d

goroutine 19 [syscall]:
os/signal.loop()
    /usr/local/Cellar/go/1.5.2/libexec/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
    /usr/local/Cellar/go/1.5.2/libexec/src/os/signal/signal_unix.go:28 +0x37
exit status 2

Built using standard go build . under Go 1.5.2

@jzelinskie
Copy link
Contributor

From my brief reading, OSX doesn't support syscall.TCGETS instead it wants people to use tcgetattr. The go compiler frontend seems to be using a syscall.Tcgetaddr call, but I don't see it in the godoc for the syscall package.

@cheggaaa
Copy link
Owner

cheggaaa commented Jan 8, 2016

It's my fail.
Now used constants from syscall
Can you check this problem now?

@josephschorr
Copy link
Contributor Author

Getting a compilation error now:

# github.com/cheggaaa/pb
../../cheggaaa/pb/pb_x.go:21: undefined: syscall.TCGETS
../../cheggaaa/pb/pb_x.go:22: undefined: syscall.TCSETS

@apeyroux
Copy link

apeyroux commented Jan 8, 2016

I also have this problem.

ja@awaks:~ % go get github.com/cheggaaa/pb
# github.com/cheggaaa/pb
go/src/github.com/cheggaaa/pb/pb_x.go:21: undefined: syscall.TCGETS
go/src/github.com/cheggaaa/pb/pb_x.go:22: undefined: syscall.TCSETS
ja@awaks:~ % go version                                
go version go1.5.1 freebsd/amd64

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

4 participants