gateway-st icon indicating copy to clipboard operation
gateway-st copied to clipboard

freebsd builds broken with CGO_ENABLED=0

Open halkyon opened this issue 2 years ago • 2 comments

FreeBSD binaries are broken if compiled with CGO_ENABLED=0.

GOOS=freebsd GOARCH=amd64 CGO_ENABLED=0 go build -o ./gateway-freebsd-amd64 -tags kqueue -ldflags '-linkmode external -extldflags "-static"'

When running the resulting binary on a FreeBSD 13 amd64 machine:

./gateway_freebsd_amd64 
Trace/BPT trap (core dumped)

It appears to be broken for Gateway-MT, Linksharing, and Authservice binaries built the same way too.

halkyon avatar Apr 03 '22 22:04 halkyon

Change https://review.dev.storj.io/c/storj/gateway/+/5865 mentions this issue.

storjBuildBot avatar Apr 05 '22 01:04 storjBuildBot

Change https://review.dev.storj.io/c/storj/gateway/+/5865 mentions this issue.

storjBuildBot avatar Apr 10 '22 21:04 storjBuildBot