[llvm-bugs] [Bug 25953] New: Windows mingw build broken

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 28 09:06:03 PST 2015


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: unassignedbugs at nondot.org
          Reporter: klamer.schutte at tno.nl
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151228/b4ee8472/attachment.html>


More information about the llvm-bugs mailing list