2021-03-01 15:46:25 +00:00
|
|
|
# Simple Make Example
|
2019-11-26 18:13:54 +00:00
|
|
|
|
2021-03-01 15:46:25 +00:00
|
|
|
## Dependencies
|
2019-11-26 18:13:54 +00:00
|
|
|
|
2021-03-01 15:46:25 +00:00
|
|
|
- clang
|
|
|
|
- bazel
|
|
|
|
|
|
|
|
## Executing the Example
|
2019-11-26 18:13:54 +00:00
|
|
|
|
|
|
|
To execute the example, run
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bazel test ...
|
|
|
|
```
|
|
|
|
|
2021-03-01 15:46:25 +00:00
|
|
|
## Troubleshooting
|
2019-11-26 18:13:54 +00:00
|
|
|
|
|
|
|
If you receive an error of the form:
|
|
|
|
|
2021-03-01 15:46:25 +00:00
|
|
|
```text
|
2019-11-26 18:13:54 +00:00
|
|
|
ccache: FATAL: Failed to create /home/$USER/.ccache/2/f: Read-only file system
|
|
|
|
```
|
|
|
|
|
|
|
|
This is likely because you're have ccache set as your compiler. You can either
|
|
|
|
disable ccache, or allow the sandbox to write to ~/.ccache:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bazel test --sandbox_writable_path ~/.ccache ...
|
|
|
|
```
|