| name | build-log |
| description | View and analyze build logs. Use when user wants to see build errors, check previous build output, or debug build failures. |
Build Log Viewer
View and analyze PyGPUkit build logs.
Log Location
Build logs are stored in .claude/logs/build/
Format: build_sm{SM}_cuda{VERSION}_{TIMESTAMP}.log
Usage
ls -lt .claude/logs/build/
cat .claude/logs/build/$(ls -t .claude/logs/build/ | head -1)
cat .claude/logs/build/build_sm120a_cuda13.1_20241227_120000.log
grep -i error .claude/logs/build/$(ls -t .claude/logs/build/ | head -1)
grep -i warning .claude/logs/build/$(ls -t .claude/logs/build/ | head -1)
tail -50 .claude/logs/build/$(ls -t .claude/logs/build/ | head -1)
Common Error Patterns
| Pattern | Meaning |
|---|
nvcc fatal | CUDA compilation error |
error: no operator | C++ type mismatch |
undefined reference | Linker error (missing symbol) |
CMake Error | Build configuration issue |
fatal error C1083 | Missing header file |
Instructions
- When build fails, first list recent logs
- Read the latest log or the specific failed build log
- Search for
error: or fatal: patterns
- Report the specific error message and context
- Suggest fixes based on the error type
Cleanup
Logs are automatically cleaned up (last 10 kept). To manually clean:
find .claude/logs/build/ -mtime +7 -delete
ls -t .claude/logs/build/*.log | tail -n +6 | xargs rm -f