build errors / go version

Author: Michas0206Created Feb 20, 2021Updated May 8, 2021

Describe the bug go build producing the following output:

# github.com/OpenDiablo2/OpenDiablo2/d2common/d2datautils
d2common/d2datautils/stream_writer.go:41:17: invalid operation: 1 << v.bitOffset (shift count type int, must be unsigned integer)
note: module requires Go 1.14# github.com/hajimehoshi/ebiten/v2/internal/graphicscommand
/root/go/pkg/mod/github.com/hajimehoshi/ebiten/[email protected]/internal/graphicscommand/image.go:247:9: undefined: strings.ReplaceAll
note: module requires Go 1.12# github.com/hajimehoshi/ebiten/v2/internal/shaderir/glsl
/root/go/pkg/mod/github.com/hajimehoshi/ebiten/[email protected]/internal/shaderir/glsl/glsl.go:151:8: undefined: strings.ReplaceAll
/root/go/pkg/mod/github.com/hajimehoshi/ebiten/[email protected]/internal/shaderir/glsl/glsl.go:152:8: undefined: strings.ReplaceAll
/root/go/pkg/mod/github.com/hajimehoshi/ebiten/[email protected]/internal/shaderir/glsl/glsl.go:154:8: undefined: strings.ReplaceAll
/root/go/pkg/mod/github.com/hajimehoshi/ebiten/[email protected]/internal/shaderir/glsl/glsl.go:155:8: undefined: strings.ReplaceAll
note: module requires Go 1.12# github.com/gravestench/akara
/root/go/pkg/mod/github.com/gravestench/[email protected]/bitset.go:233:38: syntax error: unexpected b1, expecting {
note: module requires Go 1.14# github.com/OpenDiablo2/OpenDiablo2/d2core/d2config
d2core/d2config/default_directories.go:18:23: undefined: os.UserConfigDir
note: module requires Go 1.14# github.com/hajimehoshi/ebiten/v2/internal/devicescale
/root/go/pkg/mod/github.com/hajimehoshi/ebiten/[email protected]/internal/devicescale/cinnamon_unix.go:98:15: undefined: os.UserHomeDir
note: module requires Go 1.12pi@raspberrypi:~/OpenDiablo2 $

To Reproduce Steps to reproduce the behavior:

  1. System: Raspberry Pi 3 with standard Raspberry Pi OS, latest updates
  2. install go
  3. git clone your repository, enter OpenDiablo2, install dependencies from build.sh for Debian, go get -d and get build Expected behavior A clean build of OpenDiablo 2

Desktop (please complete the following information):

  • OS: Raspberry Pi OS
  • Version: Buster, latest updates/upgrades installed

Additional context Is really "go" the problem? I tried it with version 1.11 and 1.15. Or is it arm-architecture related somehow?