Skip to content

fix: add CGO_ENABLED=0 for static build to fix cross-platform GLIBC e…#722

Merged
yinwm merged 1 commit intosipeed:mainfrom
ihao:main
Feb 24, 2026
Merged

fix: add CGO_ENABLED=0 for static build to fix cross-platform GLIBC e…#722
yinwm merged 1 commit intosipeed:mainfrom
ihao:main

Conversation

@ihao
Copy link

@ihao ihao commented Feb 24, 2026

📝 Description

Add CGO_ENABLED=0 to Makefile for static linking, preventing "GLIBC_2.34 not found" errors when running on systems with older glibc versions.

🗣️ Type of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📖 Documentation update
  • ⚡ Code refactoring (no functional changes, no api changes)

🤖 AI Code Generation

  • 🤖 Fully AI-generated (100% AI, 0% Human)
  • 🛠️ Mostly AI-generated (AI draft, Human verified/modified)
  • 👨‍💻 Mostly Human-written (Human lead, AI assisted or none)

🔗 Related Issue

Fixes #720

📚 Technical Context (Skip for Docs)

  • Reference URL:
  • Reasoning:

🧪 Test Environment

  • **Hardware:VPS
  • **OS:OpencloudOS 9.4 and Ubuntu 18.04l LTS
  • Model/Provider:
  • Channels:

📸 Evidence (Optional)

☑️ Checklist

  • My code/docs follow the style of this project.
  • I have performed a self-review of my own changes.
  • I have updated the documentation accordingly.

Copy link
Collaborator

@yinwm yinwm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yinwm
Copy link
Collaborator

yinwm commented Feb 24, 2026

Thanks for the pr

@yinwm yinwm merged commit 18ba888 into sipeed:main Feb 24, 2026
2 checks passed
@Orgmar
Copy link
Contributor

Orgmar commented Feb 25, 2026

@ihao Setting CGO_ENABLED=0 for static builds is a solid fix. GLIBC version mismatches across different Linux distros can be a real headache when deploying, good to have this sorted.

We have a PicoClaw Dev Group on Discord where contributors hang out and collaborate. If you'd like to join, send an email to support@sipeed.com with the subject [Join PicoClaw Dev Group] ihao and we'll send you the invite.

hyperwd pushed a commit to hyperwd/picoclaw that referenced this pull request Mar 5, 2026
fix: add CGO_ENABLED=0 for static build to fix cross-platform GLIBC e…
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

Successfully merging this pull request may close these issues.

[BUG] Binary fails to run on older Linux systems due to dynamic linking

3 participants