List of packages yet to be built... {'openjdk17-17.0.8', 'apache-tomcat10-10.1.16', 'apache-tomcat9-9.0.83'} Package Status: Total: 118 Building: 1 Broken: 0 Pending: 2 Done: 1040 Building package: openjdk17 Stdout: Stderr: Failed while building rpm: openjdk17 Failed while building package: openjdk17 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XM6OUF + umask 022 + cd /usr/src/photon/BUILD + cd /usr/src/photon/BUILD + rm -rf jdk17u-jdk-17.0.8-5 + /usr/lib/rpm/rpmuncompress -x /usr/src/photon/SOURCES/jdk-17.0.8-5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd jdk17u-jdk-17.0.8-5 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mFqNSH + umask 022 + cd /usr/src/photon/BUILD + cd jdk17u-jdk-17.0.8-5 + chmod a+x ./configure + unset JAVA_HOME + ENABLE_HEADLESS_ONLY=true + sh ./configure --with-target-bits=64 --enable-headless-only '--with-extra-cxxflags=-Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse' '--with-extra-cflags=-fno-delete-null-pointer-checks -Wno-error -fno-lifetime-dse' --with-freetype-include=/usr/include/freetype2 --with-freetype-lib=/usr/lib --with-stdc++lib=dynamic --disable-warnings-as-errors Runnable configure script is not present Generating runnable configure script at /usr/src/photon/BUILD/jdk17u-jdk-17.0.8-5/build/.configure-support/generated-configure.sh Using autoconf at /bin/autoconf [autoconf (GNU Autoconf) 2.71] configure: Configuration created at Mon Mar 4 11:50:14 UTC 2024. checking for basename... /bin/basename checking for dirname... /bin/dirname checking for file... /bin/file checking for ldd... /bin/ldd checking for echo... echo [builtin] checking for tr... /bin/tr checking for uname... /bin/uname checking for wc... /bin/wc checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cygpath... [not found] checking for wslpath... [not found] checking for cmd.exe... [not found] checking build system type... x86_64-pc-wsl checking host system type... x86_64-pc-wsl checking target system type... x86_64-pc-wsl checking openjdk-build os-cpu... windows-x86_64 checking openjdk-target os-cpu... windows-x86_64 configure: --with-target-bits are set to build platform address size; argument has no meaning checking compilation type... native checking Windows environment type... wsl1 configure: error: Incorrect wsl1 installation. Neither cygpath nor wslpath was found configure exiting with result code 1 error: Bad exit status from /var/tmp/rpm-tmp.mFqNSH (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.mFqNSH (%build) Error while running: /root/photon/support/package-builder/run-in-chroot.sh /root/photon/stage/SOURCES /root/photon/stage/RPMS /root/photon/stage/photonroot/openjdk17-17.0.8 rpmbuild -ba --clean --nocheck -D \"_source_payload w19.zstdio\" -D \"_binary_payload w19.zstdio\" -D \"with_check 0\" -D \"dist .ph5\" -D \"photon_build_number 55a560ead\" -D \"photon_release_version 5.0\" -D \"KERNEL_VERSION 6.1.79\" -D \"KERNEL_RELEASE 1.ph5\" -D \"kernelsubrelease .0601079001\" -D \"LINUX_RT_KERNEL_VERSION 6.1.79\" -D \"LINUX_RT_KERNEL_RELEASE 2.ph5\" -D \"linuxrt_kernelsubrelease .0601079002\" /usr/src/photon/SPECS/openjdk17.spec Traceback (most recent call last): File "/root/photon/support/package-builder/PackageBuilder.py", line 45, in build self._buildPackage() File "/root/photon/support/package-builder/PackageBuilder.py", line 81, in _buildPackage raise e File "/root/photon/support/package-builder/PackageBuilder.py", line 69, in _buildPackage pkgUtils.buildRPMSForGivenPackage(self.sandbox, self.package, self.version, File "/root/photon/support/package-builder/PackageUtils.py", line 158, in buildRPMSForGivenPackage raise e File "/root/photon/support/package-builder/PackageUtils.py", line 136, in buildRPMSForGivenPackage listRPMFiles, listSRPMFiles = self._buildRPM(sandbox, f"{specPath}{specName}", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/photon/support/package-builder/PackageUtils.py", line 360, in _buildRPM returnVal = sandbox.run(rpmBuildcmd, logfile=logFile) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/photon/support/package-builder/Sandbox.py", line 103, in run (_, _, retval) = self.cmdUtils.runBashCmd(f"{self.chrootCmdPrefix}{cmd}", logfile, logfn) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/photon/support/package-builder/CommandUtils.py", line 57, in runBashCmd raise Exception(f"Error while running:\n{cmd}") Exception: Error while running: /root/photon/support/package-builder/run-in-chroot.sh /root/photon/stage/SOURCES /root/photon/stage/RPMS /root/photon/stage/photonroot/openjdk17-17.0.8 rpmbuild -ba --clean --nocheck -D \"_source_payload w19.zstdio\" -D \"_binary_payload w19.zstdio\" -D \"with_check 0\" -D \"dist .ph5\" -D \"photon_build_number 55a560ead\" -D \"photon_release_version 5.0\" -D \"KERNEL_VERSION 6.1.79\" -D \"KERNEL_RELEASE 1.ph5\" -D \"kernelsubrelease .0601079001\" -D \"LINUX_RT_KERNEL_VERSION 6.1.79\" -D \"LINUX_RT_KERNEL_RELEASE 2.ph5\" -D \"linuxrt_kernelsubrelease .0601079002\" /usr/src/photon/SPECS/openjdk17.spec Error while running: /root/photon/support/package-builder/run-in-chroot.sh /root/photon/stage/SOURCES /root/photon/stage/RPMS /root/photon/stage/photonroot/openjdk17-17.0.8 rpmbuild -ba --clean --nocheck -D \"_source_payload w19.zstdio\" -D \"_binary_payload w19.zstdio\" -D \"with_check 0\" -D \"dist .ph5\" -D \"photon_build_number 55a560ead\" -D \"photon_release_version 5.0\" -D \"KERNEL_VERSION 6.1.79\" -D \"KERNEL_RELEASE 1.ph5\" -D \"kernelsubrelease .0601079001\" -D \"LINUX_RT_KERNEL_VERSION 6.1.79\" -D \"LINUX_RT_KERNEL_RELEASE 2.ph5\" -D \"linuxrt_kernelsubrelease .0601079002\" /usr/src/photon/SPECS/openjdk17.spec Traceback (most recent call last): File "/root/photon/support/package-builder/WorkerThread.py", line 29, in run pkgBuilder.build(pkg, doneList) File "/root/photon/support/package-builder/PackageBuilder.py", line 49, in build raise e File "/root/photon/support/package-builder/PackageBuilder.py", line 45, in build self._buildPackage() File "/root/photon/support/package-builder/PackageBuilder.py", line 81, in _buildPackage raise e File "/root/photon/support/package-builder/PackageBuilder.py", line 69, in _buildPackage pkgUtils.buildRPMSForGivenPackage(self.sandbox, self.package, self.version, File "/root/photon/support/package-builder/PackageUtils.py", line 158, in buildRPMSForGivenPackage raise e File "/root/photon/support/package-builder/PackageUtils.py", line 136, in buildRPMSForGivenPackage listRPMFiles, listSRPMFiles = self._buildRPM(sandbox, f"{specPath}{specName}", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/photon/support/package-builder/PackageUtils.py", line 360, in _buildRPM returnVal = sandbox.run(rpmBuildcmd, logfile=logFile) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/photon/support/package-builder/Sandbox.py", line 103, in run (_, _, retval) = self.cmdUtils.runBashCmd(f"{self.chrootCmdPrefix}{cmd}", logfile, logfn) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/photon/support/package-builder/CommandUtils.py", line 57, in runBashCmd raise Exception(f"Error while running:\n{cmd}") Exception: Error while running: /root/photon/support/package-builder/run-in-chroot.sh /root/photon/stage/SOURCES /root/photon/stage/RPMS /root/photon/stage/photonroot/openjdk17-17.0.8 rpmbuild -ba --clean --nocheck -D \"_source_payload w19.zstdio\" -D \"_binary_payload w19.zstdio\" -D \"with_check 0\" -D \"dist .ph5\" -D \"photon_build_number 55a560ead\" -D \"photon_release_version 5.0\" -D \"KERNEL_VERSION 6.1.79\" -D \"KERNEL_RELEASE 1.ph5\" -D \"kernelsubrelease .0601079001\" -D \"LINUX_RT_KERNEL_VERSION 6.1.79\" -D \"LINUX_RT_KERNEL_RELEASE 2.ph5\" -D \"linuxrt_kernelsubrelease .0601079002\" /usr/src/photon/SPECS/openjdk17.spec Package Status: Total: 118 Building: 0 Broken: 1 Pending: 2 Done: 1040 Some of the packages failed: ['openjdk17-17.0.8'] Failed during building package Traceback (most recent call last): File "/root/photon/build.py", line 1584, in main buildImage.build_iso() File "/root/photon/build.py", line 1103, in build_iso rpmBuildTarget.packages() File "/root/photon/build.py", line 703, in packages Builder.buildPackagesForAllSpecs( File "/root/photon/support/package-builder/builder.py", line 60, in buildPackagesForAllSpecs Builder.buildSpecifiedPackages(listPackages, buildThreads, pkgBuildType, pkgInfoJsonFile, logger) File "/root/photon/support/package-builder/builder.py", line 36, in buildSpecifiedPackages pkgManager.buildPackages(listPackages, buildThreads) File "/root/photon/support/package-builder/PackageManager.py", line 111, in buildPackages self._buildGivenPackages(listPackages, buildThreads) File "/root/photon/support/package-builder/PackageManager.py", line 206, in _buildGivenPackages self._buildPackages(buildThreads) File "/root/photon/support/package-builder/PackageManager.py", line 241, in _buildPackages raise Exception("Failed during building package") Exception: Failed during building package make: *** [Makefile:6: image] Error 1