D: [iurt_root_command] chroot :4:in `require': cannot load such file -- rubygems.rb (LoadError) from :4:in `' Installing /home/pterjan/rpmbuild/SRPMS/libsolv-0.6.28-4.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.uPFkgq + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf libsolv-0.6.28 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/libsolv-0.6.28.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libsolv-0.6.28 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/0001-yumobs-remove-bogus-queue_empty-call.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/0001-Support-REL_WITHOUT.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/PR219-Add-missing-defs-for-Mageia.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.rV45IS + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd libsolv-0.6.28 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + mkdir -p build + cd build + /usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 -DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/libexec -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 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DLIB_SUFFIX=64 -DCMAKE_SKIP_RPATH:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_LIBXML2=1 -DENABLE_PERL=1 -DENABLE_PYTHON=1 -DENABLE_RUBY=1 -DUSE_VENDORDIRS=1 -DENABLE_APPDATA=1 -DENABLE_COMPS=1 -DMAGEIA=1 -DENABLE_RPMDB_BYRPMHEADER=1 -DENABLE_LZMA_COMPRESSION=1 -DENABLE_BZIP2_COMPRESSION=1 -DENABLE_SUSEREPO=1 -DENABLE_HELIXREPO=1 -DENABLE_DEBIAN=1 -DENABLE_ARCHREPO=1 -DENABLE_COMPLEX_DEPS=1 -DMULTI_SEMANTICS=1 -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at CMakeLists.txt:42 (CMAKE_POLICY): The OLD behavior for policy CMP0005 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. -- Libraries will be installed in /usr/lib64 -- Header files will be installed in /usr/include -- Man pages will be installed in /usr/share/man -- Building for Mageia -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.4") -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") -- Found LZMA: /usr/lib64/liblzma.so -- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.6") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Enabling multi dist support -- Looking for rpm/db.h -- Looking for rpm/db.h - not found -- Looking for pgpDigGetParams in rpmio -- Looking for pgpDigGetParams in rpmio - found -- Looking for strchrnul -- Looking for strchrnul - found -- Looking for fopencookie -- Looking for fopencookie - found -- Looking for funopen -- Looking for funopen - not found -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Performing Test HAVE_LINKER_AS_NEEDED -- Performing Test HAVE_LINKER_AS_NEEDED - Success -- Performing Test HAVE_LINKER_VERSION_SCRIPT -- Performing Test HAVE_LINKER_VERSION_SCRIPT - Success -- Looking for modules in /home/pterjan/rpmbuild/BUILD/libsolv-0.6.28/cmake/modules -- Looking for qsort_r -- Looking for qsort_r - found -- Looking for __qsort_r -- Looking for __qsort_r - not found -- Found SWIG: /usr/bin/swig (found version "3.0.12") -- Found SWIG version 3.0.12 -- Found PythonLibs: /usr/lib64/libpython3.6m.so (found version "3.6.2") -- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.2", minimum required is "3.6.2") -- Python executable: /usr/bin/python3.6 -- Python installation dir: /usr/lib64/python3.6/site-packages -- Python include path: /usr/include/python3.6m -- Found Perl: /usr/bin/perl (found version "5.26.0") -- Perl executable: /usr/bin/perl -- Perl installation dir: /usr/lib/perl5/vendor_perl/5.26.0/x86_64-linux-thread-multi -- Found Ruby: /usr/bin/ruby (found version "1.8.0") -- Ruby executable: /usr/bin/ruby -- Ruby installation dir: CMake Error at bindings/ruby/CMakeLists.txt:26 (INSTALL): INSTALL TARGETS given no LIBRARY DESTINATION for module target "bindings_ruby". -- Version: 0.6.28 -- Writing spec file... -- Writing pkg-config files... -- Configuring incomplete, errors occurred! See also "/home/pterjan/rpmbuild/BUILD/libsolv-0.6.28/build/CMakeFiles/CMakeOutput.log". See also "/home/pterjan/rpmbuild/BUILD/libsolv-0.6.28/build/CMakeFiles/CMakeError.log". error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.rV45IS (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.rV45IS (%build) I: [iurt_root_command] ERROR: chroot