Repository navigation
Commit c24bbeb
committed
[CI][ORCJIT] Source manylinux LLVM from a release, link libstdc++ dynamically
The orcjit addon linked against conda-forge's LLVM, which is built with a newer
GCC whose libstdc++ carries GLIBCXX_3.4.29+ symbols. Those exceed the
manylinux_2_28 floor the project standardized on in #675, which is why the addon
carried a -static-libstdc++/-static-libgcc workaround.
Build LLVM from source inside the manylinux_2_28 image instead (gcc-toolset-14,
static + PIC + RTTI, native target only), publish the install prefix as a
compressed release asset, and have CI download it. Because that toolchain sits at
the manylinux ABI floor, the workaround is no longer needed:
* Linux acquires /opt/llvm by downloading llvm-<version>-linux-<arch>.tar.zst and
extracting it. macOS/Windows keep the conda-forge binaries (no GLIBCXX floor);
their actions/cache step is split out so their install gating is unchanged.
Everything downstream is unchanged -- same /opt/llvm, same LLVM_PREFIX, same
bind-mount into the build container.
* Drop -static-libstdc++/-static-libgcc, so the addon no longer bakes in a private
copy of the C++ runtime.
The by-name --exclude-libs list is deliberately kept rather than collapsed to
--exclude-libs,ALL. The embedded liborc_rt.a is linked by the JIT at run time and
resolves its C++ runtime through the process, including archive-only helpers such
as _ZSt28__throw_bad_array_new_lengthv that libstdc++.so does not export; ALL
localizes those and the ORC platform fails to materialize. That is true whether
libstdc++ is static or dynamic, so the comment there is corrected accordingly.
Add an explicit ABI assertion, because auditwheel does not fail on a too-new
symbol: it silently selects a laxer tag. A regression to GLIBCXX_3.4.30 would
still yield a valid manylinux_2_35 wheel and pass CI unnoticed. The new step
fails unless every wheel is tagged manylinux_2_28 or lower, and logs the highest
GLIBCXX/CXXABI versions imported plus the C++ runtime references.
Prebuilt LLVM is produced out-of-band, so this removes the ~50 minute from-source
build from the CI path; the Linux orcjit jobs now spend a few minutes downloading.1 parent 135c2e8 commit c24bbeb
3 files changed
Lines changed: 131 additions & 17 deletions
File tree
- .github
- actions/build-orcjit-wheel
- workflows
- addons/tvm_ffi_orcjit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
33 | 44 | | |
34 | 45 | | |
35 | 46 | | |
| |||
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
46 | | - | |
47 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
48 | 64 | | |
49 | 65 | | |
50 | 66 | | |
51 | 67 | | |
52 | | - | |
| 68 | + | |
53 | 69 | | |
54 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
55 | 93 | | |
56 | | - | |
| 94 | + | |
57 | 95 | | |
58 | 96 | | |
59 | 97 | | |
60 | 98 | | |
61 | 99 | | |
62 | 100 | | |
63 | 101 | | |
64 | | - | |
| 102 | + | |
65 | 103 | | |
66 | 104 | | |
67 | 105 | | |
| |||
72 | 110 | | |
73 | 111 | | |
74 | 112 | | |
75 | | - | |
76 | | - | |
| 113 | + | |
| 114 | + | |
77 | 115 | | |
78 | 116 | | |
79 | 117 | | |
80 | | - | |
| 118 | + | |
| 119 | + | |
81 | 120 | | |
82 | 121 | | |
83 | 122 | | |
84 | 123 | | |
85 | 124 | | |
86 | 125 | | |
87 | | - | |
| 126 | + | |
88 | 127 | | |
89 | 128 | | |
90 | 129 | | |
| |||
97 | 136 | | |
98 | 137 | | |
99 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
100 | 143 | | |
101 | 144 | | |
102 | 145 | | |
| |||
116 | 159 | | |
117 | 160 | | |
118 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
220 | 231 | | |
221 | 232 | | |
222 | 233 | | |
| |||
237 | 248 | | |
238 | 249 | | |
239 | 250 | | |
| 251 | + | |
| 252 | + | |
240 | 253 | | |
241 | 254 | | |
242 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 151 | | |
156 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| |||
0 commit comments