Commit c102fab
committed
Hand the contract a launcher it can execute
The Intel macOS host built its whole SDK, validated it, and then died
with
no such file or directory
naming nothing. The Rosetta gate passes `arch -x86_64` as the launcher
that lets an arm64 machine run what it cross-built, and that arrives as
one string. Interpolated into a VERBATIM COMMAND, a string with a space
in it is one argv[0], so what was looked up on disk was a program called
"arch -x86_64":
$ cmake -E env FOO=1 "arch -x86_64" cmake -E echo ran
no such file or directory
$ cmake -E env FOO=1 arch -x86_64 cmake -E echo ran
ran
The Intel host is cross-built, so the contract is the only thing that
executes what it produced: without it the host publishes unverified,
which is the situation the gate was written to end.
Second defect of the same commit, and it was hidden behind the first --
the build never reached the contract while the smoke test was killing
the arm64 leg it cross-builds from. tests/cmake/host-runner-command.cmake
runs the shape the target uses, with a two-word launcher that exists
wherever the test runs; against a runner that is not split it fails
three ways, one of them by not running the command at all.1 parent d831fe3 commit c102fab
3 files changed
Lines changed: 64 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
139 | | - | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments