<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - llvm/test/tools/UpdateTestChecks/update_cc_test_checks use clang but don't depend on clang"
href="https://bugs.llvm.org/show_bug.cgi?id=44798">44798</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm/test/tools/UpdateTestChecks/update_cc_test_checks use clang but don't depend on clang
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>support scripts
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lebedev.ri@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>greg.bedwell@sony.com, i@maskray.me, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ ninja check-llvm
[1/295] Generating VCSRevision.h
-- Found Git: /usr/bin/git (found version "2.25.0")
[294/295] Running the LLVM regression tests
FAIL: LLVM :: tools/UpdateTestChecks/update_cc_test_checks/def-and-decl.test
(33391 of 35753)
******************** TEST 'LLVM ::
tools/UpdateTestChecks/update_cc_test_checks/def-and-decl.test' FAILED
********************
Script:
--
: 'RUN: at line 3'; cp
/repositories/llvm-project/llvm/test/tools/UpdateTestChecks/update_cc_test_checks/Inputs/def-and-decl.c
/builddirs/llvm-project/build-Clang9-unknown/test/tools/UpdateTestChecks/update_cc_test_checks/Output/def-and-decl.test.tmp.c
&& '/usr/bin/python'
/repositories/llvm-project/llvm/utils/update_cc_test_checks.py --clang
/builddirs/llvm-project/build-Clang9-unknown/./bin/clang --opt
/builddirs/llvm-project/build-Clang9-unknown/./bin/opt
/builddirs/llvm-project/build-Clang9-unknown/test/tools/UpdateTestChecks/update_cc_test_checks/Output/def-and-decl.test.tmp.c
: 'RUN: at line 4'; diff -u
/repositories/llvm-project/llvm/test/tools/UpdateTestChecks/update_cc_test_checks/Inputs/def-and-decl.c.expected
/builddirs/llvm-project/build-Clang9-unknown/test/tools/UpdateTestChecks/update_cc_test_checks/Output/def-and-decl.test.tmp.c
: 'RUN: at line 6'; '/usr/bin/python'
/repositories/llvm-project/llvm/utils/update_cc_test_checks.py --clang
/builddirs/llvm-project/build-Clang9-unknown/./bin/clang --opt
/builddirs/llvm-project/build-Clang9-unknown/./bin/opt
/builddirs/llvm-project/build-Clang9-unknown/test/tools/UpdateTestChecks/update_cc_test_checks/Output/def-and-decl.test.tmp.c
: 'RUN: at line 7'; diff -u
/repositories/llvm-project/llvm/test/tools/UpdateTestChecks/update_cc_test_checks/Inputs/def-and-decl.c.expected
/builddirs/llvm-project/build-Clang9-unknown/test/tools/UpdateTestChecks/update_cc_test_checks/Output/def-and-decl.test.tmp.c
--
Exit Code: 1
Command Output (stdout):
--
$ ":" "RUN: at line 3"
$ "cp"
"/repositories/llvm-project/llvm/test/tools/UpdateTestChecks/update_cc_test_checks/Inputs/def-and-decl.c"
"/builddirs/llvm-project/build-Clang9-unknown/test/tools/UpdateTestChecks/update_cc_test_checks/Output/def-and-decl.test.tmp.c"
$ "/usr/bin/python"
"/repositories/llvm-project/llvm/utils/update_cc_test_checks.py" "--clang"
"/builddirs/llvm-project/build-Clang9-unknown/./bin/clang" "--opt"
"/builddirs/llvm-project/build-Clang9-unknown/./bin/opt"
"/builddirs/llvm-project/build-Clang9-unknown/test/tools/UpdateTestChecks/update_cc_test_checks/Output/def-and-decl.test.tmp.c"
# command stderr:
/builddirs/llvm-project/build-Clang9-unknown/./bin/clang: symbol lookup error:
/builddirs/llvm-project/build-Clang9-unknown/bin/../lib/libclangCodeGen.so.11git:
undefined symbol: _ZN4llvm20RemarkSetupFileError2IDE
WARNING: Could not determine clang builtins directory, some tests might not
update correctly.
/builddirs/llvm-project/build-Clang9-unknown/./bin/clang: symbol lookup error:
/builddirs/llvm-project/build-Clang9-unknown/bin/../lib/libclangCodeGen.so.11git:
undefined symbol: _ZN4llvm20RemarkSetupFileError2IDE
Traceback (most recent call last):
File "/repositories/llvm-project/llvm/utils/update_cc_test_checks.py", line
304, in <module>
sys.exit(main())
File "/repositories/llvm-project/llvm/utils/update_cc_test_checks.py", line
265, in main
get_function_body(args, filename, clang_args, extra_commands, prefixes,
triple_in_cmd, func_dict)
File "/repositories/llvm-project/llvm/utils/update_cc_test_checks.py", line
161, in get_function_body
raw_tool_output = common.invoke_tool(args.clang, clang_args, filename)
File "/repositories/llvm-project/llvm/utils/UpdateTestChecks/common.py", line
50, in invoke_tool
stdout = subprocess.check_output([exe] + cmd_args, stdin=ir_file)
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command
'['/builddirs/llvm-project/build-Clang9-unknown/./bin/clang', '-cc1',
'-triple', 'x86_64-unknown-linux-gnu',
'/builddirs/llvm-project/build-Clang9-unknown/test/tools/UpdateTestChecks/update_cc_test_checks/Output/def-and-decl.test.tmp.c',
'-emit-llvm', '-o', '-']' returned non-zero exit status 127
error: command failed with exit status: 1
--
********************
Testing Time: 702.24s
********************
Failing Tests (1):
LLVM :: tools/UpdateTestChecks/update_cc_test_checks/def-and-decl.test
Expected Passes : 35113
Expected Failures : 149
Unsupported Tests : 490
Unexpected Failures: 1
FAILED: test/CMakeFiles/check-llvm
cd /builddirs/llvm-project/build-Clang9-unknown/test && /usr/bin/python
/builddirs/llvm-project/build-Clang9-unknown/./bin/llvm-lit -sv
/builddirs/llvm-project/build-Clang9-unknown/test
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>