D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
sh: line 4: [: -j8: integer expression expected
sh: line 4: [: -j8: integer expression expected
Installing /home/pterjan/rpmbuild/SRPMS/R-cran-Cairo-1.5.12.2-3.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.0aG3aG
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ test -d /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
sh: line 4: [: -j8: integer expression expected
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.IhZ6ao
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ rm -rf R-cran-Cairo-1.5.12.2
+ /usr/bin/mkdir -p R-cran-Cairo-1.5.12.2
+ cd R-cran-Cairo-1.5.12.2
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/Cairo_1.5-12.2.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
sh: line 4: [: -j8: integer expression expected
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.QJZ0z9
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ 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='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd R-cran-Cairo-1.5.12.2
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ R CMD build Cairo
* checking for file 'Cairo/DESCRIPTION' ... OK
* preparing 'Cairo':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building 'Cairo_1.5-12.2.tar.gz'

+ RPM_EC=0
++ jobs -p
+ exit 0
sh: line 4: [: -j8: integer expression expected
sh: line 4: [: -j8: integer expression expected
sh: line 4: [: -j8: integer expression expected
Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.1gVlZw
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ '[' 1 -eq 1 ']'
+ '[' /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/BUILDROOT '!=' / ']'
+ rm -rf /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/BUILDROOT
++ dirname /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/BUILDROOT
+ mkdir -p /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build
+ mkdir /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/BUILDROOT
+ 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='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd R-cran-Cairo-1.5.12.2
+ '[' 1 -eq 1 ']'
+ mkdir -p /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/BUILDROOT//usr/lib64/R/library
+ R CMD INSTALL Cairo --library=/home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/BUILDROOT//usr/lib64/R/library
* installing *source* package 'Cairo' ...
** package 'Cairo' successfully unpacked and MD5 sums checked
** using staged installation
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether pkg-config knows about cairo... yes
checking for configurable backends... cairo cairo-ft cairo-pdf cairo-png cairo-ps cairo-xlib cairo-xlib-xrender
checking whether --static is needed... no
configure: CAIRO_CFLAGS=-I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1
checking if R was compiled with the RConn patch... no
checking cairo.h usability... yes
checking cairo.h presence... yes
checking for cairo.h... yes
checking for PNG support in Cairo... yes
checking for ATS font support in Cairo... no
configure: CAIRO_LIBS=-lfreetype -lpng16 -lz -lXext -lcairo -lXrender -lX11
checking for library containing deflate... none required
checking whether Cairo programs can be compiled... yes
checking whether cairo_image_surface_get_format is declared... no
checking for FreeType support in cairo... yes
checking whether FreeType needs additional flags... no
checking wheter libjpeg works... yes
checking wheter libtiff works... yes
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating src/cconfig.h
** libs
using C compiler: 'gcc (Mageia 14.2.0-2.mga10) 14.2.0'
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c cairobem.c -o cairobem.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c cairogd.c -o cairogd.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c cairotalk.c -o cairotalk.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c img-backend.c -o img-backend.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c img-jpeg.c -o img-jpeg.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c img-tiff.c -o img-tiff.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c pdf-backend.c -o pdf-backend.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c ps-backend.c -o ps-backend.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c svg-backend.c -o svg-backend.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c w32-backend.c -o w32-backend.o
gcc -I"/usr/lib64/R/include" -DNDEBUG -I/usr/local/include -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1  -I. -Iinclude  -I/usr/local/include   -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 -fpic  -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  -c xlib-backend.c -o xlib-backend.o
gcc -shared -L/usr/lib64/R/lib -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 -o Cairo.so cairobem.o cairogd.o cairotalk.o img-backend.o img-jpeg.o img-tiff.o pdf-backend.o ps-backend.o svg-backend.o w32-backend.o xlib-backend.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lfreetype -lpng16 -lz -lXext -lcairo -lXrender -lX11 -ljpeg -ltiff -L/usr/lib64/R/lib -lR
/usr/bin/ld: cairogd.o: in function `cairo_font_match':
/home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:348:(.text+0x9b5): undefined reference to `FcInit'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:352:(.text+0x9c5): undefined reference to `FcNameParse'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:359:(.text+0x9dd): undefined reference to `FcConfigSubstitute'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:360:(.text+0x9e5): undefined reference to `FcDefaultSubstitute'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:362:(.text+0xa04): undefined reference to `FcFontSort'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:369:(.text+0xa0f): undefined reference to `FcPatternDestroy'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:379:(.text+0xa93): undefined reference to `FcPatternGetString'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:387:(.text+0xabc): undefined reference to `FcPatternGetString'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:389:(.text+0xae6): undefined reference to `FcPatternGetString'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:397:(.text+0xbb9): undefined reference to `FcNameUnparse'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:399:(.text+0xbcd): undefined reference to `FcNameParse'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:400:(.text+0xbe6): undefined reference to `FcPatternDel'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:401:(.text+0xbf7): undefined reference to `FcPatternDel'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:403:(.text+0xc09): undefined reference to `FcNameUnparse'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:407:(.text+0xc2f): undefined reference to `FcPatternDestroy'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:411:(.text+0xc44): undefined reference to `FcFontSetDestroy'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:365:(.text+0xc61): undefined reference to `FcFontSetCreate'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:366:(.text+0xc73): undefined reference to `FcFontMatch'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairogd.c:367:(.text+0xc87): undefined reference to `FcFontSetAdd'
/usr/bin/ld: cairotalk.o: in function `Rcairo_set_font':
/home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:184:(.text+0x222f): undefined reference to `FcNameParse'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:189:(.text+0x2247): undefined reference to `FcConfigSubstitute'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:190:(.text+0x224f): undefined reference to `FcDefaultSubstitute'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:192:(.text+0x2254): undefined reference to `FcFontSetCreate'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:193:(.text+0x2266): undefined reference to `FcFontMatch'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:194:(.text+0x2271): undefined reference to `FcPatternDestroy'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:196:(.text+0x2285): undefined reference to `FcFontSetAdd'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:209:(.text+0x22ca): undefined reference to `FcPatternGetString'
/usr/bin/ld: /home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:214:(.text+0x22fc): undefined reference to `FcFontSetDestroy'
/usr/bin/ld: cairotalk.o: in function `Rcairo_backend_init_surface':
/home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/R-cran-Cairo-1.5.12.2/Cairo/src/cairotalk.c:1136:(.text+0x26e1): undefined reference to `FcInit'
collect2: error: ld returned 1 exit status
make: *** [/usr/lib64/R/share/make/shlib.mk:10: Cairo.so] Error 1
ERROR: compilation failed for package 'Cairo'
* removing '/home/pterjan/rpmbuild/BUILD/R-cran-Cairo-1.5.12.2-build/BUILDROOT/usr/lib64/R/library/Cairo'
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.1gVlZw (%install)

RPM build errors:
    Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.1gVlZw (%install)
I: [iurt_root_command] ERROR: chroot