Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.92 KB

File metadata and controls

55 lines (38 loc) · 1.92 KB

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 environmentTroubleshoot

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.txt for platform-specific logic
  • Use -DCMAKE_VERBOSE_MAKEFILE=ON for 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