From nobody Fri Jan 26 22:26:43 2024 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TMC3R63Ggz58yDZ for ; Fri, 26 Jan 2024 22:26:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TMC3R32mZz4fc1 for ; Fri, 26 Jan 2024 22:26:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706308003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ikg2xInCYXFlhVF4+aJVLCg2N1PwrXeDT6pn40LUrJk=; b=E3OVGBhj7JLjJ+ZiltRRK9LSRI3lXCwRMgD76rkUaITSCKTwIeSSzisBFJHptz3G8k0Tvy zX+S9y3QwpaQ9KgzTtYZbQ+c1qAAUaKemLjf1B4JRfP3wN91BBlaKqxFBHEj/0t2acQ6p/ 783d+PJEmCrC1zO2TNeOHo0462eGXiimubjT4bV+JpAdfnaFkKkpCiKlFWXyWUPH4Fj+qY w85Ex3MWonmmIN9HOd3xkltYCF8dHxe2zMWbELrj8bdOMqY4+Fov6i1nhFvY8rLChZBFRT LyAhtWZIiKz81iAaoIee1LaxLWuBjZAbOoHIGcCDtV1K+tORGLF0FWWl1YS/iQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706308003; a=rsa-sha256; cv=none; b=QAu4X87PDb8l5eyJDX8SrxrCfYmsBPsiCGvmqlkbNw92Pe+kx/rdN9qXtEIqr1TZcfKYtb 6vYUkXlxP0QlrNl45s+RGGI/g/grew1lJea5jp1wDvIFWp+oOt46ebE8CbVjC/b8hs3hkU r4NZVBlGD53OQRolU3R3QnSCXrsj+Z+KO3XUAcr8yp1xsva0chrCZoctcivZbQWPjT+mWe 7pLFeTdE9BpQwW4felZAJnuanr3f//ufyjXg000r7oIlxDuXtctdEbOplDMvr2ezFaJ8kD uirQTwO5QEjdnuIiP52Q2zRvnLsYzwquuH1V3SRiuw2DIKtMSqunTiY3R4P8EA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TMC3R27j1z10Sy for ; Fri, 26 Jan 2024 22:26:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 40QMQhnA053215 for ; Fri, 26 Jan 2024 22:26:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40QMQh6C053214 for java@FreeBSD.org; Fri, 26 Jan 2024 22:26:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 276425] java/openjdk21: does not compile on main-70445a8061 Date: Fri, 26 Jan 2024 22:26:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276425 --- Comment #11 from commit-hook@FreeBSD.org --- A commit in branch 2024Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3Dcfb52bd42c007e6e909bc915f8081a1= b033a7bfd commit cfb52bd42c007e6e909bc915f8081a1b033a7bfd Author: Dimitry Andric AuthorDate: 2023-11-12 20:00:48 +0000 Commit: Michael Osipov CommitDate: 2024-01-26 22:25:04 +0000 java/openjdk{19,20,21}: fix build with lld 17 Building java/openjdk{19,20,21} with lld 17 results in the following li= nk errors: 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 def= ined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN12JvmtiEnvBase27check_for_periodic_clean_upEvE28ThreadInsideIteratio= nClosure' 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 '_ZTVZN16SATBMarkQueueSet22set_active_all_threadsEbbE22SetThreadActiveClosu= re' failed: symbol not defined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN16SATBMarkQueueSet23abandon_partial_markingEvE25AbandonThreadQueueCl= osure' failed: symbol not defined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN18G1ConcurrentRefine30get_and_reset_refinement_statsEvE12CollectStat= s' failed: symbol not defined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN19G1DirtyCardQueueSet12abandon_logsEvE23AbandonThreadLogClosure' fai= led: symbol not defined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN19G1DirtyCardQueueSet16concatenate_logsEvE27ConcatenateThreadLogClos= ure' failed: symbol not defined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN19G1DirtyCardQueueSet30get_and_reset_refinement_statsEvE12CollectSta= ts' failed: symbol not defined ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN7Threads25change_thread_claim_tokenEvE11ResetClaims' failed: symbol = not defined This is because lld 17 defaults to errors when undefined symbols are referenced in linker version scripts. The problem is due to the Makefile JvmMapfile.gmk, which generates a linker version script. It uses "nm --defined-only" to dump symbols in object files, but this also includes local (hidden) symbols. Add "--extern-only" to make it only dump global symbols. PR: 276425 Approved by: otis (mentor), dim MFH: 2024Q1 Differential Revision: https://reviews.freebsd.org/D43620 (cherry picked from commit a1f91b22f1fc8ada691c47864c6365731cf8ef86) .../patch-make_hotspot_lib_JvmMapfile.gmk (new) | 20 ++++++++++++++++= ++++ .../patch-make_hotspot_lib_JvmMapfile.gmk (new) | 20 ++++++++++++++++= ++++ .../patch-make_hotspot_lib_JvmMapfile.gmk (new) | 20 ++++++++++++++++= ++++ 3 files changed, 60 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=