https://llvm.org/bugs/show_bug.cgi?id=25953
Bug ID: 25953 Summary: Windows mingw build broken Product: new-bugs Version: 3.7 Hardware: PC OS: other Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: klamer.schu...@tno.nl CC: llvm-bugs@lists.llvm.org Classification: Unclassified Compilation of LLVM/CLANG fails, using mingw gcc 4.8.1 64 bit. Compiling with Cmake, using MSYS Makefiles, and no further options. Error message is like: [ 82%] Building CXX object tools/cfe-3.7.0.src/lib/Sema/CMakeFiles/clangSema.dir/SemaExpr.cpp.obj c:/prog64/mingw64-4.8.1/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles/clangSema.dir/SemaExpr.cpp.obj: too many sections (33299) C:\Users\schuttek\AppData\Local\Temp\ccX5KUip.s: Assembler messages: C:\Users\schuttek\AppData\Local\Temp\ccX5KUip.s: Fatal error: can't write CMakeFiles/clangSema.dir/SemaExpr.cpp.obj: File too big c:/prog64/mingw64-4.8.1/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles/clangSema.dir/SemaExpr.cpp.obj: too many sections (33299) C:\Users\schuttek\AppData\Local\Temp\ccX5KUip.s: Fatal error: can't close CMakeFiles/clangSema.dir/SemaExpr.cpp.obj: File too big make[2]: *** [tools/cfe-3.7.0.src/lib/Sema/CMakeFiles/clangSema.dir/SemaExpr.cpp.obj] Error 1 make[1]: *** [tools/cfe-3.7.0.src/lib/Sema/CMakeFiles/clangSema.dir/all] Error 2 make: *** [all] Error 2 and also occurred on [ 82%] Building CXX object tools/cfe-3.7.0.src/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj Solution seems to be to add -Wa,-mbig-obj to the compiler arguments as hinted in http://stackoverflow.com/questions/16596876/object-file-has-too-many-sections. Note this needs an updated binutils install. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs