← All tasks
cppantlr/antlr4 #4807Not a task: not reproduced

antlr4 C++ runtime builds fail on `cmake 4.0.0`

envgap__antlr__antlr4-4807

01 / FAILURE SIGNATURE

As reported upstream

Compatibility with CMake < 3.5 has been removed from CMake.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
7b53e13ba005b978e2603f3ff81a0cb7cc98f689
Manifest
runtime/Cpp/runtime/CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

antlr/antlr4 #4807 · read the original issue
So, my builds started to fail because of the `googletest-src` CMake project. It says in the logs: `"Compatibility with CMake < 3.5 has been removed from CMake."`


```log
[ 58%] Performing patch step for 'antlr4_runtime'
patching file '/home/oxender/הורדות/frankie-main (1)/frankie-main/transpiler/build/antlr4_runtime/src/antlr4_runtime/runtime/Cpp/runtime/src/atn/ProfilingATNSimulator.cpp'
patching file '/home/oxender/הורדות/frankie-main (1)/frankie-main/transpiler/build/antlr4_runtime/src/antlr4_runtime/runtime/Cpp/runtime/antlrcpp.xcodeproj/project.pbxproj'
patching file '/home/oxender/הורדות/frankie-main (1)/frankie-main/transpiler/build/antlr4_runtime/src/antlr4_runtime/runtime/Cpp/runtime/CMakeLists.txt'
[ 61%] Performing configure step for 'antlr4_runtime'
loading initial cache file /home/oxender/הורדות/frankie-main (1)/frankie-main/transpiler/build/antlr4_runtime/tmp/antlr4_runtime-cache-Release.cmake
-- Building without demo. To enable demo build use: -DWITH_DEMO=True
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Warning (dev) at /usr/share/cmake-4.0/Modules/FetchContent.cmake:1373 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  runtime/CMakeLists.txt:71 (FetchContent_Declare)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at _deps/googletest-src/CMakeLists.txt:4 (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!
gmake[2]: *** [CMakeFiles/antlr4_runtime.dir/build.make:96: antlr4_runtime/src/antlr4_runtime-stamp/antlr4_runtime-configure] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:164: CMakeFiles/antlr4_runtime.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
```
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]