Can't compile and run arduino-create-agent properly. 32bit, Lubuntu-16.04

Hi guys! There is no 32bit version for Linux, so I'm trying to compile from source and run, but failed.

First problem with compilation:

$ go build

arduino/arduino-create-agent-devel/vendor/github.com/getlantern/systray

systray_linux.c: In function ‘nativeLoop’:
systray_linux.c:37:2: warning: ‘return’ with no value, in function returning non-void
return;

^

Anyway, it created executable file, but it doesn't work.

$ ./arduino-create-agent-devel
INFO[0000] Version:x.x.x-dev
INFO[0000] Hostname: user-VGN-SZ220
INFO[0000] Garbage collection is on using Standard mode, meaning we just let Golang determine when to garbage collect.
INFO[0000] You specified a serial port regular expression filter: usb|acm|com

INFO[0000] Your serial ports:
INFO[0000] There are no serial ports to list.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.

  • using env: export GIN_MODE=release
  • using code: gin.SetMode(gin.ReleaseMode)

panic: reflect: call of reflect.Value.Int on zero Value

goroutine 7 [running]:
reflect.Value.Int(...)
/usr/local/go/src/reflect/value.go:961
arduino/arduino-create-agent-devel/vendor/golang.org/x/net/ipv4.sysfd(0x85fe480, 0x8c76118, 0x8c76118, 0x85fe480, 0x8c76118)
/home/user/go/src/arduino/arduino-create-agent-devel/vendor/golang.org/x/net/ipv4/helper_unix.go:46 +0x25b
arduino/arduino-create-agent-devel/vendor/golang.org/x/net/ipv4.(*dgramOpt).sysfd(0x8d381c8, 0x4, 0x0, 0x0)
/home/user/go/src/arduino/arduino-create-agent-devel/vendor/golang.org/x/net/ipv4/helper_unix.go:25 +0x65
arduino/arduino-create-agent-devel/vendor/golang.org/x/net/ipv4.(*dgramOpt).JoinGroup(0x8d381c8, 0x8c42bf8, 0x85fa650, 0x8c42bb0, 0x0, 0x8c90030)
/home/user/go/src/arduino/arduino-create-agent-devel/vendor/golang.org/x/net/ipv4/dgramopt_posix.go:109 +0x3c
arduino/arduino-create-agent-devel/vendor/github.com/oleksandr/bonjour.newClient(0x0, 0x0, 0x0, 0x0)
/home/user/go/src/arduino/arduino-create-agent-devel/vendor/github.com/oleksandr/bonjour/client.go:115 +0x424
arduino/arduino-create-agent-devel/vendor/github.com/oleksandr/bonjour.NewResolver(0x0, 0x0, 0x0, 0x0)
/home/user/go/src/arduino/arduino-create-agent-devel/vendor/github.com/oleksandr/bonjour/client.go:23 +0x25
main.getPorts(0x0, 0x0, 0x0, 0x0, 0x0)
/home/user/go/src/arduino/arduino-create-agent-devel/discovery.go:111 +0x25
main.GetNetworkList(0x0, 0x0, 0x0, 0x0, 0x0)
/home/user/go/src/arduino/arduino-create-agent-devel/discovery.go:49 +0x1e
main.GetList(0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/user/go/src/arduino/arduino-create-agent-devel/seriallist.go:28 +0x68b
main.spListDual(0x1)
/home/user/go/src/arduino/arduino-create-agent-devel/serial.go:146 +0x30
main.discoverLoop.func2()
/home/user/go/src/arduino/arduino-create-agent-devel/serial.go:137 +0x1e
created by main.discoverLoop
/home/user/go/src/arduino/arduino-create-agent-devel/serial.go:135 +0xe3

Any thoughts?

Hi @Zetraux,
please check your go version, see here:

Please remember that for compile the project, you need go version <= 1.8.7 (more recent versions are not supported for compile)

Thank you! :slight_smile: