Which clang installation is used for Windows systems?
Posted: Wed Jul 31, 2013 8:21 pm
I'm on a (Vista) laptop upgraded to 32-bit Windows 8 Pro, running CodeLite 5.2. (Using the MinGW 4.7 that came with the installer, and the wxWidgets 2.9.5 installer that was at the same site.)
I set up a workspace that uses two projects: a g++ static library project, and a g++ console application that uses the first project. I created Clang-based configurations, just changing out "g++" for "clang++". I'm getting wonky errors:
I set up a workspace that uses two projects: a g++ static library project, and a g++ console application that uses the first project. I created Clang-based configurations, just changing out "g++" for "clang++". I'm getting wonky errors:
I copied the include directories from the ctag settings to the clang++ search directory setting to Clang can find the C++ headers. But I'm wondering if there's a mismatch; if my Clang-3.3 I built with my MinGW-Builds-4.8.1 install is being used. I looked into the MinGW-4.7 directory you provide, and I didn't see any Clang executables. What version of Clang does CodeLite use? Do you install a copy at a place I haven't discovered yet? Or does it choose whatever random version I have on my PATH? (If the latter, you should mention this for your Windows instructions, since you seemingly don't supply a copy on your website anymore. The link is there, but broken.)C:\WINDOWS\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f Makefile"
"----------Building project:[ BoostTest3 - Debug-Clang ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/Daryle/Documents/Projects/Complexes2'
codelitegcc clang++ -c "C:/Users/Daryle/Documents/Repositories/boost-trunk/libs/test/src/compiler_log_formatter.cpp" -std=c++11 -g -o ./Debug-Clang/src_compiler_log_formatter.o -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++ -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++/mingw32 -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++/backward -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include -Ic:/mingw-4.7.1/include -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include-fixed -I. -IC:/Users/Daryle/Documents/Repositories/boost-trunk -I.
codelitegcc clang++ -c "C:/Users/Daryle/Documents/Repositories/boost-trunk/libs/test/src/debug.cpp" -std=c++11 -g -o ./Debug-Clang/src_debug.o -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++ -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++/mingw32 -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++/backward -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include -Ic:/mingw-4.7.1/include -Ic:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include-fixed -I. -IC:/Users/Daryle/Documents/Repositories/boost-trunk -I.
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk/libs/test/src/compiler_log_formatter.cpp:16:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/test/impl/compiler_log_formatter.ipp:20:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/test/execution_monitor.hpp:41:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/shared_ptr.hpp:17:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/smart_ptr/shared_ptr.hpp:27:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/config/no_tr1/memory.hpp:21:
In file included from c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\memory:76:
c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\ext/concurrence.h:229:2: error: no matching function for call to '_S_destroy'
_S_destroy(&_M_mutex);
^~~~~~~~~~
c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\ext/concurrence.h:274:7: note: candidate template ignored: substitution failure [with _Rm = __gthread_recursive_mutex_t]: non-type template argument evaluates to 4, which cannot be narrowed to type 'bool'
_S_destroy(_Rm* __mx)
^
c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\ext/concurrence.h:283:7: note: candidate template ignored: substitution failure [with _Rm = __gthread_recursive_mutex_t]: no member named 'actual' in '__gthread_recursive_mutex_t'
_S_destroy(_Rm* __mx)
^
c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\ext/concurrence.h:291:7: note: candidate template ignored: substitution failure [with _Rm = __gthread_recursive_mutex_t]: no type named '__type' in '__gnu_cxx::__enable_if<false, void>'
_S_destroy(_Rm* __mx)
^
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk/libs/test/src/debug.cpp:16:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/test/impl/debug.ipp:23:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/test/debug.hpp:23:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/function/function1.hpp:11:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/function/detail/maybe_include.hpp:18:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/function/function_template.hpp:13:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/function/detail/prologue.hpp:17:
In file included from C:/Users/Daryle/Documents/Repositories/boost-trunk\boost/function/function_base.hpp:16:
In file included from c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\memory:76:
c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\ext/concurrence.h:229:2: error: no matching function for call to '_S_destroy'
_S_destroy(&_M_mutex);
^~~~~~~~~~
c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\ext/concurrence.h:274:7: note: candidate template ignored: substitution failure [with _Rm = __gthread_recursive_mutex_t]: non-type template argument evaluates to 4, which cannot be narrowed to type 'bool'
_S_destroy(_Rm* __mx)
^
c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\ext/concurrence.h:283:7: note: candidate template ignored: substitution failure [with _Rm = __gthread_recursive_mutex_t]: no member named 'actual' in '__gthread_recursive_mutex_t'
_S_destroy(_Rm* __mx)
^
c:/mingw-4.7.1/lib/gcc/mingw32/4.7.1/include/c++\ext/concurrence.h:291:7: note: candidate template ignored: substitution failure [with _Rm = __gthread_recursive_mutex_t]: no type named '__type' in '__gnu_cxx::__enable_if<false, void>'
_S_destroy(_Rm* __mx)
^
1 error generated.
mingw32-make.exe[1]: *** [Debug-Clang/src_compiler_log_formatter.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
BoostTest3.mk:96: recipe for target `Debug-Clang/src_compiler_log_formatter.o' failed
1 error generated.
mingw32-make.exe[1]: *** [Debug-Clang/src_debug.o] Error 1
mingw32-make.exe: *** [All] Error 2
BoostTest3.mk:101: recipe for target `Debug-Clang/src_debug.o' failed
mingw32-make.exe[1]: Leaving directory `C:/Users/Daryle/Documents/Projects/Complexes2'
Makefile:4: recipe for target `All' failed
2 errors, 22 warnings