Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Find GCC Version During Milvus Compilation

Symptom

An error is reported during compilation, indicating that Conan does not find the target GCC version.

Key Process and Cause Analysis

In the configuration file of Conan, the specified GCC version number contains only two valid digits. However, the GCC version number here usually contains three valid digits.

Conclusion and Solution

When Conan does not find the GCC version, modify ~/.conan/settings.yml (this file is displayed only after compilation is performed once). Generally, the problem is that only the second digit of the GCC version is entered in the configuration file, however, the GCC version generally has three digits (for example, 9.3 -> 9.3.0 and 10.3 -> 10.3.1).

1
2
3
compiler:
    gcc:
        version: ["10.3", "10.3.1", "10.4"]