Commit 30ac025
committed
Fix build system regressions
This commit addresses multiple regressions introduced in recent changes:
1. DTB compilation regression
- DTB dependencies moved outside CC_IS_EMCC conditional
- Ensures DTB builds for system mode regardless of compiler
- Fixes mk/wasm.mk structure for cross-platform consistency
2. Makefile syntax error in mk/toolchain.mk
- Fixed TAB characters before $(warning) on lines 25, 28
- Changed to spaces for proper control flow
- This was blocking all Makefile parsing
3. emcc configuration pollution
- Added 'make distclean' before emcc builds in workflow
- Prevents ENABLE_SYSTEM=1 from leaking between builds
- Fixes "build/minimal.dtb does not exist" errors
4. Ubuntu ARM64 apt-get failures
- Implemented exponential backoff retry mechanism (30s, 60s delays)
- Added pipefail to preserve apt exit codes through tee
- Explicit APT_EXIT capture to detect masked failures
- Added InRelease to failure pattern (modern combined Release+GPG)
- Ignore non-critical dep11 metadata failures
- Focus on core package indices (Packages/Sources/Release/InRelease)
5. TSAN cross-compiler compatibility (fixed __has_feature issue)
- Changed from defined(__has_feature) to defined(__clang__)
- GCC doesn't support __has_feature, causing preprocessor errors
- __has_feature only works when __clang__ is defined
- Ensures __tsan_default_options() works with both GCC and clang
6. TSAN cross-platform compatibility
- Guarded setarch with ifeq ($(UNAME_S),Linux) in Makefile
- setarch doesn't exist on macOS, now conditionally applied
- macOS TSAN builds require SIP disabled for ASLR control
7. Trace functionality regression
- Reverted .log_level from LOG_INFO back to LOG_TRACE
- LOG_INFO suppressed rv_log_trace() stream used by -t flag
- Restores instruction trace output for debugging1 parent d2e4849 commit 30ac025
File tree
5 files changed
+96
-42
lines changed- .github/workflows
- mk
- src
5 files changed
+96
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
345 | 355 | | |
346 | 356 | | |
347 | 357 | | |
348 | 358 | | |
349 | 359 | | |
350 | 360 | | |
351 | 361 | | |
352 | | - | |
353 | | - | |
354 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
355 | 371 | | |
356 | 372 | | |
357 | 373 | | |
| |||
475 | 491 | | |
476 | 492 | | |
477 | 493 | | |
| 494 | + | |
478 | 495 | | |
479 | 496 | | |
480 | 497 | | |
481 | 498 | | |
482 | 499 | | |
483 | 500 | | |
484 | 501 | | |
485 | | - | |
| 502 | + | |
486 | 503 | | |
487 | 504 | | |
488 | 505 | | |
| |||
539 | 556 | | |
540 | 557 | | |
541 | 558 | | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
550 | 567 | | |
551 | 568 | | |
552 | 569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
392 | 397 | | |
393 | 398 | | |
394 | 399 | | |
395 | | - | |
| 400 | + | |
396 | 401 | | |
397 | 402 | | |
398 | 403 | | |
| |||
437 | 442 | | |
438 | 443 | | |
439 | 444 | | |
440 | | - | |
| 445 | + | |
441 | 446 | | |
442 | 447 | | |
443 | 448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
42 | 56 | | |
43 | 57 | | |
44 | 58 | | |
| |||
304 | 318 | | |
305 | 319 | | |
306 | 320 | | |
307 | | - | |
| 321 | + | |
308 | 322 | | |
309 | 323 | | |
310 | 324 | | |
| |||
0 commit comments