D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
sh: line 4: [: -j8: integer expression expected
Installing /home/pterjan/rpmbuild/SRPMS/adjtimex-1.29-10.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.WC5egU
sh: line 4: [: -j8: integer expression expected
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.v8moif
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/adjtimex-1.29-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/adjtimex-1.29-build
+ rm -rf adjtimex-1.29
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/adjtimex_1.29.orig.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd adjtimex-1.29
+ /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.G9ufOc
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/adjtimex-1.29-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 adjtimex-1.29
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ 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
+ CONFIGURE_TOP=.
+ '[' 1 = 1 ']'
++ find . -name config.guess -o -name config.sub
+ /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool
Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html)
+ /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool
+ /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking
+ /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs .
+ /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64
+ ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
configure: WARNING: unrecognized options: --disable-dependency-tracking
checking for x86_64-mageia-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
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/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 sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking linux/rtc.h usability... yes
checking linux/rtc.h presence... yes
checking for linux/rtc.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for gettimeofday... yes
checking for mktime... yes
checking for putenv... yes
checking for select... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: WARNING: unrecognized options: --disable-dependency-tracking
+ /usr/bin/make -O -j48 V=1 VERBOSE=1
sed -e 's/@VERSION@/1.29/'	\
  -e "s/@DATE@/`date +%Y-%m-%d`/"	\
  adjtimex.lsm.in >adjtimex.lsm
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 -Wall -c mat.c
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 -Wall -I. -DVERSION=\"1.29\" -o adjtimex  \
	 adjtimex.c mat.o -lm
adjtimex.c: In function 'cmos_read_time':
adjtimex.c:729:7: warning: variable 'saveerr' set but not used [-Wunused-but-set-variable]
  729 |   int saveerr;
      |       ^~~~~~~
adjtimex.c: In function 'log_times':
adjtimex.c:1415:7: error: too many arguments to function 'failntpdate'; expected 0, have 1
 1415 |       failntpdate("cannot find ntpdate");
      |       ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
adjtimex.c:188:13: note: declared here
  188 | static void failntpdate();
      |             ^~~~~~~~~~~
adjtimex.c:1422:9: error: too many arguments to function 'failntpdate'; expected 0, have 1
 1422 |         failntpdate("call to ntpdate failed");
      |         ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
adjtimex.c:188:13: note: declared here
  188 | static void failntpdate();
      |             ^~~~~~~~~~~
adjtimex.c:1455:7: error: too many arguments to function 'failntpdate'; expected 0, have 1
 1455 |       failntpdate("cannot understand ntpdate output");
      |       ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adjtimex.c:188:13: note: declared here
  188 | static void failntpdate();
      |             ^~~~~~~~~~~
adjtimex.c:1339:10: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
 1339 |   int n, ret;
      |          ^~~
adjtimex.c:1338:8: warning: variable 'ch' set but not used [-Wunused-but-set-variable]
 1338 |   char ch, buf[64], *s;
      |        ^~
adjtimex.c: At top level:
adjtimex.c:1542:6: error: conflicting types for 'failntpdate'; have 'void(char *)'
 1542 | void failntpdate(char *s)
      |      ^~~~~~~~~~~
adjtimex.c:188:13: note: previous declaration of 'failntpdate' with type 'void(void)'
  188 | static void failntpdate();
      |             ^~~~~~~~~~~
adjtimex.c:188:13: warning: 'failntpdate' used but never defined
adjtimex.c: In function 'outb':
adjtimex.c:547:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
  547 |   write (port_fd, &val, 1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
adjtimex.c: In function 'inb':
adjtimex.c:561:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
  561 |   read (port_fd, &ret, 1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
adjtimex.c: In function 'valid_system_rate':
adjtimex.c:1646:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
 1646 |       fgets(buf, BUFLEN, stdin);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
adjtimex.c: In function 'valid_cmos_rate':
adjtimex.c:1684:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
 1684 |       fgets(buf, BUFLEN, stdin);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:38: adjtimex] Error 1
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.G9ufOc (%build)

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