<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 - llvm-rc tokenization error and crash with CMake compiler tests"
href="https://bugs.llvm.org/show_bug.cgi?id=34850">34850</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-rc tokenization error and crash with CMake compiler tests
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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>llvm-link
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rafael_andreas@hotmail.com
</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=19244" name="attach_19244" title="A zip file containing the stack trace, repro files, and unmodified manifest.">attachment 19244</a> <a href="attachment.cgi?id=19244&action=edit" title="A zip file containing the stack trace, repro files, and unmodified manifest.">[details]</a></span>
A zip file containing the stack trace, repro files, and unmodified manifest.
Not in the correct category, since llvm-rc has no category.
When trying to cross compile a project with cmake, cmake tries to see if
clang-cl works.
After I've set the variables that cmake needs, cmake fails to run the rc
compiler.
Having tested this myself on their file, llvm-rc outputs something along the
lines of "Invalid token found at position 2".
Looking at the source code it seems that it's missing tokenization for comments
in this format: /* comment */
After removing the comments llvmr-c crashes, giving me a stack trace.
I've included a repro case in the attachments, along with the stack trace
output and the original unmodified file (which contains an absolute path).
embed.manifest is an empty file
Execute as: llvm-rc reproN.rc /FO reproN.obj
Where N is the number of the repro file.
repro1.rc is for the tokenization error, and repro2.rc is for the crash.
manifest.rc is the original unmodified file.</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>