Commit d1beb5a
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 2cc7b01 commit d1beb5a
File tree
5 files changed
+97
-19
lines changed- .github/workflows
- mk
- src
5 files changed
+97
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
304 | | - | |
305 | | - | |
306 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
307 | 339 | | |
308 | 340 | | |
309 | 341 | | |
310 | 342 | | |
311 | 343 | | |
312 | 344 | | |
313 | 345 | | |
314 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
315 | 355 | | |
316 | 356 | | |
317 | 357 | | |
| |||
435 | 475 | | |
436 | 476 | | |
437 | 477 | | |
| 478 | + | |
438 | 479 | | |
439 | 480 | | |
440 | 481 | | |
441 | 482 | | |
442 | 483 | | |
443 | 484 | | |
444 | 485 | | |
445 | | - | |
| 486 | + | |
446 | 487 | | |
447 | 488 | | |
448 | 489 | | |
| |||
499 | 540 | | |
500 | 541 | | |
501 | 542 | | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
510 | 551 | | |
511 | 552 | | |
512 | 553 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 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