Troubleshooting: Port Installation & Build Errors
This guide helps diagnose and fix common issues when creating or updating ports. It serves as a central troubleshooting hub in the workflow:
- Create port → Install port → Troubleshoot → Update port
- Update port → Install port → Troubleshoot
- Check environment → Troubleshoot
Related prompts: /install-port, /check-environment, /review-port
Common Error Categories
CMake Configuration Errors
When encountering CMake configuration issues:
- Check CMake version compatibility
- Verify required CMake modules are available
- Review
CMakeLists.txtfor platform-specific logic - Use
-DCMAKE_VERBOSE_MAKEFILE=ONfor detailed output
Resources:
Compiler Errors
When encountering compiler errors:
- Verify compiler version meets minimum requirements
- Check for platform-specific code paths
- Review compiler flags in portfile and triplet
- Consider adding patches for compatibility fixes
Resources:
Linker Errors
When encountering linker errors:
Resources:
vcpkg-Specific Issues
Common vcpkg pitfalls:
- Triplet mismatches: Ensure consistent triplet usage
- Overlay ports conflicts: Check overlay port priority
- Feature flag issues: Verify feature dependencies
- Version baseline: Confirm version entries are up-to-date