DCD icon indicating copy to clipboard operation
DCD copied to clipboard

[macOS M1] Segmentation fault when running dcd-server/client from v0.15.2 release archive

Open kip2 opened this issue 7 months ago • 3 comments

I don't speak English well, so I'm writing this through translation. Sorry if anything sounds unnatural.

Environment

macOS: Sequoia 15.4.1 Chip: Apple M1 MAX

Problem

When running the binaries from the v0.15.2 release archive, I get segmentation faults:

$ ./dcd-server --version
zsh: segmentation fault  ./dcd-server --version

$ ./dcd-client --version
zsh: segmentation fault  ./dcd-client --version

What I tried

When I clone the repository and build the binaries myself, the version displays correctly:

$ git clone https://github.com/dlang-community/DCD.git

$ cd DCD
$ git checkout v0.15.2

$ dub build --build=release --config=client
$ dub build --build=release --config=server

$cd bin

$ ./dcd-server --version
v0.15.2

$ ./dcd-client --version
v0.15.2

Conclusion

It seems that the file below in the release assets is broken or incompatible with Apple Silicon:

dcd-v0.15.2-osx-arm64.tar.gz

kip2 avatar May 21 '25 14:05 kip2

It was likely created with the wrong compiler.

Only the ldc beta is working on the current OSX version (Apple changed something).

https://github.com/ldc-developers/ldc/releases/tag/v1.41.0-beta1

rikkimax avatar May 21 '25 16:05 rikkimax

It's working now with the latest LDC. Is it possible to put out a new release? Otherwise people have to manually build and install DCD in order to get code-d working for e.g. VS Code integration on Mac M1.

Poita avatar Jun 19 '25 17:06 Poita

Bump: Can anyone produce the new binaries? That is still happening. DCD has no compilation error on my end

MrcSnm avatar Sep 07 '25 00:09 MrcSnm