goburrow / serial

Go (golang) serial library for modbus
https://github.com/goburrow/modbus
MIT License
193 stars 90 forks source link

Doesn't compile on 32bit architectures #12

Closed andig closed 3 years ago

andig commented 5 years ago

This happens when compiling with goreleaser for darwin_386:

⨯ release failed after 76.54s error=failed to build for darwin_386: # github.com/grid-x/serial
../go/pkg/mod/github.com/grid-x/serial@v0.0.0-20171015094157-98648473d6ff/serial_posix.go:168:12: cannot assign uint64 to flag (type uint32) in multiple assignment
../go/pkg/mod/github.com/grid-x/serial@v0.0.0-20171015094157-98648473d6ff/serial_posix.go:176:13: cannot use flag (type uint32) as type uint64 in argument to cfSetIspeed
../go/pkg/mod/github.com/grid-x/serial@v0.0.0-20171015094157-98648473d6ff/serial_posix.go:178:13: cannot use flag (type uint32) as type uint64 in argument to cfSetOspeed
../go/pkg/mod/github.com/grid-x/serial@v0.0.0-20171015094157-98648473d6ff/serial_posix.go:184:12: cannot assign uint64 to flag (type uint32) in multiple assignment
../go/pkg/mod/github.com/grid-x/serial@v0.0.0-20171015094157-98648473d6ff/termios_darwin.go:8:17: cannot use speed (type uint64) as type uint32 in assignment
../go/pkg/mod/github.com/grid-x/serial@v0.0.0-20171015094157-98648473d6ff/termios_darwin.go:12:17: cannot use speed (type uint64) as type uint32 in assignment