Determining if the function dwfl_module_build_id exists in the elf failed with the following output:
Change Dir: /home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_d1241/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp'
/usr/bin/make  -f CMakeFiles/cmTC_d1241.dir/build.make CMakeFiles/cmTC_d1241.dir/build
make[2]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d1241.dir/CheckFunctionExists.c.o
/usr/bin/gcc   -O2 -I/home/buildroot/autobuild/instance-1/output-1/host/include -pthread -DCHECK_FUNCTION_EXISTS=dwfl_module_build_id -o CMakeFiles/cmTC_d1241.dir/CheckFunctionExists.c.o -c /home/buildroot/autobuild/instance-1/output-1/host/share/cmake-3.22/Modules/CheckFunctionExists.c
Linking C executable cmTC_d1241
/home/buildroot/autobuild/instance-1/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d1241.dir/link.txt --verbose=1
/usr/bin/gcc -O2 -I/home/buildroot/autobuild/instance-1/output-1/host/include -pthread -DCHECK_FUNCTION_EXISTS=dwfl_module_build_id -rdynamic CMakeFiles/cmTC_d1241.dir/CheckFunctionExists.c.o -o cmTC_d1241  -Wl,-rpath,/home/buildroot/autobuild/instance-1/output-1/host/usr/lib -lelf /home/buildroot/autobuild/instance-1/output-1/host/usr/lib/libdw.so /home/buildroot/autobuild/instance-1/output-1/host/usr/lib/libelf.so 
/usr/bin/ld: cannot find -lelf
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_d1241.dir/build.make:100: recipe for target 'cmTC_d1241' failed
make[2]: *** [cmTC_d1241] Error 1
make[2]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_d1241/fast' failed
make[1]: *** [cmTC_d1241/fast] Error 2
make[1]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp'



Performing C SOURCE FILE Test HAVE_REALLOCARRAY_SUPPORT failed with the following output:
Change Dir: /home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_88bbe/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp'
/usr/bin/make  -f CMakeFiles/cmTC_88bbe.dir/build.make CMakeFiles/cmTC_88bbe.dir/build
make[2]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_88bbe.dir/src.c.o
/usr/bin/gcc -DHAVE_REALLOCARRAY_SUPPORT  -O2 -I/home/buildroot/autobuild/instance-1/output-1/host/include -pthread  -o CMakeFiles/cmTC_88bbe.dir/src.c.o -c /home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp/src.c
/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp/src.c: In function 'main':
/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp/src.c:6:18: warning: implicit declaration of function 'reallocarray' [-Wimplicit-function-declaration]
         return !!reallocarray(NULL, 1, 1);
                  ^~~~~~~~~~~~
Linking C executable cmTC_88bbe
/home/buildroot/autobuild/instance-1/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_88bbe.dir/link.txt --verbose=1
/usr/bin/gcc -O2 -I/home/buildroot/autobuild/instance-1/output-1/host/include -pthread  -rdynamic CMakeFiles/cmTC_88bbe.dir/src.c.o -o cmTC_88bbe  -Wl,-rpath,/home/buildroot/autobuild/instance-1/output-1/host/usr/lib /home/buildroot/autobuild/instance-1/output-1/host/usr/lib/libdw.so /home/buildroot/autobuild/instance-1/output-1/host/usr/lib/libelf.so 
CMakeFiles/cmTC_88bbe.dir/src.c.o: In function `main':
src.c:(.text.startup+0x13): undefined reference to `reallocarray'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_88bbe.dir/build.make:100: recipe for target 'cmTC_88bbe' failed
make[2]: *** [cmTC_88bbe] Error 1
make[2]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_88bbe/fast' failed
make[1]: *** [cmTC_88bbe/fast] Error 2
make[1]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/host-pahole-73383b3a39afe86b22e098773e47b8546c48a649/CMakeFiles/CMakeTmp'


Source file was:

#define _GNU_SOURCE
#include <stdlib.h>
int main(void)
{
        return !!reallocarray(NULL, 1, 1);
}