Illegal Instruction

David Nadlinger code at klickverbot.at
Sat Dec 23 20:29:40 UTC 2017


On Tuesday, 12 December 2017 at 13:55:45 UTC, Bottled Gin wrote:
> $ ldmd2 -fPIC -g -shared test.d
> $ ldmd2 main.d -g -L-ltest -L-L/tmp -L-R/tmp
> $ ./main
> Illegal instruction (core dumped)

Just for the record (I had responded on Gitter already), the 
problem here is trying to mix shared libraries and the static 
druntime build; https://github.com/ldc-developers/ldc/pull/2454 
converts the assert(0) trap into a nice error message.

  — David


More information about the digitalmars-d-ldc mailing list