Skip to content

Support 16k page size builds #1272

Open
@414owen

Description

@414owen

I've used GHCup on an ARM M2 macbook pro, running asahi linux (fedora).

These systems have a hardware page size of 16k, rather than the usual 4k.

This seems to result in an error, if libraries compiled for a 4k page size are loaded:

haskell-language-server-9.12.2: error while loading shared libraries: libHSlibyaml-clib-0.2.5-6e0554ece1b66e21ade87fa9add75f36061ef7fc9fec3b9310c286a3c8cd9e8f-ghc9.12.2.so: ELF load command address/offset not page-aligned\n"

Specifically, ELF load command address/offset not page-aligned leads me to this conclusion.

The cpu flag that gcc would use to target my machine, seems to be:

-mcpu=apple-m2+crc+aes+sha3+fp16

Of course, it's entirely possible that something else funky is going on...

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