Determining if the function fopen_s exists failed with the following output: Change Dir: /home/buildroot/autobuild/instance-3/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_916ce/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_916ce.dir/build.make CMakeFiles/cmTC_916ce.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_916ce.dir/CheckFunctionExists.c.o /home/buildroot/autobuild/instance-3/output-1/per-package/piglit/host/bin/arc-buildroot-linux-gnu-gcc --sysroot=/home/buildroot/autobuild/instance-3/output-1/per-package/piglit/host/arc-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -Wall -std=gnu99 -Werror=vla -Werror=pointer-arith -Werror=variadic-macros -DCHECK_FUNCTION_EXISTS=fopen_s -DNDEBUG -o CMakeFiles/cmTC_916ce.dir/CheckFunctionExists.c.o -c /home/buildroot/autobuild/instance-3/output-1/per-package/piglit/host/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_916ce /home/buildroot/autobuild/instance-3/output-1/per-package/piglit/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_916ce.dir/link.txt --verbose=1 /home/buildroot/autobuild/instance-3/output-1/per-package/piglit/host/bin/arc-buildroot-linux-gnu-gcc --sysroot=/home/buildroot/autobuild/instance-3/output-1/per-package/piglit/host/arc-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -Wall -std=gnu99 -Werror=vla -Werror=pointer-arith -Werror=variadic-macros -DCHECK_FUNCTION_EXISTS=fopen_s -DNDEBUG CMakeFiles/cmTC_916ce.dir/CheckFunctionExists.c.o -o cmTC_916ce /home/buildroot/autobuild/instance-3/output-1/per-package/piglit/host/bin/../lib/gcc/arc-buildroot-linux-gnu/10.2.0/../../../../arc-buildroot-linux-gnu/bin/ld: CMakeFiles/cmTC_916ce.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0xa): undefined reference to `fopen_s' /home/buildroot/autobuild/instance-3/output-1/per-package/piglit/host/bin/../lib/gcc/arc-buildroot-linux-gnu/10.2.0/../../../../arc-buildroot-linux-gnu/bin/ld: CheckFunctionExists.c:(.text.startup+0xa): undefined reference to `fopen_s' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_916ce.dir/build.make:89: recipe for target 'cmTC_916ce' failed make[2]: *** [cmTC_916ce] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/CMakeFiles/CMakeTmp' Makefile:124: recipe for target 'cmTC_916ce/fast' failed make[1]: *** [cmTC_916ce/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/piglit-2affee53f3ad7a96f5b397a2b6d6408af8a374b0/CMakeFiles/CMakeTmp'