From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AD32C3858418; Sun, 5 Nov 2023 20:42:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD32C3858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699216967; bh=7IxvrdwW4DhLBKIEfgI9fNL4cGfXkFk+yi38L+h7cN4=; h=From:To:Subject:Date:From; b=uCqlg88sS63NikeubdfyC8XuI3FnDZX0dzdx92uxSMlxb5hly8HdKDfxCBtypsG0J dP7Qo0AQ3ekBIYWMbPyiXbGHBlFbNpl6B6HmLnKFZLfKg7TbeSBV2I+caa2qnv7GXm B/N+2ACBIeYBRWORGzBj8W3sJ/gR7JauHgMJ0FRI= From: "fxcoudert at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/112397] New: Two persistent libstdc++ test failures on x86_64-apple-darwin Date: Sun, 05 Nov 2023 20:42:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fxcoudert at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112397 Bug ID: 112397 Summary: Two persistent libstdc++ test failures on x86_64-apple-darwin Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: fxcoudert at gcc dot gnu.org Target Milestone: --- FAIL: 17_intro/static.cc -std=3Dgnu++17 (test for excess errors) FAIL: 20_util/to_chars/4.cc -std=3Dgnu++17 (test for excess errors) The both have the same linker warning: ld: warning: direct access in function 'operator new[](unsigned long, std::nothrow_t const&) (.cold)' from file '/Users/fx/ibin-2023 1105/x86_64-apple-darwin21/./libstdc++-v3/src/.libs/libstdc++.a(new_opvnt.o= )' to global weak symbol 'operator new[](unsigned long, s td::nothrow_t const&)' from file '/Users/fx/ibin-20231105/x86_64-apple-darwin21/./libstdc++-v3/src/.libs/lib= stdc++.a(new_opvnt.o)' m eans the weak symbol cannot be overridden at runtime. This was likely cause= d by different translation units being compiled with diff erent visibility settings. ld: warning: direct access in function 'operator new[](unsigned long, std::nothrow_t const&) (.cold)' from file '/Users/fx/ibin-20231105/x86_64-apple-darwin21/./libstdc++-v3/src/.libs/lib= stdc++.a(new_opvnt.o)' to global weak symbol 'operator new[](unsigned long, std::nothrow_t const&)' from file '/Users/fx/ibin-20231105/x86_64-apple-darwin21/./libstdc++-v3/src/.libs/lib= stdc++.a(new_opvnt.o)' means the weak symbol cannot be overridden at runtime. This was likely caus= ed by different translation units being compiled with different visibility settings. I am not sure what the "different visibility settings" are, or if it's just= a red herring, but the testcase is compiled with: Executing on host: /Users/fx/ibin-20231105/./gcc/xg++ -shared-libgcc -B/Users/fx/ibin-20231105/./gcc -nostdinc++ -L/Users/fx/ibin-20231105/x86_64-apple-darwin21/libstdc++-v3/src -L/Users/fx/ibin-20231105/x86_64-apple-darwin21/libstdc++-v3/src/.libs -L/Users/fx/ibin-20231105/x86_64-apple-darwin21/libstdc++-v3/libsupc++/.libs -B/Users/fx/irun-20231105/x86_64-apple-darwin21/bin/ -B/Users/fx/irun-20231105/x86_64-apple-darwin21/lib/ -isystem /Users/fx/irun-20231105/x86_64-apple-darwin21/include -isystem /Users/fx/irun-20231105/x86_64-apple-darwin21/sys-include -fchecking=3D1 -B/Users/fx/ibin-20231105/x86_64-apple-darwin21/./libstdc++-v3/src/.libs -fmessage-length=3D0 -fno-show-column -ffunction-sections -fdata-sections -= g -O2 -DLOCALEDIR=3D"." -nostdinc++ -I/Users/fx/ibin-20231105/x86_64-apple-darwin21/libstdc++-v3/include/x86_64= -apple-darwin21 -I/Users/fx/ibin-20231105/x86_64-apple-darwin21/libstdc++-v3/include -I/Users/fx/gcc-upstream/libstdc++-v3/libsupc++ -I/Users/fx/gcc-upstream/libstdc++-v3/include/backward -I/Users/fx/gcc-upstream/libstdc++-v3/testsuite/util=20 /Users/fx/gcc-upstream/libstdc++-v3/testsuite/17_intro/static.cc=20=20=20 -std=3Dgnu++17 -static-libstdc++ -fdiagnostics-plain-output ./libtestc++.a -liconv -L/Users/fx/ibin-20231105/x86_64-apple-darwin21/libstdc++-v3/src/filesystem= /.libs -L/Users/fx/ibin-20231105/x86_64-apple-darwin21/libstdc++-v3/src/experiment= al/.libs -lm -o ./static.exe (timeout =3D 360)=