Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freebsd builds broken with CGO_ENABLED=0 #62

Open
halkyon opened this issue Apr 3, 2022 · 2 comments
Open

freebsd builds broken with CGO_ENABLED=0 #62

halkyon opened this issue Apr 3, 2022 · 2 comments

Comments

@halkyon
Copy link
Contributor

halkyon commented Apr 3, 2022

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
Copy link
Collaborator

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

1 similar comment
@storjBuildBot
Copy link
Collaborator

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

storjBuildBot pushed a commit that referenced this issue Apr 12, 2022
This also replaces current build make targets with storj-release
for consistency with Gateway-MT. In order to continue building
for FreeBSD, we need to continue to build with CGO_ENABLED=1:
#62

Updates #51

Change-Id: I53a32aae854e2a9e877a87d9737f68f4bfd957bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants