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

clash-meta build failed #3637

Closed
WUST-mengqinyu opened this issue Feb 12, 2024 · 4 comments
Closed

clash-meta build failed #3637

WUST-mengqinyu opened this issue Feb 12, 2024 · 4 comments

Comments

@WUST-mengqinyu
Copy link

WUST-mengqinyu commented Feb 12, 2024

问题类型 / Type of issues

  • 打包错误 / packaging error

受影响的软件包 / Affected packages


As golang/go#64875 mentioned, this build need CGO_ENABLED=1

image

@lilacbot
Copy link
Contributor

lilacbot commented Feb 12, 2024

Some maintainers (perhaps outside contributors) cannot be assigned: @sukanka

@lilacbot lilacbot reopened this Feb 12, 2024
@sukanka
Copy link
Contributor

sukanka commented Feb 12, 2024

please open an upstream issue, as CGO_ENABLED is set in the makefile. https://github.com/MetaCubeX/mihomo/blob/d78b2b1cfb2d302685478ec6fcb8932374b3223d/Makefile#L15

@What-a-mess
Copy link

CGO_ENABLED is indeed set in the upstream makefile, but the upstream doesn't have the -linkmode external in -ldflags.

According to the error message, the extra parameters seem to be the cause

curious about what are those parameters for 🤔

@Zenvie
Copy link
Contributor

Zenvie commented Mar 27, 2024

#3724

@Zenvie Zenvie closed this as completed Mar 27, 2024
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

5 participants