D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/bladerf-2016.06-1.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.g3G5Sv + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf bladeRF-2016.06 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/bladeRF-2016.06.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd bladeRF-2016.06 + /usr/bin/bzip2 -dc /home/pterjan/rpmbuild/SOURCES/libbladeRF-v1.1.0-doc.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/bladeRF-2016.06-mga-udev_rules_Makefile.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.9hA6w6 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd bladeRF-2016.06 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + mkdir build + cd build + cmake ../host -DCMAKE_INSTALL_PREFIX=/usr -- The C compiler identification is GNU 7.2.2 -- 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 -- Build type not specified: defaulting to a release build. -- 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 -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") -- Checking libusb version... -- libusb version: 1.0.21 -- Checking libc version... -- libc version: 2.22 CMake Warning at cmake/modules/Version.cmake:87 (message): git missing -- unable to check libladeRF version. Call Stack (most recent call first): libraries/libbladeRF/CMakeLists.txt:15 (include) -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- libbladeRF version: 1.7.2-git -- The CXX compiler identification is GNU 7.2.2 -- 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 -- nuand bladeRF udev rules will be installed to '/etc/udev/rules.d' upon running 'make install' CMake Error at misc/udev/CMakeLists.txt:44 (else): A duplicate ELSE command was found inside an IF block. -- Configuring incomplete, errors occurred! See also "/home/pterjan/rpmbuild/BUILD/bladeRF-2016.06/build/CMakeFiles/CMakeOutput.log". See also "/home/pterjan/rpmbuild/BUILD/bladeRF-2016.06/build/CMakeFiles/CMakeError.log". error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.9hA6w6 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.9hA6w6 (%build) I: [iurt_root_command] ERROR: chroot