<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 - Giving error on LLVM REQUIRED CONFIG in cmake file"
href="https://bugs.llvm.org/show_bug.cgi?id=35084">35084</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Giving error on LLVM REQUIRED CONFIG in cmake file
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</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>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>18100071@lums.edu.pk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19343" name="attach_19343" title="Error displayed on the terminal">attachment 19343</a> <a href="attachment.cgi?id=19343&action=edit" title="Error displayed on the terminal">[details]</a></span>
Error displayed on the terminal
I am following the tutorial shared below to make a pass in LLVM:
LINK: <a href="https://www.cs.cornell.edu/~asampson/blog/llvm.html">https://www.cs.cornell.edu/~asampson/blog/llvm.html</a>
But when I execute the command cmake ..
The following error occurs:
CMake Error at CMakeLists.txt:2 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
The content of cmakeLists.txt file:
cmake_minimum_required(VERSION 3.1)
find_package(LLVM REQUIRED CONFIG)
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
add_subdirectory(skeleton) # Use your pass name here.
-------------------------------------------------------------
Line 2 gives the error here.
I have tried few of the solutions posted on stack overflow and this forum but
to no avail. Few suggest upgrading to llvm >= 3.5 llvm since I'm currently
using llvm 3.4. But I don't want to do that since I'm doing a project on KLEE
which is recommended to run on llvm 3.4.
In my usr/share/llvm-3.4/cmake directory I have a "LLVM-Config.cmake" file but
no files are named as "LLVMConfig.cmake" or "llvm-config.cmake".
Any help would be appreciated, Thanks!</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>