Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] lli fine, compiled segfault?"
2011 Sep 04
1
[LLVMdev] correct types for ArgumentList?
I'm trying to create and insert a anonymous function that will make a
assignment on a GlobalVariable, based on a existing StoreInst. Once I
find this StoreInst(which provides me with 2 Value* objects for me to
use) I need to pass it to my anonymous function so it can carry out
the assignment. I can not get the correct types, at runtime I get a
bad signature error.
So basically the function is
2013 Jul 05
2
[LLVMdev] Any suggestion for "Unknown instruction type encountered" error?
Hello all,
I was playing with LLVM pass. I changed the
lib/Transforms/Hello/Hello.cpp 's content to be my own pass. Then I make
install the pass and use an example test1.c to see whether it works or not.
When I run example using the following command:
clang -emit-llvm test1.c -c -o test1.bc
opt -load ../build_llvm/Debug+Asserts/lib/LLVMHello.so -hello < test1.bc >
/dev/null
It
2013 Jul 05
0
[LLVMdev] Any suggestion for "Unknown instruction type encountered" error?
hacker cling wrote:
> Hello all,
> I was playing with LLVM pass. I changed the
> lib/Transforms/Hello/Hello.cpp 's content to be my own pass. Then I make
> install the pass and use an example test1.c to see whether it works or
> not. When I run example using the following command:
> clang -emit-llvm test1.c -c -o test1.bc
> opt -load
2006 Aug 28
2
[LLVMdev] opt -load error on Darwin
Hi,
I am following the instructions on Writing an LLVM Pass on Darwin(8.7.0)
powerpc. The loadable library is built. But "opt -load " gives error saying
"Symbol not found". I am using LLVM 1.8. Could someone tell me how to fix
it? I have tried the same procedure on Pentium4 Redhat9. Everything is ok
there. So I think there must be some specific problem on Darwin that I
should
2006 Aug 28
0
[LLVMdev] opt -load error on Darwin
On Sun, 2006-08-27 at 21:57 -0500, Jing Yu wrote:
> Hi,
>
Hi Jing,
> I am following the instructions on Writing an LLVM Pass on
> Darwin(8.7.0) powerpc. The loadable library is built. But "opt -load
> " gives error saying "Symbol not found". I am using LLVM 1.8. Could
> someone tell me how to fix it? I have tried the same procedure on
> Pentium4 Redhat9.
2009 Oct 12
1
[LLVMdev] current state of building analysis passes out-of-tree with llvm-config?
Hi,
what's the current state of being able to build simple analysis passes
out-of-tree against only llvm headers and libraries with llvm-config?
I see that clang and klee do not use llvm-config but for example
rubinius does. Should both approaches be documented?
Currently for example docs/WritingAnLLVMPass.html says
"you need to create a new directory somewhere in the LLVM source
2015 Sep 17
2
Problems building LLVMHello, spaces in path
I recently had a problem creating LLVMHello.
I used this CMake file
#!/bin/sh
# clangcmake.sh
cmake -G "Eclipse CDT4 - Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="X86"
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE="Debug"
-DCMAKE_ECLIPSE_VERSION=4.5 -DCMAKE_CXX_COMPILER=clang++
-DCMAKE_C_COMPILER=clang ../llvm
then I ran
make LLVMHello
and the build failed
2006 Aug 28
3
[LLVMdev] opt -load error on Darwin
Thank you, Reid.
I have applied tha patch to ltdl.c ltdl.h. The problem still exists. I
looked up the symbol on libLLVMCore.a, and found three U-entries and one
T-entry. However, the Darwin linker is not able to find the T-entry. Any
idea?
pollux:~/test jingyu$ opt -load
/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so -help
Error opening
2008 Oct 22
2
[LLVMdev] Regarding Error on Mac OSX
Hello guys,
I get the following error whenever i try to check if the following pass exists. I am using Mac OSX leopard and gcc4
opt -load ../Release/lib/LLVMHello.dylib -hello
Error opening '../Release/lib/LLVMHello.dylib': dlopen(../Release/lib/LLVMHello.dylib, 1): Symbol not found: __ZN4llvm12FunctionPass11runOnModuleERNS_6ModuleE
Referenced from:
2011 May 02
2
[LLVMdev] Hello Pass Problem
Hi all
I am trying hello pass in llvm. I have compiled and could generate
LLVMHello.so but while giving the pass using opt i am getting below
mentioned error.
Command used: *opt-2.8 -load
../../cse231_project/llvm/llvm-2.9/Debug/lib/LLVMHello.so -hello < hello.bc*
Error opening '../../cse231_project/llvm/llvm-2.9/Debug/lib/LLVMHello.so':
2013 Feb 11
2
[LLVMdev] llvm pass
hello sir,
i build llvm-clang successfully in my pc but while running a pass i am
geetting this error
praveen at ubuntu:~/Desktop/LLVM/
build/Release$ opt -load /lib/LLVMHello.so --help
Error opening '/lib/LLVMHello.so': /lib/LLVMHello.so: cannot open shared
object file: No such file or directory
-load request ignored.
please help me to overcome the error.
-------------- next part
2008 Oct 23
0
[LLVMdev] Regarding Error on Mac OSX
Hi,
There is reported bug about this (#2771), or at least related.
http://llvm.org/bugs/show_bug.cgi?id=2771
Though it seems there is no "proper" solution known so far.
The workaround is to use 'opt' from the Release/bin directory
In your case:
../Release/bin/opt -load ../Release/lib/LLVMHello.dylib -hello
Would probably work.
Best regards
Vlado
> Hello guys,
>
>
2014 Jul 09
2
[LLVMdev] Help with the 'WritingAnLLVMPass' tutorial
Hi,
I'm making my way through the WritingAnLLVMPass tutorial and hitting the
following issue.
$ opt -load ../../../Debug+Asserts/lib/LLVMHello.so -hello < hello.bc >
/dev/null
opt: symbol lookup error: ../../../Debug+Asserts/lib/LLVMHello.so:
undefined symbol: AnnotateHappensAfter
nm -g ../../../Debug+Asserts/lib/LLVMHello.so
U AnnotateHappensAfter
...
$ ldd
2013 Feb 11
0
[LLVMdev] llvm pass
---------- Forwarded message ----------
From: Manoj C <manoj.chinthala at gmail.com>
Date: Mon, Feb 11, 2013 at 11:05 AM
Subject: llvm pass
To: llvmdev at cs.uiuc.edu
hello sir,
i build llvm-clang successfully in my pc but while running a pass i am
geetting this error
praveen at ubuntu:~/Desktop/LLVM/
build/Release$ opt -load /lib/LLVMHello.so --help
Error opening
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
Hi all,
I find all my passes are all broken with LLVM 3.4. Then I tried out the
LLVMHello.so specified in the LLVM doc,
http://llvm.org/docs/WritingAnLLVMPass.html
and it also crashes.
It seems all the functions in the pass do work, but LLVM crashes in the
doFinalization() step.
Does anyone know this problem?
Thanks!
Tianyin
2010 Nov 18
2
[LLVMdev] LLVMHello example fails with "undefined symbol"
Hi,
I am trying to learn LLVM by following this article
http://llvm.org/docs/WritingAnLLVMPass.html
I checked 2.8 version from svn, built it and now I am trying to run
Hello world example as
$ opt -load ./Release/lib/LLVMHello.so -analyze
but unfortunately it fails:
Error opening './Release/lib/LLVMHello.so':
./Release/lib/LLVMHello.so: undefined symbol:
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
The module is shipped with the source code, so it's from the developers
(not me).
The path in the source tree is:
llvm-3.4.2.src/lib/Transforms/Hello
After compiled LLVM
*#./configure --prefix=XXX
--with-binutils-include=/path-to-binutils-2.24/include
--enable-debug-symbols --enable-debug-runtime --enable-assertions
--disable-optimized; make; make install*
LLVMHello.so is generated at
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
I just follow the tutorial: http://llvm.org/docs/WritingAnLLVMPass.html
Actually it's not only my module, I used the LLVMHello.so (a sample module
in the source tree) and get the crash (I didn't do anything :-P).
~t
On Tue, Aug 12, 2014 at 12:57 AM, Eric Christopher <echristo at gmail.com>
wrote:
> Weird, it definitely shouldn't be crashing. How did you create your
2011 Oct 14
3
[LLVMdev] undefined symbol: _ZN4llvm12PassRegistry12registerPassERKNS_8PassInfoEb
Has anyone seen this error before? I'm trying to load a pass that apparently
isn't registered, it's just the "Hello World" sample , so I don't see the
problem.
Error:
me at here:~/llvm/llvm_core/llvm-2.9$ opt -load Release/lib/LLVMHello.so -hello
<cdfg.c> /dev/null
Error opening 'Release/lib/LLVMHello.so': Release/lib/LLVMHello.so:
undefined symbol:
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
Oh, you mean opt -disable-verify?
Yes, it does eliminate the crashing...
Do you know what's the problem, Eric?
Thanks a lot!
~t
On Tue, Aug 12, 2014 at 12:42 AM, Eric Christopher <echristo at gmail.com>
wrote:
> Tried opt -verify on your module?
>
> -eric
>
> On Tue, Aug 12, 2014 at 12:28 AM, Tianyin Xu <tixu at cs.ucsd.edu> wrote:
> > Hi all,
> >