storj / gateway-st

Single-tenant, S3-compatible server to interact with the Storj network
Apache License 2.0
71 stars 19 forks source link

freebsd builds broken with CGO_ENABLED=0 #62

Open halkyon opened 2 years ago

halkyon commented 2 years ago

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.

storjBuildBot commented 2 years ago

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

storjBuildBot commented 2 years ago

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