Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] Error while linking LLVM files"
2012 Nov 06
0
[LLVMdev] Error while linking LLVM files
On Tue, Nov 6, 2012 at 6:38 AM, Wojciech Daniło
<wojtek.danilo.ml at gmail.com> wrote:
> Hi!
> I'm trying to learn LLVM and I want to compile the Kaleidoscope compiler.
> according to:
> http://llvm.org/docs/tutorial/LangImpl3.html
>
> I'm compiling it with:
> clang++ -g -O3 test.cpp `llvm-config --cppflags --ldflags --libs core` -o
> toy
>
> and it
2012 Nov 09
2
[LLVMdev] llvm-config --libs failed
I have noticed that I was installing LLVM according to:
http://llvm.org/docs/GettingStarted.html#getting-started
so it was no the 3.1 but the 3.2 version from svn (trunk 167573).
Maybe in the svn, not stable version, there is a bug?
2012/11/9 Wojciech Daniło <wojtek.danilo.ml at gmail.com>
> Does anybody have Idea why I get such error? The LLVM is compiled from
> source - is is the
2012 Nov 08
2
[LLVMdev] llvm-config --libs failed
Thank you, now it is more clear whats going on. There is a line:
/bin/sh: /home/wdanilo/dev/llvm/src/projects/Debug+Asserts/bin/llvm-config:
No such file or directory
but why it is searching for it in that directory? (all makefile configs,
are default configs)
Below, there is full output of make:
>> make VERBOSE=1
for dir in lib tools; do \
if ([ ! -f $dir/Makefile ] || \
command
2012 Nov 10
0
[LLVMdev] llvm-config --libs failed
If anyone is interested in this topic, I filled a bug here:
http://llvm.org/bugs/post_bug.cgi
2012/11/9 Wojciech Daniło <wojtek.danilo.ml at gmail.com>
> I have noticed that I was installing LLVM according to:
> http://llvm.org/docs/GettingStarted.html#getting-started
> so it was no the 3.1 but the 3.2 version from svn (trunk 167573).
> Maybe in the svn, not stable version,
2012 Nov 09
0
[LLVMdev] llvm-config --libs failed
Does anybody have Idea why I get such error? The LLVM is compiled from
source - is is the newest version (3.1) from http://llvm.org/releases/ (from
22 may 2012)
I created project in llvmsrc/projects/test (as copy of sample project) and
I get these errors while attaching LLVM lbraries :(
2012/11/8 Wojciech Daniło <wojtek.danilo.ml at gmail.com>
> Thank you, now it is more clear whats
2008 Jun 09
7
[LLVMdev] regression? Or did I do something wrong again?
I don't know if the toy program in chapter 4 of the tutorial
implementing Kaleidoscope in llvm with C++ is part of your
regression suite, but with the version of llvm I installed
last weekend, it does not compile:
hendrik at lovesong:~/dv/llvm/tut$ g++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
toy.cpp: In member function ‘virtual llvm::Value*
2012 Nov 08
2
[LLVMdev] llvm-config --libs failed
Hi!
I'm trying to use the LLVMProject toolchain (according to this page:
http://llvm.org/docs/Projects.html).
I created a project "test" with kaleidoscope example source code from:
http://llvm.org/docs/tutorial/LangImpl3.html
It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config
--cppflags --ldflags --libs core` -o toy
according to the project documentation, my Makefile
2012 Nov 08
0
[LLVMdev] llvm-config --libs failed
Wojciech Daniło <wojtek.danilo.ml at gmail.com> writes:
> Hi!
> I'm trying to use the LLVMProject toolchain (according to this page:
> http://llvm.org/docs/Projects.html).
> I created a project "test" with kaleidoscope example source code from:
> http://llvm.org/docs/tutorial/LangImpl3.html
> It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config
2010 Feb 07
3
[LLVMdev] Help with Mac OS X 10.6.2 build
Greetings,
I am having trouble getting the Kaleidoscope example to build from
tutorial #3 on Mac OS X 10.6.2. I didn't have too much trouble
getting llvm-2.6 and llvm-gcc-frontend to build. Thanks for the help.
Here are the steps I followed:
Environment variables for build
export LLVMOBJDIR=/opt/llvm
export TARGETOPTIONS='--with-arch=nocona --with-tune=generic'
export
2010 Jan 04
4
[LLVMdev] Getting Kaleidoscope to compile
Hi all,
I've started work on a new programming language for which I am
considering using LLVM as the backend, and trying to experiment with
it using the Kaleidoscope demo compiler.
Taking the full source listing from
http://llvm.org/docs/tutorial/LangImpl3.html#code and trying to
compile it with the provided instructions gives me the following
errors:
a at a-desktop:~$ g++ -g -O3 toy.cpp
2010 Jan 04
0
[LLVMdev] Getting Kaleidoscope to compile
Probably you missed to install llvm-dev package with headers for llvm.
2010/1/4 Russell Wallace <russell.wallace at gmail.com>
> Hi all,
>
> I've started work on a new programming language for which I am
> considering using LLVM as the backend, and trying to experiment with
> it using the Kaleidoscope demo compiler.
>
> Taking the full source listing from
>
2015 Feb 12
4
[LLVMdev] Building clang on Raspberry Pi2
The raspberry Pi2 is an armv7a chip (Cortex-A7), the first stage builds
fine with the native g++ (if not a little slowly at 10+ hours), but it
crashes at some point with this command line:
Program arguments:
/home/ben/development/llvm/3.6.0/rc2/Phase2/Release/llvmCore-3.6.0-rc2.install/bin/clang
-cc1 -triple armv7-unknown-linux-gnueabihf -emit-obj -disable-free
-disable-llvm-verifier
2008 Jun 09
0
[LLVMdev] regression? Or did I do something wrong again?
On Mon, Jun 9, 2008 at 7:29 AM, Hendrik Boom <hendrik at topoi.pooq.com> wrote:
> I don't know if the toy program in chapter 4 of the tutorial
> implementing Kaleidoscope in llvm with C++ is part of your
> regression suite
It isn't (although that might be a good idea).
> but with the version of llvm I installed
> last weekend, it does not compile:
>
> hendrik
2008 Jun 09
0
[LLVMdev] regression? Or did I do something wrong again?
Hi Hendrik,
> hendrik at lovesong:~/dv/llvm/tut$ g++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
> toy.cpp: In member function ‘virtual llvm::Value* NumberExprAST::Codegen()’:
> toy.cpp:359: error: no matching function for call to ‘llvm::ConstantFP::get(const llvm::Type*&, llvm::APFloat)’
> /usr/local/llvm/include/llvm/Constants.h:237: note:
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
I am new to llvm so I might be missing a critical step. My system is
Fedora 12 but this also happens in Mac OS X 10.6.2. Here are the
steps I used to compile llvm:
export TARGETS=x86,x86_64,cpp
export INSTALLDIR=/home/rovitotv/llvm
../llvm-2.6/configure --prefix=$INSTALLDIR --enable-bindings=none
--enable-targets=$TARGETS --enable-optimized
--with-llvmgccdir=$INSTALLDIR
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
First, you have to call llvm-g++ to use the llvm-gcc front end, but it
doesn't matter here.
I'd like to suggest that you use pastebin to put your code and the send us
the link, so that we can download it. The problem is that TheExecutionEngine
is set to NULL (maybe because of a previous error), but it will be really
better if you use pastebin.
On Wed, Feb 17, 2010 at 6:01 AM, Todd Rovito
2014 Jun 16
3
[LLVMdev] include's are not being located
On 6/16/14, 1:14 PM, Dan Liew wrote:
> Hi Joseph,
>
>> In other words what does " put '--std=c++11' in the CXXFLAGS” mean? Do you
>> have an example of what it would look like? or what should I read in order
>> to learn this? I’m happy to read up but I don’t know where to start reading
>> (besides the getting started page on llvm) :)
>
>
2012 Jul 10
2
[LLVMdev] Clang error compiling
llvm[1]: Compiling APFloat.cpp for Release+Asserts build
clang: TargetInfo.cpp:1778: llvm::Type
*GetX86_64ByValArgumentPair(llvm::Type *, llvm::Type *, const
llvm::TargetData &): Assertion `Lo->isIntegerTy() && "Invalid/unknown lo
type"' failed.
0 clang 0x0000000001c132ef
1 clang 0x0000000001c13804
2 libpthread.so.0 0x00002ba7d7eaec60
3
2007 Sep 05
2
[LLVMdev] Seeing a crash with ConstantFP::get
Hola LLVMers,
I'm getting a crash when using ConstantFP::get.
I can repro it by adding one line to the Fibonacci example program:
int main(int argc, char **argv) {
int n = argc > 1 ? atol(argv[1]) : 24;
// Create some module to put our function into it.
Module *M = new Module("test");
// We are about to create the "fib" function:
Function
2015 Mar 10
4
[LLVMdev] noob IR builder question
I am trying to get a handle on IR builder, at least some basics. I ran through a tutorial here: Create a working compiler with the LLVM framework, Part 1 <http://www.ibm.com/developerworks/library/os-createcompilerllvm1/>, and it worked well enough. I have some simple code that creates a hello world IR. I am trying to now bring in some concepts from the Kaleidoscope tutorial, namely