[Bug 276519] java/openjdk19: build fails - linker issues - undefined symbols on 15-current

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 22 Jan 2024 10:09:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276519

            Bug ID: 276519
           Summary: java/openjdk19: build fails - linker issues -
                    undefined symbols on 15-current
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: java@FreeBSD.org
          Reporter: netchild@FreeBSD.org
          Assignee: java@FreeBSD.org
             Flags: maintainer-feedback?(java@FreeBSD.org)

The poudriere build on 15-current OSVERSION 1500011 fails with the following
linker errors:
gmake[5]: Entering directory
'/wrkdirs/usr/ports/java/openjdk19/work/jdk19u-jdk-19.0.2-7-1/make'
Updating support/src.zip
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
'_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
'_ZTVZN18G1ConcurrentRefine30get_and_reset_refinement_statsEvE12CollectStats'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN19G1DirtyCardQueueSet12abandon_logsEvE23AbandonThreadLogClosure' failed:
symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN19G1DirtyCardQueueSet16concatenate_logsEvE27ConcatenateThreadLogClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN19G1DirtyCardQueueSet30get_and_reset_refinement_statsEvE12CollectStats'
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:165:
/wrkdirs/usr/ports/java/openjdk19/work/jdk19u-jdk-19.0.2-7-1/build/bsd-x86_64-server-release/support/modules_libs/java.base/server/libjvm.so]
Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory
'/wrkdirs/usr/ports/java/openjdk19/work/jdk19u-jdk-19.0.2-7-1/make/hotspot'

Relevant make.conf vars:
OPTIONS_SET= CUPS GNUPG ICONV MMX OPTIMIZED_CFLAGS SEM SIMD HTTP2 OPENMP LTO
BROTLI
OPTIONS_UNSET= AALIB ALSA ARTS ESOUND ESPEAK IDN KDE3 NAS NOUVEAU PORTAUDIO
PROFILE PULSEAUDIO X11 OPENGL V4L VAAPI VDPAU XVIDEO PROFILE VULKAN
devel_qt6-base_SET_FORCE=X11
DEFAULT_VERSIONS+=bdb=5+ java=11+ pgsql=15 imagemagick=7-nox11
WITH_PIE=yes
WITH_RELRO=yes
WITH_BIND_NOW=yes

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