[llvm-bugs] [Bug 34850] New: llvm-rc tokenization error and crash with CMake compiler tests
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 5 11:53:28 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34850
Bug ID: 34850
Summary: llvm-rc tokenization error and crash with CMake
compiler tests
Product: tools
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-link
Assignee: unassignedbugs at nondot.org
Reporter: rafael_andreas at hotmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19244
--> https://bugs.llvm.org/attachment.cgi?id=19244&action=edit
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.
--
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/20171005/1dc0dc18/attachment.html>
More information about the llvm-bugs
mailing list