Skip to content

LLVM fails to build on 32-bit macOS #54846

@MarcusCalhoun-Lopez

Description

@MarcusCalhoun-Lopez

LLVM fails to build on 32-bit macOS with error:

error: no matching function for call to 'min'
                std::min(HashReadEnd - CurrHashReadPosition,
                ^~~~~~~~
note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long')
 min(const _Tp& __a, const _Tp& __b) 

The issues seems to be the use of ssize_t at

static_cast<ssize_t>(CodeSignature.BlockSize)));

If ssize_t is replaced with std::ptrdiff_t, the build works on both 32-bit and 64-bit systems.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions