From nobody Mon Dec 5 18:25:23 2022 X-Original-To: ports-bugs@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 4NQsRR6nPCz4j7BY for ; Mon, 5 Dec 2022 18:25:23 +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 4NQsRR47sVz4Md0 for ; Mon, 5 Dec 2022 18:25:23 +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=1670264723; 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; bh=VNPdCvy8flbNhi2Zw+8pQ9lhTN9QLp9uPvEd4Q+Mw8s=; b=mf6etnpjfd03qu9n3LAo0hIPlfJ3sDaClQLuvwIRR20UTvK9eZJs6ZUoFVruA2HL2tmTON 42ITi2YjMVHx+nwvUM3lIUw3nPJoDn9NJPLr98RR4I8kgIqk610eqcJgrISXUD52WppiJ9 4feKHJzCsrdoQGu0Zw61BEsg0WTrbwO1nnlzCwIQdaMYae++RtHEv73rPeQOLUTrbxAtaM PRIvmPypoa0mer2mzJZX9+1mGmduzo2PDGKLAfzOQGll7TPVBFq7gbbkyrpjCBcGAg4iyJ VPTXi7cyE+xS4ultGTZllmybEzlchHEcQeguIqd/vDT7FZTpgZY3+PerlczzZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670264723; a=rsa-sha256; cv=none; b=Rc6yVJonQiYSfbsEp2CgnV1oy0xAChRcy6jqeO/J8ePKPiowWZIiR8fN0Fp2MWapeMnkYb WlUjITvJR3On5+OaEdNZNnWnD5Zn2za7jGnXV+URB5vjpnQKL9kr8eRL+j+uXcfVWSxF4u HRbo2tbVqu+3eB2pZHeOOsq7LAtitnPS+yyfAc5hhrYvMTtUNpCVOEBSeDL3sgOJ5HuUuf bJu+jZhJScoPqbZFr97ZVfdlZ2hEEXx4E/rh3UErLgZuYVDwaLy3aRv60pyDcjPl4nPb4g 5oPL1aOlxNRssLv6rsZsC0LdIDhn3s9v/wm1QtvOGyXaCWW9A3qRPA86P0xf0w== 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 4NQsRR35Xfz176C for ; Mon, 5 Dec 2022 18:25:23 +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 2B5IPN3j072291 for ; Mon, 5 Dec 2022 18:25:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B5IPNX4072290 for ports-bugs@FreeBSD.org; Mon, 5 Dec 2022 18:25:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268178] lang/tcl8[6-8]: fix build with clang/lld 15 Date: Mon, 05 Dec 2022 18:25:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268178 Bug ID: 268178 Summary: lang/tcl8[6-8]: fix build with clang/lld 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org During an exp-run for llvm 15 (see bug 265425), it turned out that lang/tcl= 86 failed to build with clang (and lld) 15: ... cc -O2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pipe=20=20 -fstack-protector-strong -Wl,--export-dynamic -shared -o libtcl86.so.1 regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAssembly.o tclAsync .o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompCmdsGR.o tclCompCmdsSZ.o tclCompExpr.o=20 tclCompile.o tclConfig.o tclDate.o tclDictObj.o tclDisassemble.o tclEncod ing.o tclEnsemble.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName= .o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd= .o=20 tclIORChan.o tclIORTrans.o tclIOGT.o tclIOSock.o tclIOUtil.o t clLink.o tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNoti= fy.o tclObj.o tclOptimize.o tclPanic.o tclParse.o tclPathObj.o tclPipe.o tclPk= g.o tclPkgConfig.o tclPosixStr.o tclPreserve.o tclProc.o tclRege xp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o tclStrToD.o tclThread.o tclThreadAlloc.o tclThreadJoin.o tclThreadStorage.o tclStubIni= t.o=20 tclTimer.o tclTrace.o tclUtf.o tclUtil.o tclVar.o tclZlib.o tclTomMath Interface.o tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe.o tclUnixSock.o tclUnixTime.o tclUnixInit.o tclUnixThrd.o=20 tclUnixCompat.o tclUnixNotfy.o tclOO.o tclOOBasic.o tclOOCall.o tclOODefi= neC mds.o tclOOInfo.o tclOOMethod.o tclOOStubInit.o tclLoadDl.o bn_s_mp_revers= e.o bn_s_mp_mul_digs_fast.o bn_s_mp_sqr_fast.o bn_mp_add.o bn_mp_and.o=20 bn_mp_add_d.o bn_mp_clamp.o bn_mp_clear.o bn_mp_clear_multi.o bn_mp_cmp .o bn_mp_cmp_d.o bn_mp_cmp_mag.o bn_mp_cnt_lsb.o bn_mp_copy.o=20 bn_mp_count_bits.o bn_mp_div.o bn_mp_div_d.o bn_mp_div_2.o bn_mp_div_2d.o bn_mp_div_3.o bn_mp_exch.o bn_mp_expt_u32.o bn_mp_grow.o bn_mp_init.o=20 bn_mp_ini t_copy.o bn_mp_init_multi.o bn_mp_init_set.o bn_mp_init_size.o bn_s_mp_karatsuba_mul.o bn_s_mp_karatsuba_sqr.o bn_s_mp_balance_mul.o=20 bn_mp_lshd.o bn_mp_mod.o bn_mp_mod_2d.o bn_mp_mul.o bn_mp_mul_2.o=20 bn_mp_mul_2d.o bn _mp_mul_d.o bn_mp_neg.o bn_mp_or.o bn_mp_radix_size.o bn_mp_radix_smap.o=20 bn_mp_read_radix.o bn_mp_rshd.o bn_mp_set.o bn_mp_shrink.o bn_mp_sqr.o bn_mp_sqrt.o bn_mp_sub.o bn_mp_sub_d.o bn_mp_signed_rsh.o bn_mp_to_ubi n.o bn_s_mp_toom_mul.o bn_s_mp_toom_sqr.o bn_mp_to_radix.o bn_mp_ubin_siz= e.o bn_mp_xor.o bn_mp_zero.o bn_s_mp_add.o bn_s_mp_mul_digs.o bn_s_mp_sqr.o bn_s_mp_sub.o tclDTrace.o -fstack-protector-strong -Wl,--export-d ynamic -ldl -lz -lpthread -lm -Wl,-soname,libtcl86.so.1=20=20 "-Wl,-rpath,/usr/local/lib" ld: error: duplicate symbol: __dtrace_tcl___obj__create >>> defined in tclAssembly.o >>> defined in tclBasic.o ld: error: duplicate symbol: __dtrace_tcl___obj__create >>> defined in tclAssembly.o >>> defined in tclCmdMZ.o ld: error: duplicate symbol: __dtrace_tcl___obj__free >>> defined in tclBasic.o >>> defined in tclCmdMZ.o ... more of those... This is similar to the problem reported for lang/perl5.* in bug 265516, i.e. the DTrace-related postprocessing of object files messes up the symbols in = such a way that there are multiple definitions. And similarly to the perl5.x workaround, I propose adding -Wl,-z,muldefs to LDFLAGS, to silence the linker errors. --=20 You are receiving this mail because: You are the assignee for the bug.=