<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - "fatal error: error in backend: invalid number of bytes" using clang-cl on Windows"
href="https://bugs.llvm.org/show_bug.cgi?id=43803">43803</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"fatal error: error in backend: invalid number of bytes" using clang-cl on Windows
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>9.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows XP
</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>MC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>laudrup@stacktrace.dk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22727" name="attach_22727" title="Stack dump">attachment 22727</a> <a href="attachment.cgi?id=22727&action=edit" title="Stack dump">[details]</a></span>
Stack dump
I am trying to compile some rather large autogenerated C++ sources with
clang-cl on Windows 10 and compiling some of them fails with the rather cryptic
error (to me at least):
"fatal error: error in backend: invalid number of bytes"
The only place I have found this error referenced is in the MCAssembler.cpp
source file which unfortunately doesn't help me much. The only thing I can sort
of guess is that it might be some wrapping if the "Size" variable overflows.
I know I should try to create a small reproducible example, but that's rather
hard as I have no idea what could be the cause of this.
This exact same problem happened with LLVM, but I must admitted I haven't tried
with a fresh build from trunk.
As I mentioned the problematic files are rather large, but "only" around 15.000
lines so nothing really extreme.
I have provided the stack dump (which is basically the options given to the
compiler) in case that might help.
I know I haven't provided a lot of information and will of course be more than
happy to provide anything that might help resolve this, I'm just not sure what
that might be.
Thanks a lot and kind regards,
Kasper Laudrup</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>