Commit 7643092
committed
[libcxx][CI] Prepare ARM Picolib builds for upgrade to clang 21
Some time between Clang 19 and Clang 21, changes were made to the
bare metal toolchain driver, and on top of that we (Linaro) updated
our host OS to Ubuntu Jammy. This has caused the tests to not
build with clang-21.
1. The host version of ld (2.38) not being able to parse certain
DWARFv5 constructs.
Normally I would switch to lld instead. However when I did this,
I found that Picolib's ARM linker script uses ALIGN_WITH_INPUT,
which lld does not support.
So instead I'm sticking with ld and falling back to DWARFv4.
Until such time as we upgrade the host to Ubuntu Noble.
(if you're wondering how we can use ld in the first place, given
the host is AArch64, the AArch64 ld is also capable of linking
ARM 32-bit binaries)
2. Many missing symbol errors.
This is solved in two parts:
* Adding libunwind to the testing linker flags.
* Putting the libraries in a group so that the ordering does
not matter.
And finally for exception_guard.odr.sh.cpp, I have moved the
object files to before the linker flags. ld is sensitive to
the order of objects on the command line, and this should not
break other configurations.
I've tested these with 19.1.7 too so my plan is to land these
changes first, then proceed with upgrading to 21.x.1 parent 83b48b1 commit 7643092
File tree
6 files changed
+13
-13
lines changed- libcxxabi/test/configs
- libcxx
- cmake/caches
- test
- configs
- libcxx/utilities
- utils/ci
- libunwind/test/configs
6 files changed
+13
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments