llvm-config --includedir returns wrong directory

Bug #431313 reported by Mikael Lepistö
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
llvm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: llvm

llvm-config ubuntu from llvm-2.5 return false include directory switch.

tce-general@jaunty:~$ llvm-config --includedir
/usr/include/llvm

Should be
tce-general@jaunty:~$ llvm-config --includedir
/usr/include

All llvm includes are ought to be included with llvm prefix (e.g. #include <llvm/Support/Debug.h>). That is how llvm developers also does code for the project.

This is also required by llvm-gcc if it is wanted to be compiled from sources with pre installed llvm package (this feature will be soon in llvm trunk and will be included in llvm-2.7 release). Currently llvm-gcc requires built llvm source tree (or llvm includes and libs installed with the same prefix) for compiling it.

Tags: llvm llvm-gcc

Related branches

Revision history for this message
Matthias Klose (doko) wrote :

fixed in karmic 2.6~svn20090910

Changed in llvm (Ubuntu):
status: New → Fix Released
Revision history for this message
Pekka Jääskeläinen (pekka-jaaskelainen) wrote :

This is broken again in the 2.7~svn20100221 package.

Changed in llvm (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Pekka Jääskeläinen (pekka-jaaskelainen) wrote :

The problem of compiling llvm-gcc from sources might not be fixed even with this change. I think the easiest way to allow compiling llvm-gcc from sources with the libllvm installed from Ubuntu is to add a symbolic link "include/llvm -> /usr/include/llvm" to the llvm-config --prefix (/usr/lib/llvm). This seemed to fix it for me.

This kind of situation of wanting to compile llvm-gcc from sources with Ubuntu-installed LLVM is a realistic case for our project (http://tce.cs.tut.fi) where we use LLVM as is, but need to recompile llvm-gcc as a cross compiler. Luckily, Clang should work out-of-the-box in the future.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package llvm - 2.7~svn20100330-0ubuntu2

---------------
llvm (2.7~svn20100330-0ubuntu2) lucid; urgency=low

  * Set llvm-config's include directory to /usr/include. LP: #431313.
  * Don't link libllvm2.7 with -lbfd. libopagent1 is properly built.
    Avoiding a direct versioned dependency on binutils.
  * 0003-Debian-version-info-and-bugreport.patch: Update for the branch.
  * Don't continue the build when patches fail to apply.
 -- Matthias Klose <email address hidden> Tue, 30 Mar 2010 14:22:23 +0200

Changed in llvm (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.