DUB on Apple Silicon

Jan Allersma jan at allersma.be
Mon Oct 30 20:51:39 UTC 2023


L.S.,

Currently I'm trying to compile a DUB project on my Apple with M1 
processor.
When I was trying to build to project, something strange happened:

```
$ dub run --vverbose --force 
--compiler=/usr/local/homebrew/Cellar/ldc/1.35.0/bin/ldc2 
--arch=arm64
Using dub registry url 'https://code.dlang.org/'
'git --git-dir=/<path-to-my-dub-project>/.git describe --long 
--tags' failed with exit code 128: fatal: No names found, cannot 
describe anything.
Determined package version using GIT: printplaat ~persistency
Error Unsupported architecture: arm64
Full exception: 
dub.compilers.compiler.UnsupportedArchitectureException at source/dub/compilers/ldc.d(93): Unsupported architecture: arm64
----------------
??:? object.Throwable.TraceInfo 
core.runtime.defaultTraceHandler(void*) [0x10472f3d2]
```

I cannot figure out why I get this error and why it is not 
possible for me to compile my project. My 
[dub.json](https://github.com/kapstok/printplaat/blob/apple-silicon/dub.json) may look a bit odd, but I don't see why that should be the reason for the problem. Does anyone know what the problem could be?

Many thanks in advance!


More information about the digitalmars-d-ldc mailing list