Displaying 20 results from an estimated 187 matches for "llvmhello".
2006 Aug 28
2
[LLVMdev] opt -load error on Darwin
...I also set LLVM_LIB_SEARCH_PATH to be
cfrontend-lib.
I copied Hello.cpp and Makefile to ~/tools/build-ppc/lib/Transforms/Hello
and built the library.
pollux:~/tools/build-ppc/lib/Transforms/Hello $ make
llvm[0]: Compiling Hello.cpp for Release build (PIC)
llvm[0]: Linking Release Shared Library LLVMHello.so
llvm[0]: Linking Release Object Library LLVMHello.o
The loadable library was found on ~/tools/build-pcc/Release/lib.
pollux:~/tools/build-ppc/Release/lib $ file LLVMHello*
LLVMHello.0.0.0.so: Mach-O bundle ppc
LLVMHello.0.so: symbolic link to `LLVMHello.0.0.0.so'
LLVMHello.a: cu...
2006 Aug 28
0
[LLVMdev] opt -load error on Darwin
...gt; cfrontend-lib.
>
> I copied Hello.cpp and Makefile to
> ~/tools/build-ppc/lib/Transforms/Hello and built the library.
>
> pollux:~/tools/build-ppc/lib/Transforms/Hello $ make
> llvm[0]: Compiling Hello.cpp for Release build (PIC)
> llvm[0]: Linking Release Shared Library LLVMHello.so
> llvm[0]: Linking Release Object Library LLVMHello.o
>
> The loadable library was found on ~/tools/build-pcc/Release/lib.
>
> pollux:~/tools/build-ppc/Release/lib $ file LLVMHello*
> LLVMHello.0.0.0.so: Mach-O bundle ppc
> LLVMHello.0.so: symbolic link to `LLVMHello.0...
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 .....
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: /ketan/dcm-project/llvm-2.3/Release/lib/LLVMHello.dylib
Expected in: flat namespace
-load reque...
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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/...
2006 Aug 28
3
[LLVMdev] opt -load error on Darwin
...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 '/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so':
Can't open :/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so:
dlopen(/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so, 9): Symbol
not
found:__ZN4llvm12FunctionPass16addToPassManagerEPNS_20Functi...
2009 Oct 12
1
[LLVMdev] current state of building analysis passes out-of-tree with llvm-config?
...need to create a new directory somewhere in the LLVM source
base."
while people who only want to experiment with simple passes might feel
more comfortable if they didn't need to create directories inside llvm
source tree. I ended up with the following Makefile:
all:
g++ -c -o LLVMHello.o `llvm-config --cxxflags` Hello.cpp
gcc -shared -Wl,-soname,LLVMHello.so -o LLVMHello.so LLVMHello.o
clean:
rm -f LLVMHello.so LLVMHello.o
(I can not use Makefile.common since it is not installed by 'make
install')
best regards,
Timo Lindfors
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':
../../cse231_project/llvm/llv...
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:
_ZNK4llvm12FunctionPass17createPrinterPassERNS_11raw_ostreamERKSs
-load request ignored.
Is it a known problem? How I should fix it?
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 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 ../../../Debug+Asserts/lib/LLVMHello.so
linux-vdso.so.1...
2008 Oct 23
0
[LLVMdev] Regarding Error on Mac OSX
...here 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,
>
> 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 '../R...
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
...;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,
> >
> > 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?
> >...
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 module?
>
> -eric
>
> On...
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: <http://lists.llvm.org...
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
...; >>
> >> -eric
> >>
> >> On Tue, Aug 12, 2014 at 12:28 AM, Tianyin Xu <tixu at cs.ucsd.edu> wrote:
> >> > 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.
> >...
2013 Feb 11
0
[LLVMdev] llvm pass
...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 '/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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/...
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
...velopers
(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 llvm-3.4.2.src/Debug+Asserts/lib
According to the tutorial, the following command should be called to invoke
it,
#opt -load ../../../Debug+Asserts/lib/Hello.so -hello < hello.bc > /dev/null
(and verify will be invoked by default).
~t
On Tue, Aug 12, 2014 at 1:02 AM...
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 `...
2020 Nov 11
0
[cfe-dev] Running LLVMHello Pass from Clang(-cl)
...ommand-line, see if you get more infos?
De : cfe-dev <cfe-dev-bounces at lists.llvm.org> De la part de Eric Astor via cfe-dev
Envoyé : November 11, 2020 8:39 AM
À : Gaier, Bjoern <Bjoern.Gaier at horiba.com>
Cc : Clang Dev <cfe-dev at lists.llvm.org>
Objet : Re: [cfe-dev] Running LLVMHello Pass from Clang(-cl)
The "Error generating preprocessed source(s)" message here is from a generic error trap:
https://github.com/llvm/llvm-project/blob/ba71a0746f31a2f5f9af992f569a9418133a9a38/clang/lib/Driver/Driver.cpp#L1385
I've found instances of this online that were resolved b...