<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 - Writing a .o to /dev/null gets a fatal error"
href="https://bugs.llvm.org/show_bug.cgi?id=37717">37717</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Writing a .o to /dev/null gets a fatal error
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>Backend: WebAssembly
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dan433584@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Clang trunk with cmake -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly and
then building anything with -target wasm32--wasm:
$ echo 'int main() { return 0; }' | ./bin/clang -target wasm32--wasm -c -o
/dev/null -x c -
fatal error: error in backend: section size does not fit in a uint32_t
clang-7.0: error: clang frontend command failed with exit code 70 (use -v
to see invocation)
clang version 7.0.0 (trunk 333614)
The problem is that lib/MC/WasmObjectWriter.cpp is asking the output stream for
the current position, so that it can compute section sizes, but this doesn't
return useful values when the file is /dev/null.</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>