Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] MinGW - LLVM Pass - Undefined Reference"
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:
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:
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
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
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:
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,
>
>
2011 Sep 14
2
[LLVMdev] LLVMHello pass compile error under Cygwin
I've built LLVM/Clang from svn under Cygwin on Windows 7. I'd like to
build on the LLVMHello pass example, however, when I try:
$ cd $LLVM/lib/Transforms/Hello
$ make
I receive a large number of errors which start with:
llvm[0]: Linking Debug+Asserts Loadable Module LLVMHello.dll
/cygdrive/c/Users/Graham/home/projects/llvm_cygwin/lib/Transforms/Hello/Debug+Asserts/Hello.o:
In function
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
2016 Aug 03
3
Issue with HelloWorld pass
Dear all,
I'm new to the LLVM world and I'm trying to run reproduce the hello
world example described here
http://llvm.org/releases/3.8.1/docs/WritingAnLLVMPass.html.
I started with a fresh new llvm-3.8.1 installation based on cmake
(running on Linux x86) using the following command:
cmake -DCMAKE_INSTALL_PREFIX=/path/to/llvm -DLLVM_TARGETS_TO_BUILD="X86" ../
The build
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
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
2013 Jan 01
1
[LLVMdev] Help : Writting a LLVM pass
I'm working though http://llvm.org/docs/WritingAnLLVMPass.html, trying to
write a very simple pass. I have followed all the steps mentioned in this
document.But as mentioned I'm not getting any file named Hello.so in
Debug+Asserts/lib folder(There is a file named LLVMHello.so only). I have
also tried to modify Hello.cpp in lib/Transforms/Hello but these changes
doesn't reflect
2012 Mar 28
2
[LLVMdev] Building past few days with Clang++ and Clang produces errors on Cmake for Debian Linux
*System:* Debian Linux Sid/Unstable amd64
*LLVM/Clang:* Trunk
*Scenario:* In the past couple of days I've been compiling against trunk
I get two separate and spurious hang ups with CMake.
*Note:* I build against more than just X86 follow along the progress of
other platforms, though just building for X86 produces the same results
below.
*Assumption:* Configure cmake with prior built