Skip to content

Errors building hb-blob.cc #901

@chmeeedalf

Description

@chmeeedalf

When building the harfbuzz FreeBSD port on 32-bit powerpc (gcc 4.2.1) I get the following errors while compiling hb-blob.cc:

hb-private.hh:417: error: integer constant is too large for 'long' type
hb-private.hh:493: error: integer constant is too large for 'long' type
hb-private.hh:494: error: integer constant is too large for 'long' type
hb-private.hh:495: error: integer constant is too large for 'long' type
hb-private.hh:496: error: integer constant is too large for 'long' type
hb-private.hh:497: error: integer constant is too large for 'long' type

And looking at the relevant lines, I do see constants of 0xFFFFFFFF00000000 (line 417), 0x00000000FFFFFFFF, 0x0000FFFF0000FFFF, 0x00FF00FF00FF00FF, 0x0F0F0F0F0F0F0F0F, 0x3333333333333333, and 0x5555555555555555. On 32-bit architectures these likely need to be suffixed ULL, unless a more recent compiler can cope with it. Is a more recent compiler required to build harfbuzz?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions