Skip to content

_MR_atomic_sub_int symbol not found on macOS #110

@poldy

Description

@poldy

The full error message is:

dyld[47054]: symbol not found in flat namespace '_MR_atomic_sub_int'

I installed Mercury from homebrew using brew install mercury. This is on an M1 Mac running the latest Ventura. A sequential "hello world" program compiles and runs no problem. And indeed, when I compile the Dining Philosophers sample code with either --parallel or --grade hlc.par.gc it compiles ok, but when I run it gives the above error message.

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