D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/python-py4j-0.10.9.7-5.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.vLxZ63 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-py4j-0.10.9.7-build + test -d /home/pterjan/rpmbuild/BUILD/python-py4j-0.10.9.7-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/python-py4j-0.10.9.7-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/python-py4j-0.10.9.7-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-py4j-0.10.9.7-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-py4j-0.10.9.7-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.TAu8Wj + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-py4j-0.10.9.7-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/python-py4j-0.10.9.7-build + rm -rf py4j-0.10.9.7 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/python-py4j-0.10.9.7.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd py4j-0.10.9.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/py4j-add-hamcrest-in-classpath.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/py4j-Base64-java8.patch + rm -r setup.py + find . -name '*.jar' -print -delete ./py4j-java/gradle/wrapper/gradle-wrapper.jar ./py4j-java/junit-4.10.jar + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_remove_parent py4j-java/pom.xml + sed -i -r 's|(version=).*|\1|' py4j-java/ant.properties + sed -i 's|'\''.*'\''|'\'''\''|' py4j-python/src/py4j/version.py + sed -i 's|1\.6|1.8|g' py4j-java/build.xml ++ build-classpath junit + sed -i 's|junit-.*\.jar|/usr/share/java/junit.jar|g' py4j-java/ant.properties ++ build-classpath junit + sed -i -r 's|((SimpleDateFormat.java:624) at org.apache.tools.ant.util.DateUtils.(DateUtils.java:72) at org.apache.tools.ant.DefaultLogger.formatTime(DefaultLogger.java:309) at org.apache.tools.ant.DefaultLogger.buildFinished(DefaultLogger.java:180) at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2111) at org.apache.tools.ant.Main.runBuild(Main.java:830) at org.apache.tools.ant.Main.startAnt(Main.java:223) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.Error: java.lang.ArrayIndexOutOfBoundsException: Index -500 out of bounds for length 608 [in thread "main"] at java.base/sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:270) at java.base/sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:260) at java.base/java.security.AccessController.doPrivileged(AccessController.java:319) at java.base/sun.util.calendar.ZoneInfoFile.loadTZDB(ZoneInfoFile.java:260) at java.base/sun.util.calendar.ZoneInfoFile.(ZoneInfoFile.java:255) at java.base/sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:574) at java.base/java.util.TimeZone.getTimeZone(TimeZone.java:609) at java.base/java.util.TimeZone.setDefaultZone(TimeZone.java:709) at java.base/java.util.TimeZone.getDefaultRef(TimeZone.java:685) at java.base/java.util.TimeZone.getDefault(TimeZone.java:674) at java.base/java.util.Calendar.defaultTimeZone(Calendar.java:1683) at java.base/java.util.Calendar.getInstance(Calendar.java:1630) at org.apache.tools.zip.ZipUtil.dosToJavaTime(ZipUtil.java:128) at org.apache.tools.zip.ZipFile.readCentralDirectoryEntry(ZipFile.java:513) at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:472) at org.apache.tools.zip.ZipFile.(ZipFile.java:217) at org.apache.tools.zip.ZipFile.(ZipFile.java:178) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:258) at org.apache.tools.ant.helper.ProjectHelper2.parseUnknownElement(ProjectHelper2.java:134) at org.apache.tools.ant.helper.ProjectHelper2.parseAntlibDescriptor(ProjectHelper2.java:114) at org.apache.tools.ant.taskdefs.Antlib.createAntlib(Antlib.java:95) at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:416) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:275) at org.apache.tools.ant.ComponentHelper.checkNamespace(ComponentHelper.java:853) at org.apache.tools.ant.ComponentHelper.getDefinition(ComponentHelper.java:308) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:285) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:264) at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:436) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:166) at org.apache.tools.ant.Task.perform(Task.java:349) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:184) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:104) at org.apache.tools.ant.Main.runBuild(Main.java:793) ... 3 more There has been an error prior to that: java.lang.Error: java.lang.ArrayIndexOutOfBoundsException: Index -500 out of bounds for length 608 at java.base/sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:270) at java.base/sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:260) at java.base/java.security.AccessController.doPrivileged(AccessController.java:319) at java.base/sun.util.calendar.ZoneInfoFile.loadTZDB(ZoneInfoFile.java:260) at java.base/sun.util.calendar.ZoneInfoFile.(ZoneInfoFile.java:255) at java.base/sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:574) at java.base/java.util.TimeZone.getTimeZone(TimeZone.java:609) at java.base/java.util.TimeZone.setDefaultZone(TimeZone.java:709) at java.base/java.util.TimeZone.getDefaultRef(TimeZone.java:685) at java.base/java.util.TimeZone.getDefault(TimeZone.java:674) at java.base/java.util.Calendar.defaultTimeZone(Calendar.java:1683) at java.base/java.util.Calendar.getInstance(Calendar.java:1630) at org.apache.tools.zip.ZipUtil.dosToJavaTime(ZipUtil.java:128) at org.apache.tools.zip.ZipFile.readCentralDirectoryEntry(ZipFile.java:513) at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:472) at org.apache.tools.zip.ZipFile.(ZipFile.java:217) at org.apache.tools.zip.ZipFile.(ZipFile.java:178) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:258) at org.apache.tools.ant.helper.ProjectHelper2.parseUnknownElement(ProjectHelper2.java:134) at org.apache.tools.ant.helper.ProjectHelper2.parseAntlibDescriptor(ProjectHelper2.java:114) at org.apache.tools.ant.taskdefs.Antlib.createAntlib(Antlib.java:95) at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:416) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:275) at org.apache.tools.ant.ComponentHelper.checkNamespace(ComponentHelper.java:853) at org.apache.tools.ant.ComponentHelper.getDefinition(ComponentHelper.java:308) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:285) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:264) at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:436) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:166) at org.apache.tools.ant.Task.perform(Task.java:349) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:184) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:104) at org.apache.tools.ant.Main.runBuild(Main.java:793) at org.apache.tools.ant.Main.startAnt(Main.java:223) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -500 out of bounds for length 608 at java.base/sun.util.calendar.ZoneInfoFile.load(ZoneInfoFile.java:348) at java.base/sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:267) ... 36 more error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.OfF7Rw (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.OfF7Rw (%build) I: [iurt_root_command] ERROR: chroot