[cfe-dev] compile error on Win7 / mingw32
Ulrich Schmidt
u.sch.zw at gmx.de
Wed Sep 24 09:11:12 PDT 2014
Hi Yaron.
Thanks for your help. I successfully built llvm+clang.
I forgot to svn-update the clang subfolder in addition to llvm folder.
The make process errors out sometimes and can easily restarted. I attach
my notes. May be its of some interest for you.
Thanks again.
Ulrich
Am 24.09.2014 um 15:24 schrieb Yaron Keren:
> Versions 4.8.1, 4.8.2, 4.8.3, 4.9.0, 4.9.1 of mingw-builds are here
>
> http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/
>
> I don't think you did anything,the error is C++ error, probably result
> of some revision.
>
> Are you using the trunk code of llvm & clang?
> Which gcc version produced the error?
>
> Yaron
>
>
>
> 2014-09-24 15:38 GMT+03:00 Ulrich Schmidt <u.sch.zw at gmx.de
> <mailto:u.sch.zw at gmx.de>>:
>
> Hi Yaron.
> I did so in the last week. I tested:
> - i686-4.8.1-win32-sjlj-rt_v3-rev2
> - i686-4.8.3-win32-sjlj-rt_v3-rev0
> - i686-4.9.1-win32-sjlj-rt_v3-rev1
>
> I have read the clang user manual [1] mentioning older versions of
> gcc no longer available at mingw-64.
> Can you point me to a working mingw64 version i sould use please?
> I want to build win32 programs using windows treading.
>
> thanks in advance.
> Ulrich
>
> [1]: http://clang.llvm.org/docs/UsersManual.html#mingw-w64
>
> Am 24.09.2014 um 13:14 schrieb Yaron Keren:
>
> Hi Ulrich,
>
> If you don't mind switching, try this mingw distribution
>
> http://sourceforge.net/projects/mingw-w64/?source=directory
>
> which is more up-to-date than the original mingw.
>
> Yaron
>
>
> 2014-09-24 13:12 GMT+03:00 Ulrich Schmidt <u.sch.zw at gmx.de
> <mailto:u.sch.zw at gmx.de> <mailto:u.sch.zw at gmx.de
> <mailto:u.sch.zw at gmx.de>>>:
>
> I tried to compile LLVM+Clang on windows7 using MinGW32[1]
> and get
> a compile error since a few revisions.
> Please see attached captured output.
> I dont know i found a bug or i did something wrong. ( I
> compiled
> sucessfully 1..2 weeks ago.)
> Any suggestions?
>
> Ulrich Schmidt
>
> [1]: http://sourceforge.net/projects/mingw/
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu <mailto:cfe-dev at cs.uiuc.edu>
> <mailto:cfe-dev at cs.uiuc.edu <mailto:cfe-dev at cs.uiuc.edu>>
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
>
>
-------------- next part --------------
####### GCC in search path (only one c compiler in search path)
GCC: i686-4.8.1-win32-sjlj-rt_v3-rev2
####### SVN update
LLVM Revision: 218380, CLANG Revision: 218379
####### cleaned/wiped my _build folder.
####### CMAKE-GUI
- manual changes:
BUILD_SHARED_LIBS yes
CMAKE_BUILD_TYPE MinSizeRel
LLVM_TARGETS_TO_BUILD X86
- output:
Target triple: i686-pc-mingw32
Native target architecture is X86
Threads enabled.
Doxygen disabled.
Sphinx disabled.
Constructing LLVMBuild project information
Targeting X86
Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
Clang version: 3.6.0
Expecting header to go in C:/Users/uschzw/Documents/_Sources/LLVM/_build/tools/clang/lib/Basic/SVNVersion.inc
Configuring done
Generating done
####### MAKE
- output:
[ 43%] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/PruneEH.cpp.obj
[ 43%] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/StripDeadPrototypes.cpp.obj
[ 43%] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/StripSymbols.cpp.obj
Linking CXX shared library ..\..\..\bin\LLVMipo.dll
[ 43%] Built target LLVMipo
Scanning dependencies of target LLVMHello_exports
[ 43%] Creating export file for LLVMHello
Syntaxfehler.
lib\Transforms\Hello\CMakeFiles\LLVMHello_exports.dir\build.make:50: recipe for target 'lib/Transforms/Hello/LLVMHello.def' failed
make[2]: *** [lib/Transforms/Hello/LLVMHello.def] Error 1
CMakeFiles\Makefile2:1239: recipe for target 'lib/Transforms/Hello/CMakeFiles/LLVMHello_exports.dir/all' failed
make[1]: *** [lib/Transforms/Hello/CMakeFiles/LLVMHello_exports.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
####### MAKE (again, without any manual changes)
- output:
[ 51%] Building CXX object tools/bugpoint/CMakeFiles/bugpoint.dir/ToolRunner.cpp.obj
[ 51%] Building CXX object tools/bugpoint/CMakeFiles/bugpoint.dir/bugpoint.cpp.obj
Linking CXX executable ..\..\bin\bugpoint.exe
[ 51%] Built target bugpoint
Scanning dependencies of target BugpointPasses_exports
[ 51%] Creating export file for BugpointPasses
Syntaxfehler.
tools\bugpoint-passes\CMakeFiles\BugpointPasses_exports.dir\build.make:50: recipe for target 'tools/bugpoint-passes/BugpointPasses.d
ef' failed
make[2]: *** [tools/bugpoint-passes/BugpointPasses.def] Error 1
CMakeFiles\Makefile2:4580: recipe for target 'tools/bugpoint-passes/CMakeFiles/BugpointPasses_exports.dir/all' failed
make[1]: *** [tools/bugpoint-passes/CMakeFiles/BugpointPasses_exports.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
####### MAKE (again, without any manual changes)
- output:
[ 53%] Building CXX object tools/yaml2obj/CMakeFiles/yaml2obj.dir/yaml2coff.cpp.obj
[ 54%] Building CXX object tools/yaml2obj/CMakeFiles/yaml2obj.dir/yaml2elf.cpp.obj
Linking CXX executable ..\..\bin\yaml2obj.exe
[ 54%] Built target yaml2obj
Scanning dependencies of target LTO_exports
[ 54%] Creating export file for LTO
Syntaxfehler.
tools\lto\CMakeFiles\LTO_exports.dir\build.make:50: recipe for target 'tools/lto/LTO.def' failed
make[2]: *** [tools/lto/LTO.def] Error 1
CMakeFiles\Makefile2:5095: recipe for target 'tools/lto/CMakeFiles/LTO_exports.dir/all' failed
make[1]: *** [tools/lto/CMakeFiles/LTO_exports.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
####### MAKE (again, without any manual changes)
- output:
Linking CXX executable ..\..\..\..\bin\clang-format.exe
[ 96%] Built target clang-format
Scanning dependencies of target libclang_exports
[ 97%] Creating export file for libclang
Syntaxfehler.
tools\clang\tools\libclang\CMakeFiles\libclang_exports.dir\build.make:50: recipe for target 'tools/clang/tools/libclang/libclang.def
' failed
make[2]: *** [tools/clang/tools/libclang/libclang.def] Error 1
CMakeFiles\Makefile2:9371: recipe for target 'tools/clang/tools/libclang/CMakeFiles/libclang_exports.dir/all' failed
make[1]: *** [tools/clang/tools/libclang/CMakeFiles/libclang_exports.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
####### MAKE (again, without any manual changes)
- sucessfull built.
More information about the cfe-dev
mailing list