Commit 6fbd9db
committed
ci: 冷机上目标 C 库是惰性安装的,构建要跑两遍
三个仓库的失败共享同一条根因,而报错都指向头文件、没有一处指向真正
没发生的那件事:
inttypes.h:24:15: fatal error: 'inttypes.h' file not found
riscv_virt_rt.cppm:9:10: fatal error: 'stdio.h' file not found
mcpp 是在**构建过程中**从目标行安装目标 C 库的。于是一台从没为这个
triple 构建过的机器,第一遍就会去编译需要那些头的源码,而它们还不存在;
第二遍就有了。mcpp 自己对同类情形的措辞是「expected on the first build
in a fresh MCPP_HOME; a second build resolves it」。
所以预热是**两遍,第一遍允许失败**。1 parent eceb97c commit 6fbd9db
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
202 | 209 | | |
0 commit comments