Summary: | java/openjdk11: Fails to build on 13-CURRENT | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Yasuhiro Kimura <yasu> |
Component: | Individual Port(s) | Assignee: | Kirill Ponomarev <krion> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | Trond.Endrestol, glewis, java, koobs |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(java) koobs: merge-quarterly? |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
See Also: |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244947 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244961 |
||
Attachments: |
Description
Yasuhiro Kimura
2020-03-14 06:15:18 UTC
Created attachment 212554 [details]
Patch for src/hotspot/share/runtime/arguments.cpp
Patch 1 of 3. Turned pointer comparison into a regular C-style string comparison.
Created attachment 212555 [details]
Patch for src/hotspot/share/runtime/sharedRuntime.cpp
Patch 2 of 3. Clang 10 needs the extra parenthesis.
Created attachment 212557 [details]
Patch for src/java.base/share/native/libfdlibm/e_asin.c
Patch 3 of 3. Added curly braces around the else block.
With these three patches in place, java/openjdk11 built successfully on base/head r359017, amd64.
Seeing the following error building openjdk-jdk11u-jdk-11.0.6-10-1 on CURRENT (13, amd53, r359028, GENERIC-NODEBUG * For target hotspot_variant-server_libjvm_objs_sharedRuntime.o: /var/tmp/tmpfs0/usr/home/koobs/repos/freebsd/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.6-10-1/src/hotspot/share/runtime/sharedRuntime.cpp:2809:85: error: expression does not compute the number of elements in this array; element type is 'double', not 'relocInfo' [-Werror,-Wsizeof-array-div] buffer.insts()->initialize_shared_locs((relocInfo*)locs_buf, sizeof(locs_buf) / sizeof(relocInfo)); ~~~~~~~~ ^ @Trond Can you produce a single patch against the port, fixing the errors you've identified using `make makepatch` [1] please: [1] https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/slow-patch.html Created attachment 212818 [details]
Patch for Clang 10
A commit references this bug: Author: krion Date: Tue Apr 14 13:05:22 UTC 2020 New revision: 531679 URL: https://svnweb.freebsd.org/changeset/ports/531679 Log: Fix build on HEAD. PR: 244803 Submitted by: Yasuhiro KIMURA <yasu_AT_utahime__dot__org> Changes: head/java/openjdk11/files/patch-src_hotspot_share_runtime_arguments.cpp head/java/openjdk11/files/patch-src_hotspot_share_runtime_sharedRuntime.cpp head/java/openjdk11/files/patch-src_java.base_share_native_libfdlibm_e__asin.c ^Triage: Assign to committer resolving Is the quarterly port also affected? Note, I think the patch for e_asin.c is incorrect. See https://svnweb.freebsd.org/base/head/lib/msun/src/e_asin.c?revision=317349&view=markup#l87 Ignore my last comment, these are equivalent changes. This has been superseded by the 11.0.7 port update. it seems it's fixed now |