dyld assertation failure during linking w/ custom codegen

I am working on adding Objective-C ABI support to DLang and currently I'm getting the following error when linking with ld.

Assertion failed: (fixups().size() == 1), function classTarget

I'm curious as to why I am getting this error, looking at the objective-c runtime source, i have not applied any of the fixup flags to any protocol definitions. From my understanding, the source of the linker is not available so it's a bit on the difficult side to determine which part is wrong.

The source of my pull-request is available here:
https://github.com/ldc-developers/ldc/pull/4777

If the linker traps within an assert that is, by definition, bugworthy. If there’s something wrong with your input, the linker should fail with an error message, not trap.

So, as a first step, please file a bug about this. Make sure to include the inputs to the linker that cause it to trap.

Once you’re done, post your bug number here and I’ll take a better look at this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

dyld assertation failure during linking w/ custom codegen
 
 
Q