[Bug 276425] java/openjdk21: does not compile on main-70445a8061

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 Jan 2024 15:15:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276425

            Bug ID: 276425
           Summary: java/openjdk21: does not compile on main-70445a8061
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: java@FreeBSD.org
          Reporter: matteo@FreeBSD.org
          Assignee: java@FreeBSD.org
             Flags: maintainer-feedback?(java@FreeBSD.org)

Here's the error I got:

Compiling up to 2774 files for java.desktop
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
gmake[4]: Entering directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
Compiling up to 11 files for jdk.jstatd
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ21WB_HandshakeWalkStackE16TraceSelfClosure' failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ24WB_HandshakeReadMonitorsE19ReadMonitorsClosure' failed: symbol not
defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ26WB_AsyncHandshakeWalkStackE16TraceSelfClosure' failed: symbol not
defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZL20reinitialize_itablesvE18ReinitTableClosure' failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN12JvmtiEnvBase27check_for_periodic_clean_upEvE28ThreadInsideIterationClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN14ClassLoaderExt20process_module_tableEP10JavaThreadP16ModuleEntryTableE19ModulePathsGatherer'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN15ClassLoaderData19demote_strong_rootsEvE25TransitionRootsOopClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN15G1RemSetSummary6updateEvE11CollectData' failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16DefNewGeneration26remove_forwarding_pointersEvE22ResetForwardedMarkWord'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16SATBMarkQueueSet22set_active_all_threadsEbbE22SetThreadActiveClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16SATBMarkQueueSet23abandon_partial_markingEvE25AbandonThreadQueueClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16java_lang_Thread21async_get_stack_traceEP7oopDescP10JavaThreadE20GetStackTraceClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN17BarrierSetNMethod21nmethod_entry_barrierEP7nmethodE19OopKeepAliveClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN18G1ConcurrentRefine30get_and_reset_refinement_statsEvE12CollectStats'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN19G1DirtyCardQueueSet22abandon_logs_and_statsEvE23AbandonThreadLogClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN7Threads25change_thread_claim_tokenEvE11ResetClaims' failed: symbol not
defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN9G1CardSet14num_containersEvE21GetNumberOfContainers' failed: symbol not
defined
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [lib/CompileJvm.gmk:155:
/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/build/bsd-x86_64-server-release/support/modules_libs/java.base/server/libjvm.so]
Error 1
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make/hotspot'
gmake[3]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2
gmake[3]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
gmake[4]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make'
gmake[3]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1'

ERROR: Build failed for target 'images' in configuration
'bsd-x86_64-server-release' (exit code 2) 
gmake[3]: Entering directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1'

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_BUILD_LIBJVM_link:
c++: warning: argument unused during compilation: '-static-libstdc++'
[-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-static-libgcc'
[-Wunused-command-line-argument]
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ21WB_HandshakeWalkStackE16TraceSelfClosure' failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ24WB_HandshakeReadMonitorsE19ReadMonitorsClosure' failed: symbol not
defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ26WB_AsyncHandshakeWalkStackE16TraceSelfClosure' failed: symbol not
defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZL20reinitialize_itablesvE18ReinitTableClosure' failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN12JvmtiEnvBase27check_for_periodic_clean_upEvE28ThreadInsideIterationClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN14ClassLoaderExt20process_module_tableEP10JavaThreadP16ModuleEntryTableE19ModulePathsGatherer'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN15ClassLoaderData19demote_strong_rootsEvE25TransitionRootsOopClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN15G1RemSetSummary6updateEvE11CollectData' failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16DefNewGeneration26remove_forwarding_pointersEvE22ResetForwardedMarkWord'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16SATBMarkQueueSet22set_active_all_threadsEbbE22SetThreadActiveClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16SATBMarkQueueSet23abandon_partial_markingEvE25AbandonThreadQueueClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16java_lang_Thread21async_get_stack_traceEP7oopDescP10JavaThreadE20GetStackTraceClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN17BarrierSetNMethod21nmethod_entry_barrierEP7nmethodE19OopKeepAliveClosure'
failed: symbol not defined
   ... (rest of output omitted)

* All command lines available in
/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/build/bsd-x86_64-server-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
HELP: Try searching the build log for '] Error'.
HELP: Run 'make doctor' to diagnose build problems.

gmake[3]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1'
gmake[2]: ***
[/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make/Init.gmk:323: main]
Error 2
gmake[2]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1'
gmake[1]: ***
[/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/make/Init.gmk:189:
images] Error 2
gmake[1]: Leaving directory
'/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1'
*** Error code 1

Stop.

-- 
You are receiving this mail because:
You are the assignee for the bug.