Description
I'm not quite sure what's happening here, but I was trying to compile lzma with the llvm-mingw toolchain and got into this issue:
llvm-rc: Error parsing file: Invalid token found at position 635
Looked into the resource file:
/*
* Author: Lasse Collin
*
* This file has been put into the public domain.
* You can do whatever you want with this file.
*/
#define MY_TYPE VFT_APP
#define MY_NAME "xzdec"
#define MY_SUFFIX ".exe"
#define MY_DESC "xzdec decompression tool for .xz files"
#include "common_w32res.rc"
(check the git for the other rc files here: https://github.com/tukaani-project/xz/tree/master/src/xzdec
Looked for position 635, couldn't really figure out the issue here.. any advice?
The lzma cmake script runs windres via this command line:
x86_64-w64-mingw32-windres -O coff -DHAVE_CHECK_CRC32 -DHAVE_CHECK_CRC64 -DHAVE_CHECK_SHA256 -DHAVE_DECODERS -DHAVE_DECODER_ARM -DHAVE_DECODER_ARM64 -DHAVE_DECODER_ARMTHUMB -DHAVE_DECODER_DELTA -DHAVE_DECODER_IA64 -DHAVE_DECODER_LZMA1 -DHAVE_DECODER_LZMA2 -DHAVE_DECODER_POWERPC -DHAVE_DECODER_SPARC -DHAVE_DECODER_X86 -DHAVE_ENCODERS -DHAVE_ENCODER_ARM -DHAVE_ENCODER_ARM64 -DHAVE_ENCODER_ARMTHUMB -DHAVE_ENCODER_DELTA -DHAVE_ENCODER_IA64 -DHAVE_ENCODER_LZMA1 -DHAVE_ENCODER_LZMA2 -DHAVE_ENCODER_POWERPC -DHAVE_ENCODER_SPARC -DHAVE_ENCODER_X86 -DHAVE_INTTYPES_H -DHAVE_LZIP_DECODER -DHAVE_MF_BT2 -DHAVE_MF_BT3 -DHAVE_MF_BT4 -DHAVE_MF_HC3 -DHAVE_MF_HC4 -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE__BOOL -DHAVE___BUILTIN_ASSUME_ALIGNED -DHAVE___BUILTIN_BSWAPXX -DLZMA_API_STATIC -DMYTHREAD_VISTA -DPACKAGE_BUGREPORT=\"xz@tukaani.org\" -DPACKAGE_NAME="\"XZ Utils\"" -DPACKAGE_URL=\"https://tukaani.org/xz/\" -DTUKLIB_FAST_UNALIGNED_ACCESS -I /sources/lzma/src/common -I /sources/lzma/src/liblzma/api /sources/lzma/src/xzdec/xzdec_w32res.rc CMakeFiles/xzdec.dir/src/xzdec/xzdec_w32res.rc.res llvm-rc: Error parsing file: Invalid token found at position 635