Skip to content

Commit 95858df

Browse files
committed
Add instructions for 'failed to build archive' error
1 parent ea0bb71 commit 95858df

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Readme.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,17 @@ set substitute-path /usr/src/debug/gcc /path/to/gcc-repo/gcc
184184
185185
TODO(antoyo): but that's not what I remember I was doing.
186186
187+
### `failed to build archive` error
188+
189+
When you get this error:
190+
191+
```
192+
error: failed to build archive: failed to open object file: No such file or directory (os error 2)
193+
```
194+
195+
That can be caused by the fact that you try to compile with `lto = "fat"`, but you didn't compile the sysroot with LTO.
196+
TODO: check this ^ .
197+
187198
### How to debug GCC LTO
188199
189200
Run do the command with `-v -save-temps` and then extract the `lto1` line from the output and run that under the debugger

0 commit comments

Comments
 (0)