llvm cvs/svn installscript

Previous Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

llvm cvs/svn installscript

Fredrik Svensson-2
Hi all!

I wanted to test the LLVM system.

By reading the homepage I figured that llvm-gcc4 seemed
the best way to go.
I tried to follow the homepage and the instructions in README.LLVM
Sometimes confusing but in retrospect not that hard.

But I could not produce the .bc file with a simple program
no matter how hard I tried.

After some help from resistor in #llvm it became clear that I did not know
about -emit-llvm. Thank you resistor.

Before finding this out I created an install script to make sure I had made
every step, so I could ask the list if the steps were correct.

Now I have found my problem but maybe the script can be useful for someone
else, or even included in the documentation.

The script installs llvm in a given directory (default LLVM=/tmp/llvm)
using the latest cvs/svn sources.
It is a simple bash script so it should not be hard to follow.
*Please Note* that rm -rf $LLVM is used in the script. That is the reason I
use /tmp/llvm as default dir in the script I send to the list.

Please note that about 879 Mb of free space is needed to build llvm with
llvm-gcc4 frontend.

$ du -hs *
124M    build
30M     install
173M    llvm
554M    llvm-gcc4
20K     test

The script have only been tested on a Debian sid machine using default gcc :
gcc (GCC) 4.1.2 20060729 (prerelease) (Debian 4.1.1-10)

Hope it helps someone..

/Fred

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

llvm.sh (826 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: llvm cvs/svn installscript

Chris Lattner
On Mon, 14 Aug 2006, Fredrik Svensson wrote:

> By reading the homepage I figured that llvm-gcc4 seemed
> the best way to go.
> I tried to follow the homepage and the instructions in README.LLVM
> Sometimes confusing but in retrospect not that hard.
>
> But I could not produce the .bc file with a simple program
> no matter how hard I tried.
>
> After some help from resistor in #llvm it became clear that I did not know
> about -emit-llvm. Thank you resistor.

BTW, I updated the example in the getting started guide to be accurate for
llvm-gcc4 as well as llvm-gcc3.  Thanks for pointing out the problem.

-Chris

> Before finding this out I created an install script to make sure I had made
> every step, so I could ask the list if the steps were correct.
>
> Now I have found my problem but maybe the script can be useful for someone
> else, or even included in the documentation.
>
> The script installs llvm in a given directory (default LLVM=/tmp/llvm)
> using the latest cvs/svn sources.
> It is a simple bash script so it should not be hard to follow.
> *Please Note* that rm -rf $LLVM is used in the script. That is the reason I
> use /tmp/llvm as default dir in the script I send to the list.
>
> Please note that about 879 Mb of free space is needed to build llvm with
> llvm-gcc4 frontend.
>
> $ du -hs *
> 124M    build
> 30M     install
> 173M    llvm
> 554M    llvm-gcc4
> 20K     test
>
> The script have only been tested on a Debian sid machine using default gcc :
> gcc (GCC) 4.1.2 20060729 (prerelease) (Debian 4.1.1-10)
>
> Hope it helps someone..
>
> /Fred
>

-Chris

--
http://nondot.org/sabre/
http://llvm.org/
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev