https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100655
Bug ID: 100655 Summary: 'g++.dg/tsan/pthread_cond_clockwait.C' FAILs due to 'pthread_cond_clockwait' missing Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: kingoipo at gmail dot com, marxin at gcc dot gnu.org Target Milestone: --- This new testcase recently added in commit r12-794-g80b4ce1a5190ebe764b1009afae57dcef45f92c2 "TSAN: add new test" FAILs on one of my testing systems: +FAIL: g++.dg/tsan/pthread_cond_clockwait.C -O0 (test for excess errors) +UNRESOLVED: g++.dg/tsan/pthread_cond_clockwait.C -O0 compilation failed to produce executable +FAIL: g++.dg/tsan/pthread_cond_clockwait.C -O2 (test for excess errors) +UNRESOLVED: g++.dg/tsan/pthread_cond_clockwait.C -O2 compilation failed to produce executable [...]/gcc/testsuite/g++.dg/tsan/pthread_cond_clockwait.C: In function 'int main()': [...]/gcc/testsuite/g++.dg/tsan/pthread_cond_clockwait.C:26:5: error: 'pthread_cond_clockwait' was not declared in this scope; did you mean 'pthread_cond_wait'? Apparently 'pthread_cond_clockwait' has been added in glibc 2.30, released 2019-08-01. Leave it as it is, or conditionalize the testcase in some way?