From nobody Sat Sep 3 21:24:37 2022 X-Original-To: freebsd-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 4MKnqH3zJXz4bZt8 for ; Sat, 3 Sep 2022 21:24:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-55.consmr.mail.gq1.yahoo.com (sonic308-55.consmr.mail.gq1.yahoo.com [98.137.68.31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MKnqG2MP9z4Bnf for ; Sat, 3 Sep 2022 21:24:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662240280; bh=6ZkCuWf63T/lOi6+o5lZEKljprQ0rmzwuj6QDYyYgJU=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=uKnr2hcA0Yw2gDtpZtwZyHJau4FJtfNa7BgUnC6SKO7Fbk6isypRZHRw+uRXLw6IoGxaPvHhrj3ulUizIRJ2jVOBjlSFYBaIOqvGTGCLeL777/xbm8D0k5myog7CQIXgM2NrIf+zOa6H3SzOnSHboY8a7JkA6WsDs0oZjsYZVAT4yeXHEZbF67dnqgtmZNh4Db3MwngkBtMWrdPI15fMQg4EFxUhJ3fgJa6kz6uJhoLQuSOUOHdIySlcpUwODrk3W2XEdJKsZDS3W7x59UMLA1N1EQqQeNRxlhZ+QhcrgpjuKs0M7MuocYrqk77Js8S+CAoKE5hTvVOl4m9wI5GKdg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662240280; bh=Zzoce1dX3KziWqq+S25UgAbHUOYGWnhz8X3HR1DbBbL=; h=X-S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zQK.ucdcDy2hKhtYdxIpqqatCULd01ngYOV_aKQgGigF0T.VfMgo6pNrKPe4gd9thUBVcbBi V8WWGuJK.5PucoaFsynzIeZcpRaCSWqSorzG03QhY.EpHYf5z4LJmmm1lC__Y6tKsR6FVA0tBdzN 55GDvvUbVnHIQVDQ3tIq7W7eknFMRRJHgCUz3BwkAR0LbS9QMNXbBN0l_z9HhAgjuZyegm0blAyI WVuhwjzHRMl1RiWCnavSSGHjHebSeB1lWWe51oLgUlcQHd1vhTb9pwHFx9YdmQrKjiG8S0Q0hBLn _1CA8g_kR7RVp443KIJm0_oC4IikrJEkOekzyvJnWeqDkschGOzlWmzGborib22utyhKP912yug. 1WLF9Y.IzJvEYm6QNs4JNeHKMXcnHuV7LUstY1MnfA5OI3wF842I4aAnFLsaKPGH1DoCDnlr1gNM w6etaxgsFx_VIEBCPI6wF6PU_hQuZHfyBQWqkhBNvFY8bYe2u1HXxoO1oUk8OJDLmoCiJu47dxqj nRgD3WqpEwIN7VCnt0LZ8flv.nq61gSiSkXHTIJTN6YQldXyNr0irR_M1agrfalzU0sKfOR4W.ga .i9.Y X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Sat, 3 Sep 2022 21:24:40 +0000 Received: by hermes--production-ne1-544744cc75-n6tzz (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6920507ebc0186f8b98cc94ede88dafc; Sat, 03 Sep 2022 21:24:39 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 14.0 \(3654.120.0.1.13\)) Subject: lang/gcc12 's g++12 gets a failure on aarch64 FreeBSD (main) but not on aarch64 Fedora (36), small test case Message-Id: <913100F3-F0DC-45F0-BF08-8D4146276636@yahoo.com> Date: Sat, 3 Sep 2022 14:24:37 -0700 To: FreeBSD Toolchain , FreeBSD Mailing List X-Mailer: Apple Mail (2.3654.120.0.1.13) References: <913100F3-F0DC-45F0-BF08-8D4146276636.ref@yahoo.com> X-Rspamd-Queue-Id: 4MKnqG2MP9z4Bnf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=uKnr2hcA; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.31 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.47 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.97)[-0.974]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.31:from]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On aarch64 FreeBSD (see the comment for the failure message): // g++12 -std=3Dc++20 -fmodules-ts -xc++-system-header memory // g++12 -std=3Dc++20 -fmodules-ts -c = gpp12_module_dynamic_pointer_cast_failure.cpp // // gets: // // during IPA pass: visibility // gpp12_dynamic_pointer_cast_failure.cpp:21:1: internal compiler error: = in function_and_variable_visibility, at ipa-visibility.cc:716 // 21 | } // | ^ import ; struct data { virtual ~data() =3D default; }; void test(std::shared_ptr b) { auto dpc =3D std::dynamic_pointer_cast(b); } Note: On FreeBSD, I do my own poudriere-devel based port builds and install the resulting packages. For reference: # g++12 -v Using built-in specs. COLLECT_GCC=3Dg++12 = COLLECT_LTO_WRAPPER=3D/usr/local/libexec/gcc12/gcc/aarch64-portbld-freebsd= 14.0/12.2.0/lto-wrapper Target: aarch64-portbld-freebsd14.0 Configured with: /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/configure = --disable-multilib --disable-bootstrap --disable-nls = --enable-gnu-indirect-function --enable-host-shared --enable-plugin = --libdir=3D/usr/local/lib/gcc12 --libexecdir=3D/usr/local/libexec/gcc12 = --program-suffix=3D12 --with-as=3D/usr/local/bin/as = --with-gmp=3D/usr/local = --with-gxx-include-dir=3D/usr/local/lib/gcc12/include/c++/ = --with-gxx-libcxx-include-dir=3D/usr/include/c++/v1 = --with-ld=3D/usr/local/bin/ld --with-pkgversion=3D'FreeBSD Ports = Collection' --with-system-zlib --without-zstd = --enable-languages=3Dc,c++,objc,fortran,jit --prefix=3D/usr/local = --localstatedir=3D/var --mandir=3D/usr/local/man = --infodir=3D/usr/local/share/info/gcc12 = --build=3Daarch64-portbld-freebsd14.0 Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.2.0 (FreeBSD Ports Collection)=20 There was no such failure on fedora 36 via: # c++ -std=3Dc++20 -fmodules-ts -xc++-system-header memory # c++ -std=3Dc++20 -freport-bug -fmodules-ts -c = gpp12_module_dynamic_pointer_cast_failure.cpp # where: # c++ -v Using built-in specs. COLLECT_GCC=3Dc++ COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/aarch64-redhat-linux/12/lto-wrapper= Target: aarch64-redhat-linux Configured with: ../configure --enable-bootstrap = --enable-languages=3Dc,c++,fortran,objc,obj-c++,ada,go,lto --prefix=3D/usr= --mandir=3D/usr/share/man --infodir=3D/usr/share/info = --with-bugurl=3Dhttp://bugzilla.redhat.com/bugzilla --enable-shared = --enable-threads=3Dposix --enable-checking=3Drelease --enable-multilib = --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions = --enable-gnu-unique-object --enable-linker-build-id = --with-gcc-major-version-only --enable-libstdcxx-backtrace = --with-linker-hash-style=3Dgnu --enable-plugin --enable-initfini-array = --with-isl=3D/builddir/build/BUILD/gcc-12.2.1-20220819/obj-aarch64-redhat-= linux/isl-install --enable-gnu-indirect-function = --build=3Daarch64-redhat-linux --with-build-config=3Dbootstrap-lto = --enable-link-serialization=3D1 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.2.1 20220819 (Red Hat 12.2.1-1) (GCC)=20 =3D=3D=3D Mark Millard marklmi at yahoo.com