Re: [pure-lang-users] 64-bit build-problems
Status: Beta
Brought to you by:
agraef
|
From: Libor S. <li...@gm...> - 2008-04-30 19:41:17
|
Eddie and Albert, Thanks to you both. Ubuntus are bad, refusing to update their very old version of LLVM, despite having had a request for it for the last six months or more. I have just found a .deb package of LLVM2.2-7 at: http://ubuntu.cica.es/debian/pool/main/l/llvm/ which might turn out to be the easiest way to go. I am just going to try it and report here. Libor On Wed, 30 Apr 2008 20:34:44 +0100, Albert Graef <Dr....@t-...> wrote: > Eddie Rucker wrote: >> Tonight, I'm going to install the 64 bit Ubuntu again (I already have a CD) and see if I can get LLVM to work. I should probably go ahead and switch to FreeBSD, as I will later, but I'm too busy to install it. IIRC, FreeBSD wasn't as easy to install. If it works I'll give the step-by-step. > > That would be great! I'll add your notes to the README and will also > make them available on The Pure website. > > In fact, I now seem to recall that the install wasn't all that > difficult, it's just the documentation on the LLVM website which is > confusing. I actually followed the "Building the LLVM GCC Front-End" > page (http://llvm.org/docs/GCCFEBuildInstrs.html) rather than the > "Getting Started" guide, which is much shorter (you'll have to fiddle > with some of the options, though, because that page actually talks about > building the Ada frontend). > > So IIRC this is the procedure I followed (please, someone should verify > these steps, as it's been a while since I've done this): > > *Step#1:* Unpack the sources from both llvm-2.2.tar.gz and > llvm-gcc4.2-2.2.source.tar.gz to some directory SRCDIR and go there (cd > SRCDIR). You can find the downloads here: > http://llvm.org/releases/download.html#2.2 > (Just ignore all the binary packages and get only those two source > tarballs.) > > *Step#2:* Rename the source directories: > > mv llvm-2.2 llvm > mv llvm-gcc4.2-2.2.source llvm-gcc-4.2 > > *Step#3:* Make a build directory llvm-objects for llvm and go there: > > mkdir llvm-objects > cd llvm-objects > > *Step#4:* Configure, build and install LLVM (set prefix to wherever you > want it to, and use ENABLE_OPTIMIZED=0 instead of ENABLE_OPTIMIZED=1 to > build LLVM with checking enabled): > > ../llvm/configure --prefix=/usr/local > make ENABLE_OPTIMIZED=1 > sudo make install > > *Step#5:* Make a build directory llvm-gcc-4.2-objects for llvm-gcc and > go there: > > cd .. > mkdir llvm-gcc-4.2-objects > cd llvm-gcc-4.2-objects > > *Step#6:* Configure, build and install llvm-gcc (you might wish to add > other languages like ada and fortran to the --enable-languages option): > > ../llvm-gcc-4.2/configure --prefix=/usr/local --enable-languages=c,c++ \ > --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-shared \ > --disable-bootstrap --disable-multilib > make > sudo make install > > > That should be all, IIRC. I'm not sure whether you actually have to > install llvm-gcc (steps 5 and 6) if you only want to compile another > LLVM application, but those are the steps I followed on both my > development box (SUSE 10.1) and my laptop (SUSE 10.3), and it allows me > to build Pure just fine. > > HTH, > Albert > |