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/mysql-connector-java-8.0.33-2.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.gQRkWh + umask 022 + cd /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-build + test -d /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-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.1qZAgQ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-build + rm -rf mysql-connector-j-8.0.33 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/mysql-connector-java-8.0.33-nojars.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd mysql-connector-j-8.0.33 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + for file in README README.md + sed -i.orig 's|\r||g' README + touch -r README.orig README + rm README.orig + for file in README README.md + sed -i.orig 's|\r||g' README.md + touch -r README.md.orig README.md + rm README.md.orig + echo 'Patch #1 (remove-coverage-test.patch):' Patch #1 (remove-coverage-test.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file build.xml Hunk #1 succeeded at 1397 (offset 3 lines). Hunk #2 succeeded at 1405 (offset 3 lines). + echo 'Patch #2 (java-11-migration.patch):' Patch #2 (java-11-migration.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file build.xml patching file src/build/misc/rpm.spec.in + echo 'Patch #3 (remove-authentication-plugin.patch):' Patch #3 (remove-authentication-plugin.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/main/protocol-impl/java/com/mysql/cj/protocol/a/NativeAuthenticationProvider.java patching file src/main/protocol-impl/java/com/mysql/cj/protocol/a/authentication/AuthenticationOciClient.java patching file src/main/resources/com/mysql/cj/LocalizedErrorMessages.properties + echo 'Patch #4 (remove-StatementsTest.patch):' Patch #4 (remove-StatementsTest.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/test/java/testsuite/regression/StatementRegressionTest.java Hunk #1 succeeded at 162 (offset 8 lines). Hunk #2 succeeded at 11609 (offset 8 lines). Hunk #3 succeeded at 11636 (offset 8 lines). + 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.JoXLOQ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-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/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd mysql-connector-j-8.0.33 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' ++ build-classpath jdbc-stdext junit slf4j commons-logging.jar /usr/bin/build-classpath: Could not find jdbc-stdext Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found + export CLASSPATH=/usr/share/java/junit.jar:/usr/share/java/slf4j/api.jar:/usr/share/java/slf4j/slf4j-nop.jar:/usr/share/java/slf4j/nop.jar:/usr/share/java/slf4j/slf4j-api.jar:/usr/share/java/slf4j/slf4j-simple.jar:/usr/share/java/slf4j/simple.jar:/usr/share/java/commons-logging.jar + CLASSPATH=/usr/share/java/junit.jar:/usr/share/java/slf4j/api.jar:/usr/share/java/slf4j/slf4j-nop.jar:/usr/share/java/slf4j/nop.jar:/usr/share/java/slf4j/slf4j-api.jar:/usr/share/java/slf4j/slf4j-simple.jar:/usr/share/java/slf4j/simple.jar:/usr/share/java/commons-logging.jar + rm -rf src/main/user-impl/java/com/mysql/cj/jdbc/integration/jboss + rm src/test/java/testsuite/regression/ConnectionRegressionTest.java + rm src/test/java/testsuite/regression/DataSourceRegressionTest.java + rm src/test/java/testsuite/simple/StatementsTest.java + ant -Dcom.mysql.cj.build.jdk=/usr/lib/jvm/java-17-openjdk -Dcom.mysql.cj.extra.libs=/usr/share/java -Dcom.mysql.cj.build.driver.extendedName=mysql-connector-j -Dcom.mysql.cj.build.driver.version.full=8.0.33 test build Buildfile: /home/pterjan/rpmbuild/BUILD/mysql-connector-java-8.0.33-build/mysql-connector-j-8.0.33/build.xml Caught an exception while logging the end of the build. Exception was: java.lang.NoClassDefFoundError: Could not initialize class sun.util.calendar.ZoneInfoFile 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:1663) at java.base/java.text.SimpleDateFormat.initializeCalendar(SimpleDateFormat.java:680) at java.base/java.text.SimpleDateFormat.(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.JoXLOQ (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.JoXLOQ (%build) I: [iurt_root_command] ERROR: chroot