#1151156 src:openjdk-21: fails to migrate to testing for too long: FTBFS on riscv64

#1151156#5
Date:
2026-10-17 13:55:50 UTC
From:
To:
Source: openjdk-21
Version: 21.0.12.1+1-1
Severity: serious
Tags: sid forky ftbfs
User: release.debian.org@packages.debian.org
Usertags: out-of-sync
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-CC: debian-riscv@lists.debian.org

Dear maintainer(s), riscv64 porters,

[Summary: openjdk-21 FTBFS on riscv64, tail of the log at the end.]

The Release Team considers packages that are out-of-sync between testing
and unstable for more than 30 days as having a Release Critical bug in
testing [1]. Your package src:openjdk-21 has been trying to migrate for
31 days [2], hence this bug report. The current output of the migration
software for this package is copied to the bottom of this report and
should list the reason why the package is blocked. Regularly, reporting
issues against reverse (build/test/regular) dependencies is what needs
to happen. If this has already been done, than this bug is just for
tracking purposes.

If a package is out of sync between unstable and testing for a longer
period, this usually means that bugs in the package in testing cannot be
fixed via unstable. Blocked packages can have impact on other packages,
which makes preparing for the release more difficult. The situation that
caused this bug report might even be the result of such an issue. We
expect maintainers to fix issues that hamper the migration of their
package in a timely manner. If your package in this situation due to
another package, consider helping out.

Paul

[1] https://lists.debian.org/debian-devel-announce/2023/06/msg00001.html
[2] https://qa.debian.org/excuses.php?package=openjdk-21

Current text from [2]:
Migration status for openjdk-21 (21.0.12.1+1-1 to 21.0.13~8ea-1):
BLOCKED: Maybe temporary, maybe blocked but Britney is missing
information (check below)
Issues preventing migration:
∙ ∙ Missing build on riscv64
∙ ∙ Autopkgtest deferred on riscv64: missing arch:riscv64 build
∙ ∙ Autopkgtest for libreoffice/4:26.8.1.1-3: amd64: Pass, arm64: Test
triggered (failure will be ignored), armhf: Test triggered (failure will
be ignored), i386: Test triggered (failure will be ignored), ppc64el:
Pass, s390x: Pass
∙ ∙ Autopkgtest for openjdk-21/21.0.13~8ea-1: amd64: Pass, arm64: Test
triggered (failure will be ignored), armhf: Pass, i386: Pass, ppc64el:
Test triggered (failure will be ignored), s390x: Pass
∙ ∙ Lintian check waiting for test results on riscv64 - info
Additional info (not blocking):
∙ ∙ Piuparts tested OK -
https://piuparts.debian.org/sid/source/o/openjdk-21.html
∙ ∙ Not reproduced on amd64 (not a regression): openjdk-21-jdk
∙ ∙ Not reproduced on arm64 (not a regression): openjdk-21-jdk
∙ ∙ Not reproduced on armhf (not a regression): openjdk-21-jdk
∙ ∙ Not reproduced on i386 (not a regression): openjdk-21-jdk
∙ ∙ 9 days old (needed 5 days)


https://buildd.debian.org/status/fetch.php?pkg=openjdk-21&arch=riscv64&ver=21.0.13%7E8ea-1&stamp=1791562051&raw=0

Executing: [/usr/bin/riscv64-linux-gnu-g++-16 -MMD -MF
/build/reproducible-path/openjdk-21-21.0.13~8ea/build/hotspot/variant-server/libjvm/objs/intrinsicnode.d.tmp
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS 
-D_GNU_SOURCE -D_REENTRANT -pipe -fno-rtti -fno-exceptions 
-fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer 
-fstack-protector -std=c++14 -DLIBC=gnu -DLINUX -D_FILE_OFFSET_BITS=64 
-Wall -Wextra -Wformat=2 -Wpointer-arith -Wsign-compare 
-Wunused-function -Wundef -Wunused-value -Wreturn-type -Wtrampolines 
-Woverloaded-virtual -Wreorder -fPIC 
-fmacro-prefix-map=/build/reproducible-path/openjdk-21-21.0.13~8ea/= 
-DVM_LITTLE_ENDIAN -D_LP64=1 -fno-lifetime-dse -Wno-format-zero-length 
-Wtype-limits -Wuninitialized -Wdate-time -D_FORTIFY_SOURCE=2 -g 
-ffile-prefix-map=/build/reproducible-path/openjdk-21-21.0.13~8ea=. 
-fstack-protector-strong -Wformat -fno-stack-protector 
-Wno-deprecated-declarations -Wno-deprecated-declarations -DNDEBUG 
-DPRODUCT -DTARGET_ARCH_riscv -DINCLUDE_SUFFIX_OS=_linux 
-DINCLUDE_SUFFIX_CPU=_riscv -DINCLUDE_SUFFIX_COMPILER=_gcc 
-DTARGET_COMPILER_gcc -DRISCV64 -DHOTSPOT_LIB_ARCH='"riscv64"' 
-DCOMPILER1 -DCOMPILER2 -DDTRACE_ENABLED 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/build/hotspot/variant-server/gensrc/adfiles 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/os/linux 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/os/posix 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/cpu/riscv 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/os_cpu/linux_riscv 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/build/hotspot/variant-server/gensrc 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/precompiled 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/include 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/os/posix/include 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/build/support/modules_include/java.base 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/build/support/modules_include/java.base/linux 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/java.base/share/native/libjimage 
-Wdate-time -D_FORTIFY_SOURCE=2 -g -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/openjdk-21-21.0.13~8ea=. 
-fstack-protector-strong -Wformat -fno-stack-protector 
-Wno-deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2 
-DDONT_USE_PRECOMPILED_HEADER 
-DOVERRIDE_LIBPATH='"/usr/lib/riscv64-linux-gnu/jni:/lib/riscv64-linux-gnu:/usr/lib/riscv64-linux-gnu:/usr/lib/jni:/lib:/usr/lib"' 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/build/hotspot/variant-server/gensrc/adfiles 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/os/linux 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/os/posix 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/cpu/riscv 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/os_cpu/linux_riscv 
-I/build/reproducible-path/openjdk-21-21.0.13~8ea/build/hotspot/variant-server/gensrc 
-g -gdwarf-4 
-fdebug-prefix-map=/build/reproducible-path/openjdk-21-21.0.13~8ea/= 
-fdebug-prefix-map=/usr/include/=/usr/include/ 
-fdebug-prefix-map=/usr/lib/gcc/riscv64-linux-gnu/16/include/=/usr/local/gcc_include/ 
-fdebug-prefix-map=/usr/include/c++/16/=/usr/local/gxx_include/ 
-fdebug-prefix-map=/build/reproducible-path/openjdk-21-21.0.13~8ea/build/= 
-Wno-unused-parameter -Wno-unused -Wno-array-bounds -Wno-comment 
-Wno-delete-non-virtual-dtor -Wno-empty-body -Wno-ignored-qualifiers 
-Wno-implicit-fallthrough -Wno-int-in-bool-context 
-Wno-maybe-uninitialized -Wno-missing-field-initializers 
-Wno-parentheses -Wno-shift-negative-value -Wno-unknown-pragmas -O3 -c 
-o 
/build/reproducible-path/openjdk-21-21.0.13~8ea/build/hotspot/variant-server/libjvm/objs/intrinsicnode.o
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/opto/intrinsicnode.cpp
-frandom-seed="intrinsicnode.cpp"]
cc1plus: warning: '-Werror=' argument
'-Werror=implicit-function-declaration' is not valid for C++
In file included from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/oops/oop.hpp:33,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/handles.hpp:29,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/code/oopRecorder.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/asm/codeBuffer.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/asm/assembler.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/asm/macroAssembler.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/asm/macroAssembler.inline.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/cpu/riscv/interpreterRT_riscv.cpp:28:
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/atomic.hpp:
In member function 'void ScopedFenceGeneral<T>::prefix() [with
ScopedFenceType T = RELEASE_X]':
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/atomic.hpp:843:86:
error: 'release' is not a member of 'OrderAccess'
   843 | template<> inline void ScopedFenceGeneral<RELEASE_X>::prefix()
       { OrderAccess::release(); }
       |
                      ^~~~~~~
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/atomic.hpp:
In member function 'void ScopedFenceGeneral<T>::prefix() [with
ScopedFenceType T = RELEASE_X_FENCE]':
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/atomic.hpp:844:86:
error: 'release' is not a member of 'OrderAccess'
   844 | template<> inline void
ScopedFenceGeneral<RELEASE_X_FENCE>::prefix()  { OrderAccess::release(); }
       |
                      ^~~~~~~
In file included from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/javaFrameAnchor.hpp:84,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/code/codeBlob.hpp:31,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/code/codeCache.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/cpu/riscv/assembler_riscv.hpp:31,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/asm/assembler.hpp:494:
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/cpu/riscv/javaFrameAnchor_riscv.hpp:
In member function 'void JavaFrameAnchor::set_last_Java_sp(intptr_t*)':
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/cpu/riscv/javaFrameAnchor_riscv.hpp:80:90:
error: 'release' is not a member of 'OrderAccess'
    80 |   void set_last_Java_sp(intptr_t* java_sp)       {
_last_Java_sp = java_sp; OrderAccess::release(); }
       |
                          ^~~~~~~
In file included from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zForwardingTable.inline.hpp:30,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zHeap.inline.hpp:30,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zGeneration.inline.hpp:30,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zBarrier.inline.hpp:30,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zBarrierSet.inline.hpp:31,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/shared/barrierSetConfig.inline.hpp:44,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/oops/access.inline.hpp:31,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/memory/iterator.inline.hpp:32,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/oops/oop.inline.hpp:31,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/cpu/riscv/interpreterRT_riscv.cpp:35:
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zForwarding.inline.hpp:
In member function 'zoffset ZForwarding::insert(uintptr_t, zoffset,
ZForwardingCursor*)':
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zForwarding.inline.hpp:252:16:
error: 'release' is not a member of 'OrderAccess'
   252 |   OrderAccess::release();
       |                ^~~~~~~
In file included from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zForwardingTable.inline.hpp:32:
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zGranuleMap.inline.hpp:
In member function 'void ZGranuleMap<T>::release_put(zoffset, size_t, T)':
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/gc/z/zGranuleMap.inline.hpp:100:16:
error: 'release' is not a member of 'OrderAccess' [-Wtemplate-body]
   100 |   OrderAccess::release();
       |                ^~~~~~~
In file included from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/interfaceSupport.inline.hpp:38,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/cpu/riscv/interpreterRT_riscv.cpp:38:
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/safepointMechanism.inline.hpp:
In static member function 'static void
SafepointMechanism::arm_local_poll_release(JavaThread*)':
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/safepointMechanism.inline.hpp:105:16:
error: 'release' is not a member of 'OrderAccess'
   105 |   OrderAccess::release();
       |                ^~~~~~~
gmake[4]: *** [lib/CompileJvm.gmk:147:
/build/reproducible-path/openjdk-21-21.0.13~8ea/build/hotspot/variant-server/libjvm/objs/interpreterRT_riscv.o]
Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[3]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2

ERROR: Build failed for targets 'bootcycle-images test-image' in
configuration '/build/reproducible-path/openjdk-21-21.0.13~8ea/build'
(exit code 2)
----- Build times -------
Start 2026-10-09 14:42:50
End   2026-10-09 16:07:05

01:24:15 TOTAL
-------------------------

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_interpreterRT_riscv.o:
cc1plus: warning: '-Werror=' argument
'-Werror=implicit-function-declaration' is not valid for C++
In file included from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/oops/oop.hpp:33,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/handles.hpp:29,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/code/oopRecorder.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/asm/codeBuffer.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/asm/assembler.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/asm/macroAssembler.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/asm/macroAssembler.inline.hpp:28,
                  from
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/cpu/riscv/interpreterRT_riscv.cpp:28:
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/atomic.hpp:
In member function 'void ScopedFenceGeneral<T>::prefix() [with
ScopedFenceType T = RELEASE_X]':
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/atomic.hpp:843:86:
error: 'release' is not a member of 'OrderAccess'
   843 | template<> inline void ScopedFenceGeneral<RELEASE_X>::prefix()
       { OrderAccess::release(); }
       |
                      ^~~~~~~
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/atomic.hpp:
In member function 'void ScopedFenceGeneral<T>::prefix() [with
ScopedFenceType T = RELEASE_X_FENCE]':
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/hotspot/share/runtime/atomic.hpp:844:86:
error: 'release' is not a member of 'OrderAccess'
    ... (rest of output omitted)
* For target jdk_modules_java.base__the.java.base_batch:
/build/reproducible-path/openjdk-21-21.0.13~8ea/src/java.base/share/classes/java/lang/CharacterData.java:86:
error: cannot find symbol
                 case 14 -> CharacterData0E.instance;
                            ^
   symbol:   variable CharacterData0E
   location: class CharacterData
1 error

* All command lines available in
/build/reproducible-path/openjdk-21-21.0.13~8ea/build/make-support/failure-logs.
=== End of repeated output ===

#1151156#10
Date:
2026-10-20 21:38:19 UTC
From:
To:
The only reason why openjdk-21 is still in testing is that #1134914
got downgraded. Old OpenJDK versions are very low on the list of
packages where anyone looks at build issues.

The default OpenJDK is currently 25, and there is IMHO no good reason
for having any other versions in testing right now.

This was on rv-osuosl-02, which is the buildd known to have corruption
issues. IMHO it would be better if this buildd gets disabled, but in
any case I am closing this bug since it built on a different buildd
I am closing the bug since there is nothing wrong in the package.

cu
Adrian