<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 - Build is failing while compiling using clang++ language flags -fprofile-instr-generate -fcoverage-mapping"
href="https://bugs.llvm.org/show_bug.cgi?id=42578">42578</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Build is failing while compiling using clang++ language flags -fprofile-instr-generate -fcoverage-mapping
</td>
</tr>
<tr>
<th>Product</th>
<td>Test Suite
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Programs Tests
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>agarwala.sourav@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>=====================================================================
ERROR SCENARIO
clang --version
==============================
Chromium OS 9.0_pre353983_p20190325-r19 clang version 9.0.0
(/var/cache/chromeos-cache/distfiles/host/egit-src/llvm-project
de7a0a152648d1a74cf4319920b1848aa00d1ca3) (based on LLVM 9.0.0svn)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
My test code is –cat test.cc
===========================================
#include<iostream>
using namespace std;
int main()
{
cout << "Hello World\n";
return 0;
}
Compiler the code using the below command
==============================================
clang++ -Wall -fprofile-instr-generate -fcoverage-mapping test.cc -o test
In the above command both the flags are required because I want to generate
code coverage report.
-fprofile-instr-generate -fcoverage-mapping
Below is the ERROR Message
=======================================
fatal error: error in backend: Cannot select: intrinsic
%llvm.instrprof.increment
clang-9: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
Chromium OS 9.0_pre353983_p20190325-r19 clang version 9.0.0
(/var/cache/chromeos-cache/distfiles/host/egit-src/llvm-project
de7a0a152648d1a74cf4319920b1848aa00d1ca3) (based on LLVM 9.0.0svn)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-9: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang-9: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-9: note: diagnostic msg: /tmp/test-2a3ff5.cpp
clang-9: note: diagnostic msg: /tmp/test-2a3ff5.sh
clang-9: note: diagnostic msg:
********************
=====================================================================
WORKING SCENARIO
Another system where clang++ version is shown below
clang++ --version
Chromium OS 9.0_pre353983_p20190325-r1 clang version 9.0.0
(/var/cache/chromeos-cache/distfiles/host/egit-src/clang.git
171531e31716e2db2c372cf8b57220ddf9e721d8)
(/var/cache/chromeos-cache/distfiles/host/egit-src/llvm.git
5077597e0d5b86d9f9c27286d8b28f8b3645a74c) (based on LLVM 9.0.0svn)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Source code and compilation step is same. Build successfully and object is
created.</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>