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

go 1.21 GOOS=linux build failed #10

Closed
bowin opened this issue Nov 15, 2023 · 4 comments
Closed

go 1.21 GOOS=linux build failed #10

bowin opened this issue Nov 15, 2023 · 4 comments

Comments

@bowin
Copy link

bowin commented Nov 15, 2023

No description provided.

@bowin bowin changed the title go 1.21 GOOS=linux build faied go 1.21 GOOS=linux build failed Nov 15, 2023
@bowin
Copy link
Author

bowin commented Nov 15, 2023

cross compile from mac to linux, it seems like cgo problem

@OldPanda
Copy link
Owner

@bowin You're right. CGO is the reason why it failed to cross compile your go program. As far as I know, there're two workarounds to compile the go code to the target platform.

@OldPanda
Copy link
Owner

Close due to inactivity

@OldPanda
Copy link
Owner

This will be addressed by #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants