D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/baz/rpmbuild/SRPMS/leptonica-1.85.0-1.mga.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.cRuWM4 + umask 022 + cd /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + test -d /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + /usr/bin/rm -rf /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + /usr/bin/mkdir -p /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + /usr/bin/mkdir -p /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.ricB83 + umask 022 + cd /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + rm -rf leptonica-1.85.0 + /usr/lib/rpm/rpmuncompress -x /home/baz/rpmbuild/SOURCES/leptonica-1.85.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd leptonica-1.85.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.DYI2ix + umask 022 + cd /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build + cd leptonica-1.85.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'LDFLAGS=:- -lm' + LDFLAGS=':- -lm' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS=':- -lm' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -Wno-dev -S . -B build -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_LIBDIR:PATH=lib64 -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLIB_SUFFIX=64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DBUILD_PROG:BOOL=ON -- The C compiler identification is GNU 14.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc - broken CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message): The C compiler "/usr/bin/gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: '/home/baz/rpmbuild/BUILD/leptonica-1.85.0-build/leptonica-1.85.0/build/CMakeFiles/CMakeScratch/TryCompile-Xs4QgE' Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_72e31/fast /usr/bin/gmake -f CMakeFiles/cmTC_72e31.dir/build.make CMakeFiles/cmTC_72e31.dir/build gmake[1]: Entering directory '/home/baz/rpmbuild/BUILD/leptonica-1.85.0-build/leptonica-1.85.0/build/CMakeFiles/CMakeScratch/TryCompile-Xs4QgE' Building C object CMakeFiles/cmTC_72e31.dir/testCCompiler.c.o /usr/bin/gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -o CMakeFiles/cmTC_72e31.dir/testCCompiler.c.o -c /home/baz/rpmbuild/BUILD/leptonica-1.85.0-build/leptonica-1.85.0/build/CMakeFiles/CMakeScratch/TryCompile-Xs4QgE/testCCompiler.c Linking C executable cmTC_72e31 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_72e31.dir/link.txt --verbose=1 gcc: error: -E or -x required when input is from standard input /usr/bin/gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full :- -lm CMakeFiles/cmTC_72e31.dir/testCCompiler.c.o -o cmTC_72e31 gmake[1]: *** [CMakeFiles/cmTC_72e31.dir/build.make:102: cmTC_72e31] Error 1 gmake[1]: Leaving directory '/home/baz/rpmbuild/BUILD/leptonica-1.85.0-build/leptonica-1.85.0/build/CMakeFiles/CMakeScratch/TryCompile-Xs4QgE' gmake: *** [Makefile:133: cmTC_72e31/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:42 (project) -- Configuring incomplete, errors occurred! error: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.DYI2ix (%build) RPM build errors: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.DYI2ix (%build) I: [iurt_root_command] ERROR: chroot