[cfe-dev] compiling C++ with clang++

Salman Pervez spervez at purdue.edu
Tue Mar 2 19:12:35 PST 2010


On Mar 2, 2010, at 9:57 PM, Eric Christopher wrote:

>
> On Mar 2, 2010, at 6:54 PM, Salman Pervez wrote:
>
>> Well, there's some progress but the error message is still the  
>> same. Here's the output I get with -v
>
> Are you sure you rebuilt? After these:
>
> ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/ 
> 4.1.2/include/g++-v4"
> ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/ 
> 4.1.2/include/g++-v4/i686-pc-linux-gnu/"
> ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/ 
> 4.1.2/include/g++-v4/backward"
>
> should be a:
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/x86_64-pc- 
> linux-gnu
>
> -eric

oops...I did rebuild but wasnt in the top level dir. Here's what I get  
after rebuilding.

  /scratch/spervez/llvm-top/llvm/Debug/lib/clang/1.1/include
  /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4
  /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/x86_64-pc- 
linux-gnu
  /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/backward
  /usr/include
End of search list.
In file included from vec1.cpp:1:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g+ 
+-v4/iostream:44:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g+ 
+-v4/ostream:44:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g+ 
+-v4/ios:43:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g+ 
+-v4/iosfwd:46:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g+ 
+-v4/bits/postypes.h:46:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g+ 
+-v4/cwchar:48:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/cstddef:47:15:  
fatal error:
       'stddef.h' file not found
#include_next <stddef.h>
               ^
1 diagnostic generated.

-----------------------------------

Salman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100302/f423944f/attachment.html>


More information about the cfe-dev mailing list