Skip to content

Unable to build/run tests with cmake on RHEL 7/8 #50803

@omajid

Description

@omajid

I have been using this command to test that runtime's main branch can build and run tests on RHEL 7 and CMake 3.6.2:

./build.sh --subset clr+libs+libs.tests --test --runtimeconfiguration Release --librariesConfiguration Debug /p:WithoutCategories=IgnoreForCI /p:NoPgoOptimize=true

Some time between April 4 (commit 21490fc) and April 6 (commit bc8be66), this command regressed. Now it fails to build:

  -- Performing Test HAVE_FUNCTIONAL_PTHREAD_ROBUST_MUTEXES
  -- Performing Test HAVE_FUNCTIONAL_PTHREAD_ROBUST_MUTEXES - Success
  -- Found PythonInterp: /usr/bin/python (found version "2.7.5") 
  CMake Error at pal/tests/CMakeLists.txt:1 (cmake_minimum_required):
    CMake 3.14.5 or higher is required.  You are running version 3.6.2
  
  
  -- Configuring incomplete, errors occurred!
  See also "/home/tester/runtime/artifacts/obj/coreclr/Linux.x64.Release/CMakeFiles/CMakeOutput.log".
  See also "/home/tester/runtime/artifacts/obj/coreclr/Linux.x64.Release/CMakeFiles/CMakeError.log".
  ~/runtime/src/coreclr
  ~/runtime/artifacts/obj/coreclr/Linux.x64.Release ~/runtime/src/coreclr
  Executing make install -j 4
  make: *** No rule to make target `install'.  Stop.
  ~/runtime/src/coreclr
  Failed to build "CoreCLR component".

Is the change that broke this an accident or is this an intentional? Is building/running tests on cmake 3.6.2 a supported configuration?

cc @dleeapho @tmds

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions