<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 - compiler-rt: sanitizer test failures when using libtirpc"
href="https://bugs.llvm.org/show_bug.cgi?id=38415">38415</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>compiler-rt: sanitizer test failures when using libtirpc
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</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>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mgorny@gentoo.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>38406
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20632" name="attach_20632" title="sys-libs:compiler-rt-sanitizers-7.0.9999:20180802-032830.log.xz">attachment 20632</a> <a href="attachment.cgi?id=20632&action=edit" title="sys-libs:compiler-rt-sanitizers-7.0.9999:20180802-032830.log.xz">[details]</a></span>
sys-libs:compiler-rt-sanitizers-7.0.9999:20180802-032830.log.xz
On a system using new glibc that doesn't include RPC, and libtirpc as RPC
provider, a number of compiler-rt tests fail:
Failing Tests (4):
MemorySanitizer-X86_64 :: Linux/sunrpc.cc
MemorySanitizer-X86_64 :: Linux/sunrpc_bytes.cc
MemorySanitizer-X86_64 :: Linux/sunrpc_string.cc
ThreadSanitizer-x86_64 :: sunrpc.cc
The tests fail trying to find RPC headers without adding appropriate -I paths:
Command Output (stderr):
--
+ : 'RUN: at line 1'
+
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-7.0.9999/work/compiler-rt-sanitizers-7.0.9999_build/lib/llvm/7/bin/clang
--driver-mode=g++ -fsanitize=memory -mno-omit-leaf-frame-pointer
-fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -gline-tables-only -g
-O0 -DTYPE=int -DFN=xdr_int
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-7.0.9999/work/compiler-rt-sanitizers-7.0.9999/test/msan/Linux/sunrpc.cc
-o
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-7.0.9999/work/compiler-rt-sanitizers-7.0.9999_build/test/msan/X86_64/Linux/Output/sunrpc.cc.tmp
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-7.0.9999/work/compiler-rt-sanitizers-7.0.9999/test/msan/Linux/sunrpc.cc:15:10:
fatal error: 'rpc/xdr.h' file not found
#include <rpc/xdr.h>
^~~~~~~~~~~
1 error generated.
A month ago, I've submitted two fixes for finding and using libtirpc which are
stuck in review:
<a href="https://reviews.llvm.org/D47817">https://reviews.llvm.org/D47817</a>
<a href="https://reviews.llvm.org/D47819">https://reviews.llvm.org/D47819</a>
I'm attaching a complete build log.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [meta] 7.0.0 Release Blockers"
href="https://bugs.llvm.org/show_bug.cgi?id=38406">Bug 38406</a>] [meta] 7.0.0 Release Blockers
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>