Updated GettingStarted guide to be accurate now that binaries are in /shared
authorChris Lattner <sabre@nondot.org>
Tue, 13 Aug 2002 21:10:30 +0000 (21:10 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Aug 2002 21:10:30 +0000 (21:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3305 91177308-0d34-0410-b5e6-96231b3b80d8

docs/GettingStarted.html

index 96bd877dd0eec4f4076dd66d267133d594effb38..c0ea286d98c446a82f11b6b25fb33090450da87c 100644 (file)
@@ -13,6 +13,7 @@
       <li><a href="#quickstart">Getting started with LLVM</a>
         <ol>
           <li><a href="#cvs">Checkout LLVM from CVS</a>
+          <li><a href="#shared">Access to <tt>/shared</tt></a>
           <li><a href="#environment">Set up your environment</a>
           <li><a href="#compile">Compiling the Source Code</a>
         </ol>
 
     <p>This will create an '<tt>llvm</tt>' directory in your home directory and
     fully populate it with the source code for LLVM.</p>
-    
+
+
+    <!------------------------------------------------------------------------->
+    <h3><a name="shared">Access to <tt>/shared</tt></a></h3>
+    <!------------------------------------------------------------------------->
+
+    By default, LLVM is configured to send all compiled files into the
+    <tt>/shared/[yourloginname]/</tt> directory.  The idea is that this
+    directory is local to the machine you're working on, so the huge libraries
+    and <tt>.o</tt> files you will be compiling will not have to be sent over
+    NFS.  If you are in a situation where this setup is correct, you don't have
+    to do anything.  If you don't have a <tt>/shared</tt> directory, you will
+    have to make a couple of modifications to your setup.<p>
+    The first modification is that you need to enable the "<tt>BUILD_ROOT =
+    .</tt> line in the top level <tt>Makefile.common</tt>.  This will instruct
+    LLVM to build into the current directory tree instead of
+    <tt>/shared</tt>.<p>
+
 
     <!------------------------------------------------------------------------->
     <h3><a name="tools">Set up your environment</a></h3>
        alias llvmgcc /home/vadve/lattner/cvs/gcc_install/bin/gcc
 
        # Make the LLVM tools easy to use...
-       setenv PATH ~/llvm/tools/Debug:${PATH}
+       setenv PATH /shared/[yourloginname]/llvm/tools/Debug:${PATH}
     </pre>
 
     <p>The C compiler is not included in the CVS tree you just checked out, so
     we just point to the cannonical location, and access it with the
     <tt>llvmgcc</tt> command.  The rest of the <a href="#tools">LLVM tools</a>
-    will be built into the <tt>llvm/tools/Debug</tt> directory inside of the
-    sourcebase.  Adding them to your path will make it much easier to use
-    them.</p>
+    will be built into the <tt>llvm/tools/Debug</tt> directory.  If you do not
+    have access to <tt>/shared</tt>, use this line instead:</p>
+
+    <pre>
+       setenv PATH ~/llvm/tools/Debug:${PATH}
+    </pre>
 
+    Adding these two lines to your path will make it much easier to use the LLVM
+    tools.</p>
 
 
     <!------------------------------------------------------------------------->
     <tt>.so</tt>, <tt>.a</tt>) files into a <tt>/shared/[your login
     name]/...</tt> directory, which is supposed to be on a disk local to the
     current machine.  If you get an error talking about a <tt>/shared</tt>
-    directory, and you find out that it doesn't exist, try enabling the
-    "<tt>BUILD_ROOT = .</tt> line in the top level <tt>Makefile.common</tt> that
-    will change LLVM to build into the current directory instead of
-    <tt>/shared</tt>.<p>
+    directory, follow the instructions in the <a href="#shared">section about
+    <tt>/shared</tt></a>.<p>
+
 
 
     <!--=====================================================================-->
 
            <!-- Created: Mon Jul  1 02:29:02 CDT 2002 -->
            <!-- hhmts start -->
-Last modified: Fri Aug  9 11:13:34 CDT 2002
+Last modified: Tue Aug 13 16:09:25 CDT 2002
 <!-- hhmts end -->
   </body>
 </html>