similar to: [LLVMdev] LLVMHello example fails with "undefined symbol"

Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] LLVMHello example fails with "undefined symbol""

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
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()
no... I guess verifier runs by default and it points to the doFinailization() function :-( ~t On Tue, Aug 12, 2014 at 12:53 AM, Eric Christopher <echristo at gmail.com> wrote: > No idea, I was suggesting to just run the verifier to see if it would > pinpoint what's broken about the module. > > -eric > > On Tue, Aug 12, 2014 at 12:52 AM, Tianyin Xu <tixu at
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, > >
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
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
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:
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
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
2006 Feb 08
1
[LLVMdev] LLVM Hello Project generating .lo file in place of .so file.
Hello, I am trying to compile the Hello Project of the lib/Transforms/Hello subdirectory according to the instructions given on http://llvm.cs.uiuc.edu/docs/WritingAnLLVMPass.html document. I am using 1.6cvs source to compile LLVM. The problem is that after running the Make file on the project, the Debug subdirectory contains .lo file in place of .so file. I need the .so file to use with opt
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
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':
2016 Nov 18
2
Questions about the methods of compilation.
Hi, I have some questions about the compilation of the llvm. First, why the majority of the results of compilation are static library ( *.a files in the $(LLVM_HOME)/Release+Asserts/lib/), Why don't generate dynamic link library (.so files in the directory). The exception is the file libLTO.a and libLTO.so, why the library LTO were generated for static and dynamic both? How to control the
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
2010 Apr 18
0
[LLVMdev] .so file creation for new passes
Hi ! The Hello world pass sources are in llvm/lib/Transform/Hello/* If you compile llvm, the Hello library will be compiled too. It's not installed but it's in build_directory/Debug/lib/LLVMHello.so (or in build_directory/Release/lib/LLVMHello.so) Olivier. On Sun, Apr 18, 2010 at 7:35 AM, kalyan ponnala <ponnala.kalyan at gmail.com>wrote: > Hello, > > I was going
2017 May 11
3
LLVMHello doesn't work - Loadable modules
When I build LLVM, the message LLVMHello ignored -- Loadable modules not supported on this platform is shown and the LLVM Hello pass doesn't work. I am using Windows. Is this correct? LLVM Hello pass works only on Linux? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Oct 19
1
[LLVMdev] Issues with running the LLVMHello Pass on Windows
Hi, I was trying to write a LLVM Pass, so I first read http://llvm.org/docs/WritingAnLLVMPass.html#quickstart about how to write a llvm pass. Here, under setting up the build environment settings, it was instructed to configure and build LLVM directly inside the LLVM source tree rather than in a separate objects directory. Now, my LLVM source tree is C:\LLVM\llvm-2.9 while my build is in
2010 Sep 04
2
[LLVMdev] RFC: change build order (or location) of LLVMHello plugin
Hello, everybody! On win32(s), lib/Transforms/Hello cannot be built cleanly. It will be built after 1st build. Linking the plugin LLVMHello.dll requires other libraries, especially LLVM.dll. May I move Hello to other location? Or, may I tweak llvm/Makefile? ...Takumi
2010 Dec 21
1
[LLVMdev] [PATCH] OS X - BugpointPasses and LLVMHello have extension ".so" when using CMake
For a while now I have noticed that when I build LLVM using CMake on my OS X machine there are two dynamically linked libraries, BugpointPasses and LLVMHello, that are built with the extension ".so" instead of the extension ".dylib". This has been causing four test cases to fail when running "make check". The attached patch modifies add_llvm_loadable_module in the