quan-to/chevron

Release build is breaking on arch 386

danidr7 opened this issue ยท 4 comments

On Github Actions is happening:

Building for Others / 386 amd64
Number of parallel builds: 1

-->   openbsd/amd64: github.com/quan-to/chevron/cmd/cli
-->   freebsd/amd64: github.com/quan-to/chevron/cmd/cli
-->     windows/386: github.com/quan-to/chevron/cmd/cli
-->   windows/amd64: github.com/quan-to/chevron/cmd/cli
-->     freebsd/386: github.com/quan-to/chevron/cmd/cli
-->    darwin/amd64: github.com/quan-to/chevron/cmd/cli
-->      darwin/386: github.com/quan-to/chevron/cmd/cli
-->     openbsd/386: github.com/quan-to/chevron/cmd/cli

1 errors occurred:
--> darwin/386 error: exit status 2
Stderr: # golang.org/x/sys/unix
Error: /home/runner/go/pkg/mod/golang.org/x/sys@v0.0.0-20210403161142-5e06dd20ab57/unix/syscall_darwin.go:383:45: undefined: Xucred
Error: /home/runner/go/pkg/mod/golang.org/x/sys@v0.0.0-20210403161142-5e06dd20ab57/unix/syscall_darwin.go:384:11: undefined: Xucred
Error: /home/runner/go/pkg/mod/golang.org/x/sys@v0.0.0-20210403161142-5e06dd20ab57/unix/syscall_darwin.go:385:21: undefined: SizeofXucred

Error: Process completed with exit code 1.

Locally (MacOs Big Sur 11.2.3) is happening:

Building for Linux / arm arm64 386 amd64
#!/bin/bash
Number of parallel builds: 11

-->     linux/amd64: github.com/quan-to/chevron/cmd/cli
-->       linux/arm: github.com/quan-to/chevron/cmd/cli
-->       linux/386: github.com/quan-to/chevron/cmd/cli
-->     linux/arm64: github.com/quan-to/chevron/cmd/cli
Building for Others / 386 amd64
Number of parallel builds: 11

-->    darwin/amd64: github.com/quan-to/chevron/cmd/cli
-->   freebsd/amd64: github.com/quan-to/chevron/cmd/cli
-->      darwin/386: github.com/quan-to/chevron/cmd/cli
-->     freebsd/386: github.com/quan-to/chevron/cmd/cli

1 errors occurred:
--> darwin/386 error: exit status 2
Stderr: cmd/go: unsupported GOOS/GOARCH pair darwin/386

About building for MacOS:

Go 1.14 is the last Go release to support 32-bit binaries on macOS (the darwin/386 port). They are no longer supported by macOS, starting with macOS 10.15 (Catalina). Go continues to support the 64-bit darwin/amd64 port.

https://golang.org/doc/go1.14#darwin

@danidr7 we should probably edit this line:
https://github.com/quan-to/chevron/blob/develop/scripts/travis-binary-build.sh#L4

And remove the 386 build. There is no point releasing a 32 bit version on windows and macosx since all machines nowadays are 64 bit. We can safely assume that no one that want's a secure OS will ever use a 32 bit OS :P

๐Ÿ˜ฎ Damn... I was searching about the security topic about 64 bits systems ๐Ÿ‘๏ธ
Crazy real stuff: https://www.inteligentcomp.com/2013/06/which-is-more-secure-32bit-or-64bit-OS.html

Yep, they added a LOT of security features on 64 bit systems. On both ARM and x86.