./ioctl.go:40: undefined: UBI_IOCVOLUP
./ioctl.go:121: undefined: BLKSSZGET
./ioctl.go:142: undefined: BLKGETSIZE64
By copying these variables from ioctl_64_bit.go into ioctl.go (or much better: properly importing this file into the project), it will work.