From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6136D3858CDA; Wed, 21 Feb 2024 15:28:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6136D3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708529311; bh=lsGpm20lKkzeDvVHDj78jY7gN0PgvFdHxNSySHtvJpI=; h=From:To:Subject:Date:From; b=ipxNXmVy79b2ooEbQkAm6vbK8tToljEhKM4ntq6JGcJgszWbyIu+UJ24Xz2vS9sQL tyb9b4i8MUebeVLPr5Zin4POe5vJFS2Ya2ZQ/9O+JfMYnnQurBeYQEha1q7aofj1tv Vhz0fkxnT7IjfjIQfg2mZz3e2kHI9sAEBF9fnmeU= From: "fxcoudert at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114034] New: Failure of tests gcov-dump-{1,2}.C Date: Wed, 21 Feb 2024 15:28:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target 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=3D114034 Bug ID: 114034 Summary: Failure of tests gcov-dump-{1,2}.C Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fxcoudert at gcc dot gnu.org Target Milestone: --- We have the following failures on x86_64-apple-darwin23: FAIL: g++.dg/gcov/gcov-dump-1.C -std=3Dgnu++98 (test for excess errors) FAIL: g++.dg/gcov/gcov-dump-1.C -std=3Dgnu++14 (test for excess errors) FAIL: g++.dg/gcov/gcov-dump-1.C -std=3Dgnu++17 (test for excess errors) FAIL: g++.dg/gcov/gcov-dump-1.C -std=3Dgnu++20 (test for excess errors) FAIL: g++.dg/gcov/gcov-dump-2.C -std=3Dgnu++98 (test for excess errors) FAIL: g++.dg/gcov/gcov-dump-2.C -std=3Dgnu++14 (test for excess errors) FAIL: g++.dg/gcov/gcov-dump-2.C -std=3Dgnu++17 (test for excess errors) FAIL: g++.dg/gcov/gcov-dump-2.C -std=3Dgnu++20 (test for excess errors) Excess errors: ld: warning: ignoring duplicate libraries: '-lgcov' The compilation line only includes one -lgcov: /Users/fx/ibin-20240219/gcc/testsuite/g++1/../../xg++ -B/Users/fx/ibin-20240219/gcc/testsuite/g++1/../../=20 /Users/fx/gcc-upstream/gcc/testsuite/g++.dg/gcov/gcov-dump-1.C=20=20=20 -fdiagnostics-plain-output -nostdinc++ -I/Users/fx/ibin-20240219/x86_64-apple-darwin23/libstdc++-v3/include/x86_64= -apple-darwin23 -I/Users/fx/ibin-20240219/x86_64-apple-darwin23/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 -fmessage-length=3D0=20 -std=3Dgnu++98 -fprofile-generate -ftest-coverage -lgcov=20=20=20 -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libstdc++-v3/src/.libs=20 -B/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libstdc++-v3/src/.libs=20 -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libstdc++-v3/src/.libs=20 -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libstdc++-v3/src/experime= ntal/.libs -B/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libitm/ -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libitm/.libs -lm -o ./gcov-dump-1.exe but the driver somehow includes another one when calling collect2: /Users/fx/ibin-20240219/gcc/testsuite/g++1/../../collect2 -demangle -syslib= root /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/ -dynamic -arch x86_64 -platform_version macos 14.0.0 0.0 -o ./gcov-dump-1.exe -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libstdc++-v3/src/.libs -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libstdc++-v3/src/.libs -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libstdc++-v3/src/experime= ntal/.libs -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libitm/.libs -L/Users/fx/ibin-20240219/gcc/testsuite/g++1/../.. -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libstdc++-v3/src/.libs -L/Users/fx/ibin-20240219/x86_64-apple-darwin23/./libitm -lemutls_w -lheapt= _w /var/folders/_8/7ft0tbns6_l87s21n4s_1sc80000gn/T//ccyOpfRM.o -lgcov -lstdc++ -lgcov -lgcc_s.1.1 -lgcc -lSystem -no_compact_unwind -rpath @loader_path -r= path /Users/fx/ibin-20240219/gcc -rpath /Users/fx/ibin-20240219/x86_64-apple-darwin23/libstdc++-v3/src/.libs -rpath /Users/fx/ibin-20240219/x86_64-apple-darwin23/libitm I'm wondering if it's a good idea to simply ignore the warning in the two t= est cases. It's not such a frequent use case, and darwin linker to being a pain here.=