-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openjdk17-17.0.8 does not compile when building package with Photon OS 5.0 on WSL2 #1542
Comments
building Photon OS on WSL is not in our scope. Please don't create issues on something which are not in our scope. |
strange, starting
Copying the source to Here the findings so far. topdir issueThe topdir issue has been mentioned in #1412 (comment). Sort of same issue as the progress outcome seems similar.
After rpmbuild, there are two directories
No solution found yet. On the rpmbuild output, the first indicator of an uppercase/lowercase issue is the build directory in lsb_releaselsb_release isn't installed on Photon OS. Therefore gnu makegnu make seems to be necessary. fixpathThe rpmbuild output issue
Because of the uppercase/lowercase issue, the following workaround helped:
Before rerunning rpmbuild with buildroot, I also did a few reinstalls: ms build tools for visual studioDepending on the Visual Studio edition, the build tools for Visual Studio must be explicitly downloaded from https://visualstudio.microsoft.com/de/downloads/ and installed.
The recognition seems to work, but rpmbuild didn't extract the environment variables needed for the VS setup. A successful make build of an iso on Photon OS on WSL2 could include microsoft certs as custom certs for secure boot. March 7th 2024: I haven't found out how to make build successfully openjdk17.0.8 on wsl2. Accordingly to https://mail.openjdk.org/pipermail/jdk-updates-dev/2024-January/029089.html, the issue of os detection might be a known bug JDK-8312620: WSL Linux build crashes after JDK-8310233, which should have been fixed with openjdk17.0.10. However, accordingly to https://wiki.openjdk.org/display/Build/Supported+Build+Platforms, WSL2 is not officially supported. |
Same compile issue in (unsupported) WSL2 with latest openjdk17-17.0.13-2.ph5 package. Running
Reducing the path length leads to the same wsl2 windows boot detection specific issues as before. Root causeAccordingly to https://openjdk.org/groups/build/doc/building.html, section 'Windows Subsystem for Linux (WSL)': "To build Linux binaries, you must use a Linux boot JDK. The default behavior is to build for Windows. To build for Linux, pass --build=x86_64-unknown-linux-gnu --openjdk-target=x86_64-unknown-linux-gnu to configure." The system recognition works flawlessly on vSphere, Workstation, etc. On wsl, the default behavior to build for Windows leads to the issues above. WorkaroundModify the openjdk17 spec file and add the build parameter.
Afterwards the make build process finishes successfully. |
Describe the bug
no priority, just fyi
Make build of a new iso fails when building package openjdk17. As the summary suggests, when building in WSL2, the package
make build fails. This doesn't happen e.g. on VMware Workstation.
The configuration script
./stage/photonroot/openjdk17-17.0.8/usr/src/photon/BUILD/jdk17u-jdk-17.0.8-5/build/.configure-support/generated-configure.sh
tries to analyze the environment.x86_64-pc-wsl
as build system type is detected correctly, however openjdk-build os-cpu =windows-x86_64
, windows environment type =wsl1
and wslpathnot found
are wrong. The expected detection should includelinux-x86_64
withwsl2
and/bin/wslpath
or/usr/bin/wslpath
(both are symbolic links of/init
.Reproduction steps
Photon OS on WSL2 is installed as user distribution and not as replacement of the system distribution cbl-mariner.
Expected behavior
successful make build on Photon OS on WSL2
Additional context
Similar to https://bugs.busybox.net/show_bug.cgi?id=14561.
I will update this issue in case of problem solving news.
The text was updated successfully, but these errors were encountered: