Skip to content

Commit

Permalink
Nvukobrat/update common error docs (#109)
Browse files Browse the repository at this point in the history
* Common failure resolution for SFPI build issues

* Ignore clangd cache dir
  • Loading branch information
nvukobratTT authored Jul 8, 2024
1 parent d978515 commit d153363
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build
third_party/tt-metal
.DS_STORE
.vscode/*
.cache
28 changes: 28 additions & 0 deletions docs/src/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ mdbook serve build/docs/book
## Dependencies

### Ubuntu Common

Make sure to have Git LFS installed. You can install it with the following command:

```bash
sudo apt-get install git-lfs
```

### Ubuntu 22.04

We need to install Ninja which can be done with the following command
Expand Down Expand Up @@ -155,3 +163,23 @@ CMake Error at CMakeLists.txt:2 (project):
```

If you get the following error, it means you need to install clang which you can do with `sudo apt install clang` on Ubuntu.

### `sfpi`, `trisc`, `ncrisc` build failure

```
pybuda/third_party/tt-mlir/third_party/tt-metal/src/tt-metal/tt_metal/third_party/sfpi/compiler/bin/riscv32-unknown-elf-g++: 1: version: not found
pybuda/third_party/tt-mlir/third_party/tt-metal/src/tt-metal/tt_metal/third_party/sfpi/compiler/bin/riscv32-unknown-elf-g++: 2: oid: not found
size: '1961632': No such file
size: '1961632': No such file
size: '1961632': No such file
Always | FATAL | ncrisc build failed
```

If you got the above error, it means that SFPI or similar component build failed. First, make sure you have GIT LFS setup (e.g. sudo apt-get install git-lfs). Then, try to pull SFPI submodule manually:

```bash
cd third_party/tt-mlir/third_party/tt-metal/src/tt-metal
git submodule foreach 'git lfs fetch --all && git lfs pull’
```
Then, try to build again.

0 comments on commit d153363

Please sign in to comment.