[cfe-dev] include <new>
Дмитрий Дьяченко
dimhen at gmail.com
Tue Jan 19 04:05:14 PST 2010
Look identical to PR5902.
I try add missing PATH into InitHeaderSearch.cpp and hit more errs:
llvm$ cat tst.cpp
#include <iostream>
llvm$ clang++ -c tst.cpp
In file included from tst.cpp:1:
In file included from /usr/include/c++/4.3.2/iostream:44:
In file included from /usr/include/c++/4.3.2/ostream:44:
In file included from /usr/include/c++/4.3.2/ios:43:
In file included from /usr/include/c++/4.3.2/iosfwd:46:
In file included from /usr/include/c++/4.3.2/bits/postypes.h:46:
In file included from /usr/include/c++/4.3.2/cwchar:48:
/usr/include/c++/4.3.2/cstddef:47:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
^
1 diagnostic generated.
reference: http://llvm.org/bugs/show_bug.cgi?id=5902#c8
Patch:
Index: InitHeaderSearch.cpp
===================================================================
--- InitHeaderSearch.cpp (revision 93873)
+++ InitHeaderSearch.cpp (working copy)
@@ -508,6 +508,10 @@
AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.3.2",
"i386-redhat-linux","", "", triple);
+ // Fedora 10 x86_64
+ AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.3.2",
+ "x86_64-redhat-linux", "32", "", triple);
+
// Fedora 11
Dmitry
2010/1/16 Eli Friedman <eli.friedman at gmail.com>
>
> On Fri, Jan 15, 2010 at 1:17 PM, david raila <raila at illinois.edu> wrote:
> > More of a platform than compiler issue, but where do things like
> > <new> and <csdtdef> come from? I seem to be picking up from gcc-4.4.2
> > and failing:
> >
> > #include <stdio.h>
> > #include <new>
> >
> > In file included from /usr/include/c++/4.4.2/new:39:
> > /usr/include/c++/4.4.2/cstddef:42:10: fatal error: 'bits/c++config.h'
> > file not
> > found
> > #include <bits/c++config.h>
>
> That's the fault of the C++ header path hacks in
> lib/Frontend/InitHeaderSearch.cpp; you probably need to add a missing
> entry.
>
> -Eli
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list