Skip to content

Commit

Permalink
Update the spanify plugin README with common issues.
Browse files Browse the repository at this point in the history
When trying out the spanify plugin for the first time on my glinux
machine I encountered a couple issues that needed to be addressed
before I was able to run all the tests.

Update the README to cover these situations for other folks in the
future.

Change-Id: I5b37e5a13badfaf99588781418866029741a6fb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5771137
Auto-Submit: Stephen Nusko <[email protected]>
Commit-Queue: Arthur Sonzogni <[email protected]>
Reviewed-by: Arthur Sonzogni <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1339071}
  • Loading branch information
Stephen Nusko authored and Chromium LUCI CQ committed Aug 8, 2024
1 parent cc8b3e8 commit d62f932
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tools/clang/spanify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,29 @@ and you can build it again incrementally using:
./tools/clang/spanify/tests/run_all_tests.py
```

### Troubleshooting

You will need to have the `python` binary reachable from your path to run the
tests. You can route `python3` to just `python` with the following install.

```bash
sudo apt install python-is-python3
```

Finally you need to have a version of libstdc++ installed. If you see errors
like:
```bash
Failed to process deref-expr-actual.cc
tools/clang/spanify/tests/deref-expr-actual.cc:4:10: fatal error: 'vector' file not found
4 | #include <vector>
| ^~~~~~~~
1 error generated.
```

You can install libstdc++ as follows:
```bash
sudo apt install libstdc++-14-dev
```

## Using the tool

Expand Down

0 comments on commit d62f932

Please sign in to comment.