D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/forbidden-apis-2.5-4.mga9.src.rpm Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.xSjHCF + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf forbidden-apis-2.5 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/forbidden-apis-2.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd forbidden-apis-2.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (avoid-jarjar-bundling.patch):' Patch #0 (avoid-jarjar-bundling.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file ivy.xml patching file build.xml + echo 'Patch #1 (fix-gradle-maven-build.patch):' Patch #1 (fix-gradle-maven-build.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file build.xml patching file ivy.xml patching file src/main/java/de/thetaphi/forbiddenapis/gradle/CheckForbiddenApis.java + echo 'Patch #2 (forbidden-apis-2.5-remove-ant-contrib.patch):' Patch #2 (forbidden-apis-2.5-remove-ant-contrib.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file ivy.xml + find . -name '*.jar' -print -delete + find . -name '*.class' -print -delete ./src/test/antunit/Java8Annotations.class ./src/test/antunit/Java8Annotations$ClassFileOnly.class ./src/test/antunit/Java8Closures.class ./src/test/antunit/OracleInternalRuntime.class ./src/test/antunit/Java6DeprecatedAnnotation.class ./src/test/antunit/Java8Annotations$FooBar.class ./src/test/antunit/Java6Reflection.class ./src/test/antunit/Java8Annotations$InnerClassWithCtorParam.class ./src/test/antunit/Java7MethodHandles.class ./src/test/antunit/Java6ClassReferences.class + sed -i -e /ivy:configure/d build.xml + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove target/artifact:pom build.xml + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove target/artifact:mvn build.xml + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_remove target/artifact:install build.xml + /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_xpath_inject 'target[@name='\''maven-descriptor'\'']' ' ' build.xml + sed -i -e /maven-ant-tasks/d ivy.xml + sed -i -e '/uri="antlib:org.apache.maven.artifact.ant/d' build.xml + sed -i -e /apache-rat/d ivy.xml + sed -i -e '/uri="antlib:org.apache.rat.anttasks/d' build.xml + rm -rf src/main/java/de/thetaphi/forbiddenapis/gradle src/test/gradle + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2lZaFz + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd forbidden-apis-2.5 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + ant -Divy.mode=local jar Buildfile: /home/pterjan/rpmbuild/BUILD/forbidden-apis-2.5/build.xml -install.ivy: -init: [echo] Detected Java runtime major version: unknown [echo] Java runtime: 17.0.3 / JVM: OpenJDK 64-Bit Server VM / Vendor: Red Hat, Inc. / OS: Linux (6.0.8-server-3.mga9) [ivy:resolve] impossible to define new type: class not found: org.apache.ivy.plugins.resolver.VfsResolver in [] nor Ivy classloader [ivy:resolve] :: Apache Ivy non official version - :: https://ant.apache.org/ivy/ :: [ivy:resolve] :: loading settings :: file = /etc/ivy/ivysettings.xml [check-ivy] You have installed a different Apache Ivy version (non official version) in your ANT classpath than the expected one (2.3.0). The build may fail! compile: [mkdir] Created dir: /home/pterjan/rpmbuild/BUILD/forbidden-apis-2.5/build/main [copy] Copying 33 files to /home/pterjan/rpmbuild/BUILD/forbidden-apis-2.5/build/main [javac] Compiling 25 source files to /home/pterjan/rpmbuild/BUILD/forbidden-apis-2.5/build/main [javac] warning: [options] bootstrap class path not set in conjunction with -source 6 [javac] error: Source option 6 is no longer supported. Use 7 or later. [javac] error: Target option 6 is no longer supported. Use 7 or later. BUILD FAILED /home/pterjan/rpmbuild/BUILD/forbidden-apis-2.5/build.xml:223: The following error occurred while executing this line: /home/pterjan/rpmbuild/BUILD/forbidden-apis-2.5/build.xml:215: Compile failed; see the compiler error output for details. Total time: 1 second error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.2lZaFz (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.2lZaFz (%build) I: [iurt_root_command] ERROR: chroot