release:compile & release with esp clang/llvm#1253
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1253 +/- ##
=======================================
Coverage 90.16% 90.17%
=======================================
Files 42 42
Lines 11786 11796 +10
=======================================
+ Hits 10627 10637 +10
Misses 1026 1026
Partials 133 133 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f892647 to
633b64a
Compare
a13ee9d to
9cea322
Compare
e0310ca to
a190118
Compare
bf575b5 to
68623f0
Compare
8f17c53 to
6ce28e4
Compare
eb61d13 to
d0cf57f
Compare
88b3e99 to
f66bbb7
Compare
bf778bd to
7907e69
Compare
5a04a31 to
2f89ee0
Compare
| - -X github.com/goplus/llgo/internal/env.buildVersion=v{{.Version}} | ||
| - -X github.com/goplus/llgo/internal/env.buildTime={{.Date}} | ||
| - -X github.com/goplus/llgo/xtool/env/llvm.ldLLVMConfigBin=/usr/lib/llvm-19/bin/llvm-config | ||
| - '-extldflags=-Wl,-rpath,$ORIGIN/../crosscompile/clang/lib' |
There was a problem hiding this comment.
NOTE:To avoid $ORIGIN being unexpectedly escaped in yml, it needs to be added in -extldflags
avoid transform
2f89ee0 to
a17f1f0
Compare
|
/review |
Code Review for PR #1253: ESP Clang GLIBC Compatibility FixI've completed a comprehensive review of this PR that addresses GLIBC compatibility issues with LLVM 19.1.2 prebuilt libraries. Here's my detailed analysis: ✅ Overall Assessment: GoodThis PR effectively addresses the core GLIBC compatibility issue by switching to ESP Clang toolchain and updating the build/release infrastructure accordingly. The changes are well-structured and comprehensive. 📋 Detailed Review by File1.
|
|
@xushiwei need review |
Resolved #1251
Release result at https://github.com/luoliwoshang/llgo/releases/tag/v0.0.1-test-espclang-5 and it's action https://github.com/luoliwoshang/llgo/actions/runs/17578939811
LLGO_ROOT/crosscompile/clangLLGO_ROOT/crosscompile/clangGLIBC Compatibility Issue with LLVM 19.1.2 Prebuilt Libraries (Resolved)
Problem Description
The current prebuilt LLVM libraries from espressif-llvm-project-prebuilt v19.1.2_20250830 are causing linking failures due to GLIBC version incompatibility:
Root Cause
The prebuilt libraries were compiled against newer GLIBC versions (2.33+ and 2.34+) but goreleaser environments still use older GLIBC versions, causing undefined symbol errors during linking. goreleaser/goreleaser-cross#106.
And the debian 12 is in supporting with lot's hard goreleaser/goreleaser-cross#106 (comment)
Impact
Blocks development on systems with GLIBC < 2.34
Affects CI/CD pipelines using older base images
Impacts cross-compilation workflows for embedded targets
solution
try to compile the llvm with older linux system
and it's actually a issue about ubuntu20 & debian11 compatibility #1265
fixed at
linux/arm goplus/espressif-llvm-project-prebuilt#22
linux/amd goplus/espressif-llvm-project-prebuilt#20
some verify
macos/arm64linux/amd64macos/amd64linux/arm64