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.