<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Windows mingw build broken"
href="https://llvm.org/bugs/show_bug.cgi?id=25953">25953</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Windows mingw build broken
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>klamer.schutte@tno.nl
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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
<a href="http://stackoverflow.com/questions/16596876/object-file-has-too-many-sections">http://stackoverflow.com/questions/16596876/object-file-has-too-many-sections</a>.
Note this needs an updated binutils install.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>