From nobody Wed Aug 09 22:25:55 2023 X-Original-To: toolchain@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 4RLl5K4lsDz4mNVM for ; Wed, 9 Aug 2023 22:26:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RLl5K4D6zz4KGJ; Wed, 9 Aug 2023 22:26:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691619973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=n6ABSEVysvo/L6kshmKAHBJo4Duc2lOvNCmMy55py+I=; b=vSrNNkA5LahMB1rRDvRCnaOPKc3Utzgif7Q2PC6Z3Rf9LGq7WGTX/ZggBzNdYZaigC61nW WQxyECNxiiTcy9GQaQmyhhBF7gJLRoEXudtHjobIIipPCummjc9JKiioiP35343ZOxy/iP 3m6aM9NRi4PFt3jGFtUboD7UlOnaP+zCNsH+OzTxUCSFusoGSbZ6c6F88Ps8brw0l0I6NK B++vohLqAR9AukFnNbzUJj0bmalXuuCUqAw6XFRY6lC6fYbIC84Cgj9ynAKbnMM9TIdmfe Q4SdfM46F2MoalBv+Wfa+LwtqnIEnO78CH/smkVfML82P5As2GiFkc5Ai0ezhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691619973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=n6ABSEVysvo/L6kshmKAHBJo4Duc2lOvNCmMy55py+I=; b=fxw6Xh2QuO8NYs2HcELcgw0UIdF2A+HU3rKQVLcA1diNdoHfzTud0scqgSzb1vMHtdYWgB G7P2DhlDFi09p0oPGa+9y7NeC1z3yTrpwGMxo79fN6qSKgKEmvNWSDnzflz8SyUftzzc3G 8ZHM0zGPKI5nPQkoOm06YQefgIE69gu34eohmtDTpjra25pqH+gNPtP4yNLFHZiniI6IoT 4pDl9uSCek2tBXGlgX8Wff0uzNktZKdPunNY3ur7215U6ougbrDqvyg9xY+caNk4MGN2Mn DkmW7Hkw7ydq7rxtbMkKiyXfU5P+TmnDK55Amcpi0F+9o2Bs67myu2jpuT+Zsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691619973; a=rsa-sha256; cv=none; b=k0Yjt5HKCktaUm6h8+por5bIRDMflrnNG8ryKN+Qd07VxSCR3i83HvJ9Bx4o+cIOIUSYzI gf0xDYnKYSnl8oMFK5Dw3ep6TMjcsDuTQX8vM+a75BnXpmxWDgoeQRbO+KJJw4ob0iYGVd t70XNoxWGFSAdhcc2LRmTQb7KQSSI6gj24B8SqN7ruOYwIUV69IarFdf75Dr7oZrlKrVbn y8NP28oP/i0Pfoe2XX3qwh2LX73V4CMkwJ0XYj9tsZoY78L3Y6iIS/hretKvN6aiwctPrs NVz88+3G6Um/Z/YA7XNt3IZN6pXAjGTSIPHVkCrUb5fITKEIGlpkf+hB7HGFIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RLl5K2XgWz1FbX; Wed, 9 Aug 2023 22:26:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id F32455847C; Thu, 10 Aug 2023 00:26:10 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_82CD0035-E2D2-4D7A-9644-CE21A5F6ECD1"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: c++: dynamic_cast woes From: Dimitry Andric In-Reply-To: Date: Thu, 10 Aug 2023 00:25:55 +0200 Cc: Mark Millard , toolchain@freebsd.org Message-Id: <6E31D6F9-8E9D-42FE-9D14-2A80EBD2B912@FreeBSD.org> References: <6B6A7C9C-8F82-443D-BBC3-B2263FEAFD79@FreeBSD.org> To: Christoph Moench-Tegeder X-Mailer: Apple Mail (2.3731.700.6) --Apple-Mail=_82CD0035-E2D2-4D7A-9644-CE21A5F6ECD1 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 9 Aug 2023, at 00:29, Christoph Moench-Tegeder wrote: > > ## Dimitry Andric (dim@FreeBSD.org): > >> Yes, this is a typical problem when type info is replicated across >> dynamic library boundaries. The best thing to prevent this is to >> ensure that the key functions for a class (typically constructors >> and destructors) are only in one translation unit (object file), >> and that object file is only in one .so file. > > As FreeBSD is basically unsupported from upstream, this sounds > like I'm in for quite a bit of fun here. Well. FWIW, it took quite a while (kicad has LOTS of dependencies!), but I built kicad and it looks like I can reproduce the original problem, after disabling the static-cast-patch. So I will investigate it a bit further. -Dimitry --Apple-Mail=_82CD0035-E2D2-4D7A-9644-CE21A5F6ECD1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZNQScwAKCRCwXqMKLiCW o2siAKCcltB9ryrfK4LmHRk/JBkRSKo8WACgrYacbXPBaZ6ah6JfiwnSHE6Hwzs= =1few -----END PGP SIGNATURE----- --Apple-Mail=_82CD0035-E2D2-4D7A-9644-CE21A5F6ECD1--