-
Notifications
You must be signed in to change notification settings - Fork 132
+openjdk.org@11 #5472
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
+openjdk.org@11 #5472
Conversation
|
won't be able to test-build 11 without a merge, but odds are still good. i'll link the build attempt back to this, so we can keep everything together in case changes are needed. |
|
I'm also trying to verify it locally... Will mark as ready to review when I feel it's ok. |
|
@jhheider I went through all formulaes for openjdk@11, @17 and @21 in Homebrew and I found some differences. I commented on each one just to highlight and talk about it. Please let me know what do you think of each, and then I can remove the comments. Also, I was not able to build on my machine even after the adjustments: $ bk build openjdk@11
...
configure: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead.
checking for strip... /home/felipecrs/.pkgx/llvm.org/v16.0.6/bin/strip
checking for nm... /home/felipecrs/.pkgx/llvm.org/v16.0.6/bin/nm
checking for gobjcopy... [not found]
checking for objcopy... /home/felipecrs/.pkgx/llvm.org/v16.0.6/bin/objcopy
checking for gobjdump... [not found]
checking for objdump... /usr/bin/objdump
checking for llvm-llvm-llvm-cxxfilt... [not found]
configure: error: Could not find required tool for CXXFILT
configure exiting with result code 1
error: Uncaught (in promise) Error: UR BUILD FAILED WITH CODE 1 & SIGNAL null
if (!rv.success) throw new Error(`UR BUILD FAILED WITH CODE ${rv.code} & SIGNAL ${rv.signal}`)
^
at file:///home/felipecrs/.pkgx/pkgx.sh/brewkit/v1.14.2/bin/bk-build:123:24
at eventLoopTick (ext:core/01_core.js:182:7)I think there's some system-level dependencie not in sync with what the CI environment have. |
probably just make the |
|
I addressed the I'm basing on https://github.com/adoptium/temurin-build/wiki/A-Conversation-about-versions-and-setting-them-in-build-configuration, and if I'm correct it should now output like: $ java -version
openjdk 21.0.3 2024-04-16
OpenJDK Runtime Environment pkgx@1.1.6 (build 21.0.3+6)
OpenJDK 64-Bit Server VM pkgx@1.1.6 (build 21.0.3+6, mixed mode, sharing)But I was not able to test it yet. Locally the compilation is now starting, but it's failing. |
|
Compiling jdk@17 and @21 errors with: I suspect it has something to do with the fact I'm on WSL. Compiling @11 fails differently though: Crazy stuff. When you get a chance, would you mind trying on your machine? |
WSL2, hopefully? I would hope but would never be sure that it should detect linux correctly. You can always use I can try it out locally. It'll probably be tomorrow. |
|
Yeah, WSL2 for sure. The ❯ bk docker build java@11 --clean
+ exec docker run --name brewkit.pkgx.dev --rm --platform linux/amd64 --volume /home/felipecrs/.pkgx/pkgx.sh/brewkit:/brewkit --volume /home/felipecrs/repos/pantry:/work --volume /home/felipecrs/Library/Caches/pkgx:/root/.cache/pkgx --volume brewkit.pkgx.dev.linux-amd64:/root/.pkgx --env DENO_DIR=/root/.pkgx/.cache/deno --env PKGX_PANTRY_PATH=/work --env GITHUB_TOKEN=* --env CLICOLOR_FORCE=1 --workdir /work pkgxdev/pkgx /brewkit/bin/bk build java@11 --clean
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/brewkit/bin/bk": stat /brewkit/bin/bk: no such file or directory: unknown.Shouldn't be difficult to fix, but anyway. I'll let you know if I have any news. No rush at all. Thanks. |
|
BTW it's mounting |
|
Ok, I tried with docker here. Same problem unfortunately. Chances are you'll face the same issue. |
|
@felipecrs note that https://jdk.java.net/archive/ has the oldest linux/aarch64 jdk as v15 and the oldest darwin/aarch64 as v17. perhaps openjdk.org/v11 should be its own package (like pcre.org/v2) to exclude those two environments? i can try and push that change to this branch to see if it gets us closer. |
|
Oh good point, I had not noticed. But this is not a problem, we can download the boot JDK for such platforms from different vendors. Homebrew is set to download them from zulu, for example. Also Homebrew builds ARM64 variants for JDK11 for both Linux and Mac. So it should not be a problem for pkgx to do too. |
|
I see you pushed some changes, but if you don't mind I can revert them and make the fixes for the boot jdk depending on the platform here. I would super prefer to keep a single package if possible, to make it user-facing consistent with other pkgs like node, python, etc. |
|
nevertheless, let's see how CI builds v11. :D |
|
definitely; if there's an alternate boot jdk, let's use it. |
|
Error in CI was the same in my local btw. That's good news I guess. lol |
|
possibly 11 doesn't play nice with |
|
Will try. Thanks. I noticed this btw: |
|
should be harmless. it's a linker flag, so it should be in the linking step but won't affect compilation. |
|
Ok, compiling with llvm.org@12 works. :( Will check the highest version that still works. But any ideas to keep using a newer llvm for newer JDK but use an older for 11? |
So, the only trick we could currently is something like this: - run: |
pkgx +llvm.org^12
PATH="{{deps.llvm.org.prefix}}/../v12/bin:$(echo $PATH | tr ':' '\n' | sed '/llvm.org/d' | tr '\n' ':')"
if: <17roughly. too many such tricks, and we really should split the package off. |
llvm.org <16 works. For now I suggest we keep it for all versions, what do you think? Will probably be a problem again when pkging jdk8. But that's for later.
I would suggest instead to make brewkit support conditioning build dependencies... pkgxdev/brewkit#319 |
|
indeed, but it means package resolution becomes more complex (which is why we haven't done it yet). if it's happy with |
|
great work, @felipecrs ! building old software is sometimes even more challenging. |
|
BTW I think I'm not gonna do openjdk@8, the differences between it and 11 in Homebrew scared me. Also Homebrew doesn't build Linux ARM not Mac ARM. Perhaps I'll give it a try when pkging #5467, since that one is still ~maintained. |
|
@jhheider would it be possible to trigger a build for openjdk@11? I suppose it has to be done manually. |
|
Looks like it failed the audit due to a missing binary: https://github.com/pkgxdev/pantry/actions/runs/8210262716/job/22457399093 |
* Fix brewkit source mount within bk docker Refs pkgxdev/pantry#5472 (comment) * Fix bk edit
* Fix brewkit source mount within bk docker Refs pkgxdev/pantry#5472 (comment) * Fix bk edit

No description provided.