NSView __block *view = nil;
This piece of code in my C stubs was the reason linker failed with undefined _caml_code_area_end. (an artifact left from the imprudent decision to click Xcode’s ‘Fix’ suggestion)
Once I removed __block, the issue disappeared.
Normally, there’s no issue with dune’s -output-complete-obj facilities.