Any reason why LLVM/Clang was built with assertions ON? (as confirmed bu
`llvm-config --cxxflags' which lists -D_DEBUG)

clang++ runs slower than g++ here while compiling a complex C++ project.
A few months ago I built clang myself and it was quite faster than g++.

Also, clang/clang++ doesn't know about mingw32/include directory. I had
to add -I c:/apps/msys32/mingw32/include to the build command.

Finally, the build failed because with undefined references, but I
guess that's clang not being mature enough on MinGW environment::

FAILED: cmd.exe /C "cd . && C:\apps\msys32\mingw32\bin\clang++.exe
-shared -o liblp0core.dll -Wl,--out-implib,liblp0core.dll.a
-Wl,--major-image-version,0,--minor-image-version,0 [list of object files] 
-Ld:\dev\lib -lboost_thread-mt -lboost_chrono-mt -lboost_date_time-mt 
-lboost_system-mt -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 
-loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
C:\apps\msys32\mingw32\bin\ld.exe: warning: cannot find entry symbol  
DllMainCRTStartup; defaulting to 640c1000
C:\apps\msys32\mingw32\bin/../i686-w64-mingw32/lib/libmingw32.a(lib32_libmingw32_a-pseudo-reloc.o):
 In function `pei386_runtime_relocator':
C:/git/mingw/mingw-w64-crt-git/src/crt/mingw-w64-crt/crt/pseudo-reloc.c:467: 
undefined reference to `__chkstk_ms'
C:\apps\msys32\mingw32\bin/../i686-w64-mingw32/lib/libmingwex.a(lib32_libmingwex_a-mingw_vfscanf.o):
 In function `_mingw_vfscanf':
C:/git/mingw/mingw-w64-crt-git/src/crt/mingw-w64-crt/stdio/mingw_vfscanf.c:1614:
 undefined reference to `__chkstk_ms'
C:\apps\msys32\mingw32\bin/../i686-w64-mingw32/lib/libmingwex.a(lib32_libmingwex_a-mingw_vfscanf.o):
 In function `_mingw_vsscanf':
C:/git/mingw/mingw-w64-crt-git/src/crt/mingw-w64-crt/stdio/mingw_vfscanf.c:1623:
 undefined reference to `__chkstk_ms'
C:\apps\msys32\mingw32\bin/../i686-w64-mingw32/lib/libmingwex.a(lib32_libmingwex_a-mingw_pformat.o):
 In function `_pformat_emit_radix_point':
C:/git/mingw/mingw-w64-crt-git/src/crt/mingw-w64-crt/stdio/mingw_pformat.c:1167:
 undefined reference to `__chkstk_ms'
C:\apps\msys32\mingw32\bin/../i686-w64-mingw32/lib/libmingwex.a(lib32_libmingwex_a-mingw_pformat.o):
 In function `_pformat_int':
C:/git/mingw/mingw-w64-crt-git/src/crt/mingw-w64-crt/stdio/mingw_pformat.c:669: 
undefined reference to `__chkstk_ms'
C:\apps\msys32\mingw32\bin/../i686-w64-mingw32/lib/libmingwex.a(lib32_libmingwex_a-mingw_pformat.o):C:/git/mingw/mingw-w64-crt-git/src/crt/mingw-w64-crt/stdio/mingw_pformat.c:844:
 more undefined references to `__chkstk_ms' follow
clang++.exe: error: linker command failed with exit code 1 (use -v to see 
invocation)
ninja: build stopped: subcommand failed.


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to