<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - testsuite hard_link_count_test_suite failing on btrfs fs."
href="https://llvm.org/bugs/show_bug.cgi?id=31068">31068</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>testsuite hard_link_count_test_suite failing on btrfs fs.
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>3.9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>osukup@suse.cz
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>While building llvm 3.9.0 and libc++ on buildhost with btrfs filesystem libc++
tesuite fails. On ext3 fs works without any observable problems.
Relevant part of buildlog:
levant snipset of build log:
[ 2212s] [0/1] cd
/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test &&
/usr/bin/python2.7 /home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/utils/lit/lit.py
-sv /home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test
[ 2212s] lit.py: lit.cfg:42: note: Using configuration variant: libcxx
[ 2212s] lit.py: config.py:717: note: inferred target_triple as:
'x86_64-unknown-linux-gnu'
[ 2212s] lit.py: config.py:213: note: inferred use_system_cxx_lib as: False
[ 2212s] lit.py: config.py:224: note: inferred use_clang_verify as: True
[ 2212s] lit.py: config.py:232: note: enabling thread-safety annotations
[ 2212s] lit.py: config.py:320: note: inferred language dialect as: c++1z
[ 2212s] lit.py: config.py:120: note: Using flags: ['-v']
[ 2212s] lit.py: config.py:122: note: Using compile flags:
['-Werror=3Dthread-safety', '-std=3Dc++1z', '-nostdinc++', '-include',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/support/nasty_macros.hpp',
'-I/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/include','-D__STDC_FORMAT_MACROS',
'-D__STDC_LIMIT_MACROS', '-D__STDC_CONSTANT_MACROS',
'-I/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/support',
'-DLIBCXX_FILESYSTEM_STATIC_TEST_ROOT=3D"/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/std/experimental/filesystem/Inputs/static_test_env"',
'-DLIBCXX_FILESYSTEM_DYNAMIC_TEST_ROOT=3D"/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/filesystem/Output/dynamic_env"',
'-DLIBCXX_FILESYSTEM_DYNAMIC_TEST_HELPER=3D"/usr/bin/python2.7
/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/support/filesystem_dynamic_test_helper.py"']
[ 2212s] lit.py: config.py:123: note: Using link flags: ['-nodefaultlibs',
'-L/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/lib64',
'-Wl,-rpath,/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/lib64',
'-lc++experimental', '-lc++', '-lm', '-lgcc_s', '-lgcc', '-lpthread', '-lc',
'-lgcc_s', '-lgcc']
[ 2212s] lit.py: config.py:126: note: Using available_features: ['long_tests',
'locale.fr_CA.ISO8859-1', 'c++filesystem', 'locale.cs_CZ.ISO8859-2',
'libatomic', 'c++experimental', 'clang', 'locale.fr_FR.UTF-8', 'clang-3.9',
'locale.ru_RU.UTF-8', 'thread-safety', 'linux', 'locale.en_US.UTF-8',
'fsized-deallocation', 'c++1z', 'locale.zh_CN.UTF-8']
[ 2212s] lit.py: config.py:127: note: Using environment:
{'LIBCXX_FILESYSTEM_DYNAMIC_TEST_ROOT':
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/filesystem/Output/dynamic_env'}
[ 2213s] -- Testing: 5365 tests, 16 threads --
[ 2292s] Testing: 0 .. 10.. 20.. 30
[ 2292s] FAIL: libc++ ::
std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp
(1726 of 5365)
[ 2292s] ******************** TEST 'libc++ ::
std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp'
FAILED ********************
[ 2292s] Compiled With:
['/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/stage1/bin/clang++', '-o',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/Output/hard_link_count.pass.cpp.o',
'-x', 'c++',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp',
'-c', '-v', '-Werror=3Dthread-safety', '-std=3Dc++1z', '-nostdinc++',
'-include',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/support/nasty_macros.hpp',
'-I/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/include',
'-D__STDC_FORMAT_MACROS', '-D__STDC_LIMIT_MACROS', '-D__STDC_CONSTANT_MACROS',
'-I/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/support',
'-DLIBCXX_FILESYSTEM_STATIC_TEST_ROOT=3D"/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/std/experimental/filesystem/Inputs/static_test_env"',
'-DLIBCXX_FILESYSTEM_DYNAMIC_TEST_ROOT=3D"/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/filesystem/Output/dynamic_env"',
'-DLIBCXX_FILESYSTEM_DYNAMIC_TEST_HELPER=3D"/usr/bin/python2.7
/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/support/filesystem_dynamic_test_helper.py"',
'&&', '/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/stage1/bin/clang++', '-o',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.test_helper.py"',
'&&', '/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/stage1/bin/clang++', '-o',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.test_helper.py"',
'&&', '/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/stage1/bin/clang++', '-o',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.test_helper.py"',
'&&', '/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/stage1/bin/clang++', '-o',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/Output/hard_link_count.pass.cpp.exe',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/Output/hard_link_count.pass.cpp.o',
'-v', '-nodefaultlibs',
'-L/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/lib64',
'-Wl,-rpath,/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/lib64',
'-lc++experimental', '-lc++', '-lm', '-lgcc_s', '-lgcc', '-lpthread', '-lc',
'-lgcc_s', '-lgcc']
[ 2292s] Command: ['env',
'LIBCXX_FILESYSTEM_DYNAMIC_TEST_ROOT=3D/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/filesystem/Output/dynamic_env',
'/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/Output/hard_link_count.pass.cpp.exe']
[ 2292s] Exit Code: 1
[ 2292s] Standard Error:
[ 2292s] --
[ 2292s] In hard_link_count_for_directory():54 Assertion
TEST_CHECK(hard_link_count(StaticEnv::Dir) =3D=3D DirExpect) failed.
[ 2292s] in file:
/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp
[ 2292s]
[ 2292s] In hard_link_count_for_directory():55 Assertion
TEST_CHECK(hard_link_count(StaticEnv::Dir3) =3D=3D Dir3Expect) failed.
[ 2292s] in file:
/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp
[ 2292s]
[ 2292s] In hard_link_count_for_directory():58 Assertion
TEST_CHECK(hard_link_count(StaticEnv::Dir, ec) =3D=3D DirExpect) failed.
[ 2292s] in file:
/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_lin[
2292s] in file:
/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp
[ 2292s]
[ 2292s] In hard_link_count_for_directory():59 Assertion
TEST_CHECK(hard_link_count(StaticEnv::Dir3, ec) =3D=3D Dir3Expect) failed.
[ 2292s] in file:
/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/projects/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp
[ 2292s]
[ 2292s] Summary for testsuite hard_link_count_test_suite:
[ 2292s] 4 of 5 test cases passed.
[ 2292s] 8 of 12 assertions passed.
[ 2292s] 0 unsupported test cases.
[ 2292s] --
[ 2292s]
[ 2292s] Compiled test failed unexpectedly!
[ 2292s] ********************
[ 2460s] Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..=20
[ 2460s] Testing Time: 247.67s
[ 2460s] ********************
[ 2460s] Failing Tests (1):
[ 2460s] libc++ ::
std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp
[ 2460s]
[ 2460s] Expected Passes : 5319
[ 2460s] Expected Failures : 35
[ 2460s] Unsupported Tests : 10
[ 2460s] Unexpected Failures: 1
[ 2460s] FAILED: projects/libcxx/test/CMakeFiles/check-libcxx
[ 2460s] cd
/home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test &&
/usr/bin/python2.7 /home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/utils/lit/lit.py
-sv /home/abuild/rpmbuild/BUILD/llvm-3.9.0.src/build/projects/libcxx/test
[ 2460s] ninja: build stopped: subcommand failed.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>