Skip to content

llvm-rc fails to parse FILEVERSION 16bit values #144723

Open
@clshortfuse

Description

@clshortfuse
#include <winver.h>

1 VERSIONINFO
FILEVERSION 0,2025,0618,1507

llvm-rc: Error parsing file: Integer invalid or too large: 0618

FILEVERSION spec says:

Binary version number for the file. The version consists of two 32-bit integers, defined by four 16-bit integers. For example, "FILEVERSION 3,10,0,61" is translated into two doublewords: 0x0003000a and 0x0000003d, in that order. Therefore, if version is defined by the DWORD values dw1 and dw2, they need to appear in the FILEVERSION statement as follows: HIWORD(dw1), LOWORD(dw1), HIWORD(dw2), LOWORD(dw2).

https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource

I'm not sure if the bug is on Microsoft, or llvm, but regardless, things builds find with Microsoft's rc.exe but not llvm-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