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 -------------- next part -------------- A non-text attachment was scrubbed... Name: llvm.sh Type: application/x-sh Size: 793 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060814/132c24ee/attachment.sh>
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/
Possibly Parallel Threads
- [LLVMdev] Problems building cfrontend 4 source on SUSE 10.1
- [LLVMdev] Problems building cfrontend 4 source on SUSE 10.1
- [LLVMdev] problem building gcc4 front end on fedora core 5
- [LLVMdev] Cygwin release build error
- [LLVMdev] Problems building cfrontend 4 source on SUSE 10.1