Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341891 - sys-devel/clang[system-cxx-headers] : clang++ does not find cxxabi.h
Summary: sys-devel/clang[system-cxx-headers] : clang++ does not find cxxabi.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on: 327575
Blocks:
  Show dependency tree
 
Reported: 2010-10-20 11:56 UTC by Bernard Cafarelli
Modified: 2010-10-21 08:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Cafarelli gentoo-dev 2010-10-20 11:56:29 UTC
From bug #327575:
I tried to build Boost.Thread with clang and it looks like clang can't find
#include <cxxabi.h>
in file ($BOOST_ROOT)/boost/exception/detail/type_info.hpp:18

After checking on my system, this file is located in
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/include

The directory is not present in clang executable.

As the header is included C-style (with .h), clang may filter it out (the USE flag only sets C++ headers path)
Comment 1 Guillaume Chatelet 2010-10-20 12:15:54 UTC
(In reply to comment #0)
Yes, just to be precise, I built "clang" with the system-cxx-headers USE flag. It might not be obvious reading my previous post.
Comment 2 Bernard Cafarelli gentoo-dev 2010-10-21 08:13:47 UTC
Without system-cxx-headers, you would not have gone that far ;)

I found the problem, clang also has a --with-c-include-dirs option, which needs a GCC correct path. clang-2.8-r2 now sets it, and emerge with clang now goes to the end

Thanks for the report!
Comment 3 Guillaume Chatelet 2010-10-21 08:18:17 UTC
(In reply to comment #2)
Many thx for the fix Bernard :)