On Friday, 22 December 2023 at 17:50:47 UTC, Johan wrote:
Some general advice:

1 - use `dub` from LDC's package (this may solve some arm64 vs x86 issues when on Apple Silicon CPU)

```
▶ which dub
/Users/renato/dlang/ldc-1.35.0/bin/dub
(ldc-1.35.0)
```


2 - when you use a new or different compiler, you have to rebuild _all_ packages. So clear your dub cache.

I think point 2 is causing your issues.

-Johan

No, I removed `~/.dub/cache` and nothing changes.

Unfortunately, nothing makes this work:

```
configuration "unittest" {
  dflags "-checkaction=context"
}
```

If I remove this things work, but then assertion error messages suck.


On Friday, 22 December 2023 at 17:45:27 UTC, Renato wrote:

I'm afraid I've lost interest to make it work at this point :(

Did you add "-L-ld_classic"?

That's the first thing I did... without that, LDC still compiles , but logs a huge amount of things like this (it keeps going for a few hundred of these):


```
ld: warning: no platform load command found in '/Users/renato/.dub/cache/pledged/~master/build/pledged-test-unittest-unittest-n8f2nulDuB1X-8Gdil7wKw/pledged-test-unittest.o', assuming: macOS ld: warning: no platform load command found in '/Users/renato/dlang/ldc-1.35.0/lib/libphobos2-ldc.a[2](curl.o)', assuming: macOS ld: warning: no platform load command found in '/Users/renato/dlang/ldc-1.35.0/lib/libphobos2-ldc.a[8](zlib.o)', assuming: macOS ld: warning: no platform load command found in '/Users/renato/dlang/ldc-1.35.0/lib/libphobos2-ldc.a[9](comparison.o)', assuming: macOS ld: warning: no platform load command found in '/Users/renato/dlang/ldc-1.35.0/lib/libphobos2-ldc.a[11](iteration.o)', assuming: macOS ld: warning: no platform load command found in '/Users/renato/dlang/ldc-1.35.0/lib/libphobos2-ldc.a[12](mutation.o)', assuming: macOS ld: warning: no platform load command found in '/Users/renato/dlang/ldc-1.35.0/lib/libphobos2-ldc.a[14](searching.o)', assuming: macOS ld: warning: no platform load command found in '/Users/renato/dlang/ldc-1.35.0/lib/libphobos2-ldc.a[16](sorting.o)', assuming: macOS ld: warning: no platform load command found in '/Users/renato/dlang/ldc-1.35.0/lib/libphobos2-ldc.a[17](array.o)', assuming: macOS
```

Reply via email to