Segmentation Fault while running HelloWord Pass
Tim Northover
t.p.northover at gmail.com
Sun Feb 16 05:14:26 PST 2014
Hi Danna,
> When I run the pass with opt I got a segmentation fault. Could you please
> tell how I can solve this error?
> ~/LLVM/build/lib/Transforms/Hello$ opt-3.0 -load ../../../Debug+Asserts/lib/Hello.so -hello < Hello.bc > /dev/null
If I had to guess, I'd say it looks like you are compiling Hello.so
against some local source, but trying to run it inside an older opt
binary provided by your distribution. That's almost guaranteed to
fail: LLVM changes very rapidly and there's no C++ ABI compatibility
between versions (or, often, between days).
The correct opt is likely to be "~/LLVM/build/Debug+Asserts/bin/opt"
and hopefully isn't 3.0 because that's ancient.
Tim.
More information about the llvm-commits
mailing list