Package Details: jre13-openjdk-headless 13.0.5.1.u1-2

Git Clone URL: https://aur.archlinux.org/java-13-openjdk.git (read-only, click to copy)
Package Base: java-13-openjdk
Description: OpenJDK Java 13 headless runtime environment
Upstream URL: https://openjdk.java.net/
Licenses: custom
Provides: java-runtime-headless, java-runtime-headless-openjdk, jre13-openjdk-headless
Submitter: Muflone
Maintainer: Muflone
Last Packager: Muflone
Votes: 3
Popularity: 0.35
First Submitted: 2021-11-28 21:18 (UTC)
Last Updated: 2022-06-18 22:20 (UTC)

Required by (143)

Sources (7)

Latest Comments

questionable commented on 2022-04-20 07:38 (UTC)

Build of this package fails.

Prior to building this, I built the "jdk12-openjdk" package successfully. Then I have set Java 12 as the default java version:

$ archlinux-java status
Available Java environments:
  java-11-openjdk
  java-12-openjdk (default)
  java-18-openjdk
  java-7-jdk
  java-8-openjdk
  java-9-jdk

After that, the build of jdk13-openjdk fails. I have no clue how to solve this. Any help is very welcome.

Trailing output of yay -S jdk13-openjdk:

ERROR: Build failed for targets 'images legacy-jre-image docs' in configuration 'linux-x86_64-server-release' (exit code 2) 

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_gtest_objs_BUILD_GTEST_LIBJVM_link:
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZMarkStackSpace::~ZMarkStackSpace()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zMarkStackAllocator.hpp:31: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZSafeDelete<ZPage>::~ZSafeDelete()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zSafeDelete.hpp:32: undefined reference to `ZArray<ZPage*>::~ZArray()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zSafeDelete.hpp:32: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZPageAllocator::~ZPageAllocator()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zPageAllocator.hpp:38: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZMarkStackSpace::~ZMarkStackSpace()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zMarkStackAllocator.hpp:31: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZSafeDelete<ZPage>::~ZSafeDelete()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zSafeDelete.hpp:32: undefined reference to `ZArray<ZPage*>::~ZArray()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zSafeDelete.hpp:32: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZPageAllocator::~ZPageAllocator()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zPageAllocator.hpp:38: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZSafeDelete<ZPage>::~ZSafeDelete()':
   ... (rest of output omitted)
* For target hotspot_variant-server_libjvm_objs_BUILD_LIBJVM_link:
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZMarkStackSpace::~ZMarkStackSpace()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zMarkStackAllocator.hpp:31: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZSafeDelete<ZPage>::~ZSafeDelete()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zSafeDelete.hpp:32: undefined reference to `ZArray<ZPage*>::~ZArray()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zSafeDelete.hpp:32: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZPageAllocator::~ZPageAllocator()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zPageAllocator.hpp:38: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZMarkStackSpace::~ZMarkStackSpace()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zMarkStackAllocator.hpp:31: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZSafeDelete<ZPage>::~ZSafeDelete()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zSafeDelete.hpp:32: undefined reference to `ZArray<ZPage*>::~ZArray()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zSafeDelete.hpp:32: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZPageAllocator::~ZPageAllocator()':
/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/src/hotspot/share/gc/z/zPageAllocator.hpp:38: undefined reference to `ZLock::~ZLock()'
/usr/bin/ld: /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zCollectedHeap.o: in function `ZSafeDelete<ZPage>::~ZSafeDelete()':
   ... (rest of output omitted)

* All command lines available in /able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/build/linux-x86_64-server-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

make[1]: *** [/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/make/Init.gmk:312: main] Error 2
make: *** [/able/temp/cache/yay/java-13-openjdk/src/jdk13u-jdk-13.0.5.1+1/make/Init.gmk:186: images] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: java-13-openjdk (jre13-openjdk-headless jre13-openjdk jdk13-openjdk)

aetherherne commented on 2022-03-26 03:54 (UTC)

Would it be possible to change line 54 of the PKGBUILD from

export JAVA_HOME="/usr/lib/jvm/$(archlinux-java status | tail -n +2 | sort | cut -d ' ' -f 3 | sort -nr -k 2 -t '-' | grep -vE '8-|9-|10-|11-' -m 1)"

to

export JAVA_HOME="/usr/lib/jvm/$(archlinux-java status | tail -n +2 | sort | cut -d ' ' -f 3 | sort -nr -k 2 -t '-' | grep -E '12-|13-' -m 1)"

as the package fails to build for other versions of java with error as follows:

configure: Found potential Boot JDK using configure arguments
configure: Potential Boot JDK found at /usr/lib/jvm/java-17-openjdk is incorrect JDK version (openjdk version "17.0.3" 2022-04-19); ignoring
configure: (Your Boot JDK version must be one of: 12 13)
configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK
configure exiting with result code 1