From nobody Fri Oct 06 17:52:00 2023 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 4S2GG850VDz4w0gJ for ; Fri, 6 Oct 2023 17:52:00 +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 4S2GG838wMz4dKj for ; Fri, 6 Oct 2023 17:52:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696614720; a=rsa-sha256; cv=none; b=dn7pOFI/M0om5/4V3Md/G0lR+EgAtQmXQ+DCX4kArENdrmRIlLt7bMTlOzu7s6XQxOAn/z SG/oDbCBSQJ6bKsZesFyMuJZeWsJHjwH9GYEkmmOyhnNJMa1fnP2vCVC6tReq0+sT/P1XM zGm1av5sXOYa2QV8i4bTQfQJW5faUSb/7HlOO+LTv6sW37ewRujvv5f3fCiEIXy5ONcibj 3mXwdCzv73+doM/bv4thaPFoZQjSeJPSiedG3Pz+M0DCYYHN3rwcONL0WRUe6f5GlRQmSc rFgHIvrKp8kbqumN6tyhyNTI11H9cy2cmVDig0d5vKLmgaKKgfd9ThwaNWdJag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696614720; 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=6o5ESttxj7YcUa4EpMO26Ggq4T422xTmALl4NeDYQY8=; b=cX2cR/ksD54LNTgHrSZp9sApaMaVaBtsKI/3ZeUpQfoYQkv1e+4mIaqIqBuJygHE+xLO3N oucYyMUUndiD+MaKEAEdwhs7N3/PNyRH0Pb/M7tyx8Kh5tcnpck6LU+rta0fHYSV3eEhKE ln+oL4xJaGuPXlzcMZBYXgXm7jGQN+mWCmN1fmcaCKbWsSoTOKf9ArFfYqjS5876OcxNBU WmLAWiGYHhdSlsim17zTRFLdgyFWC43KVWjJNZfAE2esNPe+9knJVHrM59WR3iPUE5xdD0 yteqB1C8D2XfCI59nrqfSPuoTarLpUM9F4EYjLZGMnhWF4dmW87HGgnQFPkm+w== 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 4S2GG829wjzxsh for ; Fri, 6 Oct 2023 17:52:00 +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 396Hq06V067641 for ; Fri, 6 Oct 2023 17:52:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 396Hq0rq067640 for java@FreeBSD.org; Fri, 6 Oct 2023 17:52:00 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 274109] java/openjdk17: fix build with lld 17 Date: Fri, 06 Oct 2023 17:52:00 +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 Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: 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=3D274109 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D2bd641cc196eebc4dcb3df64df89fe3= 0934106c0 commit 2bd641cc196eebc4dcb3df64df89fe30934106c0 Author: Dimitry Andric AuthorDate: 2023-09-26 15:26:06 +0000 Commit: Dimitry Andric CommitDate: 2023-10-06 17:48:54 +0000 java/openjdk17: fix build with lld 17 Building java/openjdk17 with lld 17 results in the following link error= s: 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 '_ZTVZ26WB_AsyncHandshakeWalkStackE16TraceSelfClosure' failed: symbol not defined 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 c++: error: linker command failed with exit code 1 (use -v to see invocation) 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: 274109 Approved by: maintainer timeout (10 days) MFH: 2023Q4 .../patch-make_hotspot_lib_JvmMapfile.gmk (new) | 20 ++++++++++++++++= ++++ 1 file changed, 20 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=