[llvm-bugs] [Bug 34850] New: llvm-rc tokenization error and crash with CMake compiler tests
llvm-bugs at lists.llvm.org
Thu Oct 5 11:53:28 PDT 2017
Bug ID: 34850
Summary: llvm-rc tokenization error and crash with CMake
Assignee: unassignedbugs at nondot.org
Reporter: rafael_andreas at hotmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19244
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
After I've set the variables that cmake needs, cmake fails to run the rc
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...
More information about the llvm-bugs