Skip to content

llvm-windres gives error in file that other MinGW toolchains do not #143157

@DerellLicht

Description

@DerellLicht

I am building a project with clang project, downloaded from this website.
The project builds with no errors with TDM 10.3.0 and other MinGW packages, but gives this error with the clang package:

D:\clang\bin\windres winwiz.rc -v -O COFF -o rc.o
D:/clang/bin/i686-w64-mingw32-clang.exe --driver-mode=gcc -target i686-w64-mingw32 -E -xc -DRC_INVOKED winwiz.rc -o C:/Users/dan7m/AppData/Local/Temp/preproc-996694.rc
llvm-rc: Error parsing file: Invalid token found at position 10358
make: *** [rc.o] Error 1

The version info for this windres is:

D:\SourceCode\Git\winwiz Yes, Master?? > D:\clang\bin\windres --version
llvm-windres, compatible with GNU windres
LLVM (http://llvm.org/):
  LLVM version 20.1.6
  Optimized build.

The resource file can be viewed here; position 10358 appears to be in the middle of line 203
https://github.com/DerellLicht/winwiz/blob/master/winwiz.rc

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvm-toolsAll llvm tools that do not have corresponding tag

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions