Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 2214541 - rdma-core-46.0-1.fc39 FTBFS: CMake Error at buildlib/RDMA_EnableCStd.cmake:63: Unknown CMake command "CHECK_C_SOURCE_COMPILES"
Summary: rdma-core-46.0-1.fc39 FTBFS: CMake Error at buildlib/RDMA_EnableCStd.cmake:63...
Alias: None
Product: Fedora
Classification: Fedora
Component: cmake
Version: rawhide
Hardware: Unspecified
OS: Linux
Target Milestone: ---
Assignee: Björn 'besser82' Esser
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F39FTBFS
TreeView+ depends on / blocked
Reported: 2023-06-13 09:54 UTC by Petr Pisar
Modified: 2023-06-14 06:51 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2023-06-13 22:09:55 UTC
Type: ---

Attachments (Terms of Use)

Description Petr Pisar 2023-06-13 09:54:37 UTC
rdma-core-46.0-1.fc39 fails to build in Fedora 39:

-- The C compiler identification is GNU 13.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at buildlib/RDMA_EnableCStd.cmake:63 (CHECK_C_SOURCE_COMPILES):
  Unknown CMake command "CHECK_C_SOURCE_COMPILES".
Call Stack (most recent call first):
  CMakeLists.txt:209 (RDMA_Check_C_Compiles)
-- Configuring incomplete, errors occurred!

A difference between passing and failing build root is at <>. An upgrade of cmake from 3.26.4-4.fc39 to 3.27.0~rc1-1.fc39 looks suspicious.

Reproducible: Always

Comment 1 Petr Pisar 2023-06-13 10:00:46 UTC
See <>.

Comment 2 Michael Catanzaro 2023-06-13 14:11:25 UTC
I cannot build WebKitGTK either.

Comment 3 Michael Catanzaro 2023-06-13 14:12:33 UTC
Looks like this is already fixed by and we just need to wait for it to reach the buildroot.

Comment 4 Michael Catanzaro 2023-06-13 22:09:55 UTC
Fixed now

Comment 5 Michal Schmidt 2023-06-14 06:51:37 UTC
I filed a PR for rdma-core upstream to add the missing CMake module include:

Note You need to log in before you can comment on or make changes to this bug.