database64128/shadowsocks-go

32bit ARM Support

ttc0419 opened this issue · 3 comments

It seems the current implementation can not compile for ARM 32bit.

[hello@local shadowsocks-go](main)% env CGO_ENABLED=0 GOARCH=arm GOOS=linux GOARM=7 go build -v -trimpath -ldflags '-s -w' -o ss22 ./cmd/shadowsocks-go
github.com/database64128/shadowsocks-go/mmap
# github.com/database64128/shadowsocks-go/mmap
mmap/mmap_freebsdlinux.go:12:34: undefined: unix.SYS_MMAP

Is there something wrong or the implementation hasn't support it yet?

Fixed in 2b40516.

@database64128 Hi, I'm afraid the issue is not completely fixed. Just pulled the latest version and build it. The error is now

github.com/database64128/shadowsocks-go/mmap
# github.com/database64128/shadowsocks-go/mmap
mmap/mmap_unixwindows.go:28:15: undefined: readFile
mmap/mmap_unixwindows.go:42:9: undefined: unmap

My mistake. Should now be fixed in 120ce8a.