Skip to content

Compatibility Issue with Protobuf and CMake Version in install.sh #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
libalis opened this issue May 4, 2025 · 1 comment
Closed

Comments

@libalis
Copy link

libalis commented May 4, 2025

Description:
When running icsc/install.sh, the script fails during the Protobuf download and build process due to an incompatibility with the CMake version on the system. The error message encountered is as follows:

Using ICSC_HOME = /home/robert/Downloads/sc_tools
GCC_INSTALL_PREFIX = /usr
Downloading and building Protobuf/LLVM at /home/robert/Downloads/sc_tools/build_deps...
--2025-05-04 14:06:13--  https://github.com/protocolbuffers/protobuf/archive/v3.19.4.tar.gz
CA-Zertifikat »/etc/ssl/certs/ca-certificates.crt« wurde geladen
Auflösen des Hostnamens github.com (github.com)… 140.82.121.3
Verbindungsaufbau zu github.com (github.com)|140.82.121.3|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
Platz: https://codeload.github.com/protocolbuffers/protobuf/tar.gz/refs/tags/v3.19.4 [folgend]
--2025-05-04 14:06:13--  https://codeload.github.com/protocolbuffers/protobuf/tar.gz/refs/tags/v3.19.4
Auflösen des Hostnamens codeload.github.com (codeload.github.com)… 140.82.121.10
Verbindungsaufbau zu codeload.github.com (codeload.github.com)|140.82.121.10|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 5293745 (5,0M) [application/x-gzip]
Wird in »v3.19.4.tar.gz« gespeichert.

v3.19.4.tar.gz                      100%[=================================================================>]   5,05M  5,82MB/s    in 0,9s    

»Last-modified«-Kopfzeile fehlt -- Zeitstempel abgeschaltet.
2025-05-04 14:06:14 (5,82 MB/s) - »v3.19.4.tar.gz« gespeichert [5293745/5293745]

CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.                                                                                 
                                                                                                                                              
  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax                                                                  
  to tell CMake that the project requires at least <min> but has been updated                                                                 
  to work with policies introduced by <max> or earlier.                                                                                       
                                                                                                                                              
  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.                                                                       
                                                                                                                                              
                                                                                                                                              
-- Configuring incomplete, errors occurred!

Suggested Solution:

  • Update Protobuf version: The script currently downloads Protobuf v3.19.4, consider updating the Protobuf version in the script to a more recent release.
  • Ensure CMake version compatibility: Modify the CMakeLists.txt or the script to specify that the minimum required CMake version should be >= 3.5. Alternatively, include a flag like -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to ensure compatibility for users with older versions of CMake.

Tested CMake Versions:

  • 3.31
  • 4.0
@libalis
Copy link
Author

libalis commented May 4, 2025

Works with Ubuntu LTS in Distrobox.

@libalis libalis closed this as completed May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant