[llvm-bugs] [Bug 42578] New: Build is failing while compiling using clang++ language flags -fprofile-instr-generate -fcoverage-mapping
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 11 02:37:39 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42578
Bug ID: 42578
Summary: Build is failing while compiling using clang++
language flags -fprofile-instr-generate
-fcoverage-mapping
Product: Test Suite
Version: trunk
Hardware: PC
OS: other
Status: NEW
Severity: release blocker
Priority: P
Component: Programs Tests
Assignee: unassignedbugs at nondot.org
Reporter: agarwala.sourav at gmail.com
CC: llvm-bugs at lists.llvm.org
=====================================================================
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
https://bugs.llvm.org/ 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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190711/878ceaa1/attachment.html>
More information about the llvm-bugs
mailing list