D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
Installing /home/pterjan/rpmbuild/SRPMS/camlmix-1.3.1-13.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.A7QuZo
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build
+ test -d /home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build
+ /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.mGyuJr
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build
+ rm -rf camlmix-1.3.1
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/camlmix-1.3.1.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd camlmix-1.3.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/camlmix-1.3.1-enable-debugging-information.patch
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.60lQfR
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-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 camlmix-1.3.1
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ make
contents='let version = "1.3.1"'; \
  if test "`cat version.ml`" != "$contents"; then \
    echo "$contents" > version.ml;\
  fi
ocamllex lexer.mll
29 states, 305 transitions, table size 1394 bytes
ocamlyacc  parser_directive.mly
make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build/camlmix-1.3.1'
making ._d/version.d from version.ml
making ._d/directive.d from directive.ml
making ._d/main.d from main.ml
making ._d/lexer.d from lexer.ml
making ._d/parser_directive.d from parser_directive.ml
making ._ncdi/lexer.di from lexer.mli
OCamlMakefile:929: warning: pattern recipe did not update peer target '._bcdi/lexer.di'.
making ._ncdi/parser_directive.di from parser_directive.mli
OCamlMakefile:929: warning: pattern recipe did not update peer target '._bcdi/parser_directive.di'.
ocamlopt -g -c version.ml
ocamlc -c lexer.mli
ocamlopt -g -c lexer.ml
ocamlc -c parser_directive.mli
ocamlopt -g -c parser_directive.ml
ocamlopt -g -c directive.ml
File "directive.ml", line 2, characters 5-11:
2 | open Genlex
         ^^^^^^
Alert deprecated: module Stdlib.Genlex
Use the camlp-streams library instead.
File "directive.ml", line 10, characters 12-23:
10 |       match Stream.next stream with
                 ^^^^^^^^^^^
Alert deprecated: module Stdlib.Stream
Use the camlp-streams library instead.
File "directive.ml", line 61, characters 22-38:
61 |     let char_stream = Stream.of_string code in
                           ^^^^^^^^^^^^^^^^
Alert deprecated: module Stdlib.Stream
Use the camlp-streams library instead.
ocamlopt -g -c main.ml
ocamlopt -g \
			  \
			       -ccopt -Wl,--as-needed -ccopt -Wl,--no-undefined -ccopt -Wl,-z,relro -ccopt -Wl,-z,now -ccopt -Wl,-O1 -ccopt -Wl,--build-id=sha1 -ccopt -Wl,--enable-new-dtags -ccopt -specs=/usr/lib/rpm/redhat/redhat-hardened-ld      unix.cmxa   -o camlmix \
			version.cmx lexer.cmx parser_directive.cmx directive.cmx main.cmx
/usr/bin/ld: /usr/lib64/ocaml/libasmrun.a(startup_aux.n.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking (exit code 1)
make[1]: *** [OCamlMakefile:796: camlmix] Error 2
make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/camlmix-1.3.1-build/camlmix-1.3.1'
make: *** [OCamlMakefile:649: native-code] Error 2
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.60lQfR (%build)

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