[LLVMdev] lli crashes when running cpp programs

Tim Northover t.p.northover at gmail.com
Mon Mar 24 08:12:05 PDT 2014


> LLVM ERROR: Program used external function '__dso_handle' which could not be
> resolved!
>
> Am I missing some libraries?

Apparently (llvm.org/bugs/show_bug.cgi?id=7847) that's related to how
libstdc++ gets initialized and the old JIT has a special hack for that
symbol. You can give clang the extra "-fno-use-cxa-atexit" option as a
work-around.

Cheers.

Tim.



More information about the llvm-dev mailing list