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

Cross-compiling for arm on amd requires runtime/cgo #1

Closed
skifli opened this issue Jan 7, 2023 · 2 comments
Closed

Cross-compiling for arm on amd requires runtime/cgo #1

skifli opened this issue Jan 7, 2023 · 2 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers
Milestone

Comments

@skifli
Copy link
Owner

skifli commented Jan 7, 2023

Description of the bug

Compiling for arm on amd requires the runtime/cgo module to be enabled, however by default it is disabled. It can be enabled by setting the CGO_ENABLED environment variable to 1. However, this in turn requires a C / C++ compiler (specifically gcc) to be installed. This should be added to a known issues section of the README. First however, it should be checked whether go will use clang if it is in PATH, since clang is more widely used than gcc.

Affected OSes and architectures

  • Linux - amd64
  • Windows - amd64

Note

Likely also is a problem on macOS - amd64, but I have no way of verifiyng this.

@skifli skifli added the documentation Improvements or additions to documentation label Jan 7, 2023
@skifli skifli self-assigned this Jan 7, 2023
@skifli skifli added this to the v1.0.1 milestone Jan 7, 2023
@skifli skifli added good first issue Good for newcomers bug Something isn't working labels Jan 7, 2023
@skifli skifli pinned this issue Jan 7, 2023
@skifli
Copy link
Owner Author

skifli commented Jan 7, 2023

I have checked, and go only looks for gcc, and not clang.

@skifli skifli closed this as completed in 4d0b443 Jan 7, 2023
@skifli
Copy link
Owner Author

skifli commented Jan 7, 2023

Added to known issues in the README here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant