Ok, the debian version is uninstalled and clang is no longer used over ctags..
Logging output:
Code: Select all
[ 19:35:36:335 DBG ] ClangCodeCompletion::OnFileLoaded() START
[ 19:35:36:335 DBG ] ==========> ClangDriver::CodeCompletion() started <==============
[ 19:35:36:335 DBG ] Calling DoRemoveAllIncludeStatements()
[ 19:35:36:336 DBG ] Stripping include: wx/wx.h
[ 19:35:36:336 DBG ] Stripping include: string
[ 19:35:36:336 DBG ] Calling DoRemoveAllIncludeStatements()- ENDED
[ 19:35:36:336 DBG ] DoPrepareCompilationArgs(): Project=ccompletiontest, Conf=Debug
[ 19:35:36:336 DBG ] Queued request to create PCH for file: main.cpp
[ 19:35:36:336 DBG ] ClangCodeCompletion::OnFileLoaded() ENDED
[ 19:35:36:375 DBG ] ==========> [ ClangPchMakerThread ] PCH creation started <==============
[ 19:35:36:376 DBG ] Executing: /bin/sh -c 'cd "/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest" && "/home/frozen/codelite_svn/clang/clang+llvm-2.9-x86_64-linux.tar/bin/clang" -cc1 -fexceptions -I"/usr/include/wx-2.8" -I"/usr/include/c++/4.6" -I"/usr/include/c++/4.6/x86_64-linux-gnu" -I"/usr/include/c++/4.6/backward" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include" -I"/usr/local/include" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include-fixed" -I"/usr/include/x86_64-linux-gnu" -I"/usr/include" -I. -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -D__WX__ -w "/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest/main.cpp" -E > "/home/frozen/.codelite/clang_cache/main_cpp__H__.h.1" 2>&1'
[ 19:35:36:476 DBG ] Calling DoRemoveAllIncludeStatements()
[ 19:35:36:477 DBG ] Stripping include: wx/wx.h
[ 19:35:36:477 DBG ] Stripping include: string
[ 19:35:36:477 DBG ] Calling DoRemoveAllIncludeStatements()- ENDED
[ 19:35:36:603 DBG ] Executing: /bin/sh -c 'cd "/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest" && "/home/frozen/codelite_svn/clang/clang+llvm-2.9-x86_64-linux.tar/bin/clang" -cc1 -fexceptions -x c++-header -I"/usr/include/wx-2.8" -I"/usr/include/c++/4.6" -I"/usr/include/c++/4.6/x86_64-linux-gnu" -I"/usr/include/c++/4.6/backward" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include" -I"/usr/local/include" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include-fixed" -I"/usr/include/x86_64-linux-gnu" -I"/usr/include" -I. -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -D__WX__ -w "/home/frozen/.codelite/clang_cache/main_cpp__H__.h" -emit-pch -o "/home/frozen/.codelite/clang_cache/main_cpp__H__.h.pch" > "/home/frozen/.codelite/clang_cache/main_cpp__H__.h.pch.output" 2>&1'
[ 19:35:37:151 DBG ] ==========> [ ClangPchMakerThread ] PCH creation ended with error <==============
[ 19:35:39:481 DBG ] Failed to resolve test .
[ 19:35:39:481 DBG ] ==========> ClangDriver::CodeCompletion() started <==============
[ 19:35:39:481 DBG ] Calling DoRemoveAllIncludeStatements()
[ 19:35:39:481 DBG ] Stripping include: wx/wx.h
[ 19:35:39:481 DBG ] Stripping include: string
[ 19:35:39:481 DBG ] Calling DoRemoveAllIncludeStatements()- ENDED
[ 19:35:39:482 DBG ] DoPrepareCompilationArgs(): Project=ccompletiontest, Conf=Debug
[ 19:35:39:482 DBG ] Queued request to create PCH for file: main.cpp
[ 19:35:39:562 DBG ] ==========> [ ClangPchMakerThread ] PCH creation started <==============
[ 19:35:39:562 DBG ] Executing: /bin/sh -c 'cd "/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest" && "/home/frozen/codelite_svn/clang/clang+llvm-2.9-x86_64-linux.tar/bin/clang" -cc1 -fexceptions -I"/usr/include/wx-2.8" -I"/usr/include/c++/4.6" -I"/usr/include/c++/4.6/x86_64-linux-gnu" -I"/usr/include/c++/4.6/backward" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include" -I"/usr/local/include" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include-fixed" -I"/usr/include/x86_64-linux-gnu" -I"/usr/include" -I. -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -D__WX__ -w "/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest/main.cpp" -E > "/home/frozen/.codelite/clang_cache/main_cpp__H__.h.1" 2>&1'
[ 19:35:39:665 DBG ] Calling DoRemoveAllIncludeStatements()
[ 19:35:39:666 DBG ] Stripping include: wx/wx.h
[ 19:35:39:666 DBG ] Stripping include: string
[ 19:35:39:666 DBG ] Calling DoRemoveAllIncludeStatements()- ENDED
[ 19:35:39:787 DBG ] Executing: /bin/sh -c 'cd "/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest" && "/home/frozen/codelite_svn/clang/clang+llvm-2.9-x86_64-linux.tar/bin/clang" -cc1 -fexceptions -x c++-header -I"/usr/include/wx-2.8" -I"/usr/include/c++/4.6" -I"/usr/include/c++/4.6/x86_64-linux-gnu" -I"/usr/include/c++/4.6/backward" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include" -I"/usr/local/include" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include-fixed" -I"/usr/include/x86_64-linux-gnu" -I"/usr/include" -I. -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -D__WX__ -w "/home/frozen/.codelite/clang_cache/main_cpp__H__.h" -emit-pch -o "/home/frozen/.codelite/clang_cache/main_cpp__H__.h.pch" > "/home/frozen/.codelite/clang_cache/main_cpp__H__.h.pch.output" 2>&1'
[ 19:35:40:337 DBG ] ==========> [ ClangPchMakerThread ] PCH creation ended with error <==============
[ 19:35:42:302 DBG ] Aborting PCH caching...
[ 19:35:42:303 DBG ] ClangCodeCompletion::OnFileLoaded() START
The main.cpp:
Code: Select all
#include <wx/wx.h>
#include <string>
// application class
class wxMiniApp : public wxApp
{
public:
// function called at the application initialization
virtual bool OnInit();
// event handler for button click
void OnClick(wxCommandEvent& event) { GetTopWindow()->Close(); }
};
IMPLEMENT_APP(wxMiniApp);
bool wxMiniApp::OnInit()
{
std::string test;
test.
// create a new frame and set it as the top most application window
SetTopWindow( new wxFrame( NULL, -1, wxT(""), wxDefaultPosition, wxSize( 100, 50) ) );
// create new button and assign it to the main frame
new wxButton( GetTopWindow(), wxID_EXIT, wxT("Click!") );
// connect button click event with event handler
Connect(wxID_EXIT, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(wxMiniApp::OnClick) );
// show main frame
GetTopWindow()->Show();
// enter the application's main loop
return true;
}
Additional info:
Code: Select all
$ cat ~/.codelite/clang_cache/main_cpp__H__.h
#include "/usr/include/wx-2.8/wx/wx.h"
#include "/usr/include/c++/4.6/string"
and
Code: Select all
$ ls ~/.codelite/clang_cache/
main_cpp__H__.h
Does this help you? The line " ==========> [ ClangPchMakerThread ] PCH creation ended with error <==============" is interesting to me - but not helping..
So I did the following:
Code: Select all
$ cd "/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest" && "/home/frozen/codelite_svn/clang/clang+llvm-2.9-x86_64-linux.tar/bin/clang" -cc1 -fexceptions -x c++-header -I"/usr/include/wx-2.8" -I"/usr/include/c++/4.6" -I"/usr/include/c++/4.6/x86_64-linux-gnu" -I"/usr/include/c++/4.6/backward" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include" -I"/usr/local/include" -I"/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include-fixed" -I"/usr/include/x86_64-linux-gnu" -I"/usr/include" -I. -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -D__WX__ -w "/home/frozen/.codelite/clang_cache/main_cpp__H__.h" -emit-pch -o "/home/frozen/.codelite/clang_cache/main_cpp__H__.h.pch"
And this is the output:
Code: Select all
In file included from /home/frozen/.codelite/clang_cache/main_cpp__H__.h:1:
In file included from /usr/include/wx-2.8/wx/wx.h:16:
In file included from /usr/include/wx-2.8/wx/object.h:20:
In file included from /usr/include/wx-2.8/wx/memory.h:16:
In file included from /usr/include/wx-2.8/wx/string.h:176:
In file included from /usr/include/c++/4.6/string:41:
In file included from /usr/include/c++/4.6/bits/char_traits.h:40:
/usr/include/c++/4.6/bits/stl_algobase.h:378:43: error: unexpected type name '_ValueTypeI': expected expression
const bool __simple = (__is_trivial(_ValueTypeI)
^
/usr/include/c++/4.6/bits/stl_algobase.h:383:40: error: non-type template argument of type 'const bool' is not an integral constant expression
return std::__copy_move<_IsMove, __simple,
^~~~~~~~
/usr/include/c++/4.6/bits/stl_algobase.h:573:43: error: unexpected type name '_ValueType1': expected expression
const bool __simple = (__is_trivial(_ValueType1)
^
/usr/include/c++/4.6/bits/stl_algobase.h:578:49: error: non-type template argument of type 'const bool' is not an integral constant expression
return std::__copy_move_backward<_IsMove, __simple,
^~~~~~~~
/usr/include/c++/4.6/bits/stl_algobase.h:731:32: error: expected ';' in 'for' statement specifier
for (__decltype(__n + 0) __niter = __n;
^
/usr/include/c++/4.6/bits/stl_algobase.h:731:32: error: use of undeclared identifier '__niter'
/usr/include/c++/4.6/bits/stl_algobase.h:732:5: error: use of undeclared identifier '__niter'
__niter > 0; --__niter, ++__first)
^
/usr/include/c++/4.6/bits/stl_algobase.h:732:16: error: expected ')'
__niter > 0; --__niter, ++__first)
^
/usr/include/c++/4.6/bits/stl_algobase.h:731:11: note: to match this '('
for (__decltype(__n + 0) __niter = __n;
^
/usr/include/c++/4.6/bits/stl_algobase.h:732:20: error: use of undeclared identifier '__niter'
__niter > 0; --__niter, ++__first)
^
/usr/include/c++/4.6/bits/stl_algobase.h:743:32: error: expected ';' in 'for' statement specifier
for (__decltype(__n + 0) __niter = __n;
^
/usr/include/c++/4.6/bits/stl_algobase.h:743:32: error: use of undeclared identifier '__niter'
/usr/include/c++/4.6/bits/stl_algobase.h:744:5: error: use of undeclared identifier '__niter'
__niter > 0; --__niter, ++__first)
^
/usr/include/c++/4.6/bits/stl_algobase.h:744:16: error: expected ')'
__niter > 0; --__niter, ++__first)
^
/usr/include/c++/4.6/bits/stl_algobase.h:743:11: note: to match this '('
for (__decltype(__n + 0) __niter = __n;
^
/usr/include/c++/4.6/bits/stl_algobase.h:744:20: error: use of undeclared identifier '__niter'
__niter > 0; --__niter, ++__first)
^
14 errors generated.
Everything compiles fine, if I build the project (After taking out test. of course)...
See here:
Code: Select all
----------Build Started--------
/bin/sh -c '"make" -j 4 -f "ccompletiontest_wsp.mk"'
----------Building project:[ ccompletiontest - Debug ]----------
make[1]: Entering directory `/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest'
make[1]: Leaving directory `/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest'
make[1]: Entering directory `/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest'
g++ -c "/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest/main.cpp" -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -D__WX__ -o ./Debug/main.o -I.
g++ -o ./Debug/ccompletiontest ./Debug/main.o -L. -mwindows -pthread -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8
make[1]: Leaving directory `/home/frozen/codelite_workspace/ccompletiontest/ccompletiontest'
----------Build Ended----------
0 errors, 0 warnings
I'm confused now..
Thanks again,
frozen