I am using the source distribution, and the first puzzle is that it doesn't seem to match with the installation instructions from svn. E.g., svn talks about llvm, cfe, compiler-rt, etc; however, the source is in many differently named *.tar.gz files: clang-3.4.src.tar.gz libcxx-3.4.src.tar.gz polly-3.4.src.tar.gz clang-tools-extra-3.4.src.tar.gz lld-3.4.src.tar.gz test-suite-3.4.src.tar.gz compiler-rt-3.4.src.tar.gz lldb-3.4.src.tar.gz dragonegg-3.4.src.tar.gz llvm-3.4.src.tar.gz So, how do I shuffle/merge the content of the tar.gz files to produce the source tree that would result from the various svn actions described in http://clang.llvm.org/get_started.html (etc)? -- Bryan From: Renato Golin [mailto:renato.golin at linaro.org] Sent: Tuesday, January 07, 2014 10:48 AM To: Bryan Ewbank Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Build/Install of LLVM without root access Hi Bryan, Are you using source or binary distribution? If source, try using configure with --prefix=/some/dir/you/have/write/access or the equivalent -DCMAKE_INSTALL_PREFIX=... If binary, just unzipping the file to a local dir would be enough, if you call the binary with full path. Otherwise, put the bin directory in your path, and it should just work. cheers, --renato On 7 January 2014 15:35, Bryan Ewbank <Bryan.Ewbank at sas.com<mailto:Bryan.Ewbank at sas.com>> wrote: Hi Folks, I am trying to figure out how to install LLVM as a user on a *NIX machine rather than as root. Is there any reference to doing this successfully? I keep running into problems with locations not writeable or obsolete versions of tools on which LLVM is dependent. Thank you for any pointers or references, --Bryan Ewbank, Software Language Developer. www.sas.com<http://www.sas.com> _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu<mailto:LLVMdev at cs.uiuc.edu> http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140107/a69a0e3f/attachment.html>
John Leidel (jleidel)
2014-Jan-07 16:50 UTC
[LLVMdev] Build/Install of LLVM without root access
Bryan, you'll first need to decide which packages are relevant. If you would like to build a simple LLVM install using the CLANG frontend, do the following: $> mkdir build $> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm $> cd llvm/tools/ $> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang $> cd clang/tools/ $> svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra $> cd ../../../.. $> cd llvm/projects $> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt $> cd ../../ $> cd build $> ./llvm/configure --prefix=/path/to/your/resting/place $> make $> make install cheers john John D. Leidel Software Compiler Development Manager Micron Technology, Inc. jleidel at micron.com office: 972-521-5271 cell: 214-578-8510 On Jan 7, 2014, at 10:39 AM, Bryan Ewbank <Bryan.Ewbank at sas.com> wrote:> I am using the source distribution, and the first puzzle is that it doesn’t seem to match with the installation instructions from svn. E.g., svn talks about llvm, cfe, compiler-rt, etc; however, the source is in many differently named *.tar.gz files: > clang-3.4.src.tar.gz libcxx-3.4.src.tar.gz polly-3.4.src.tar.gz > clang-tools-extra-3.4.src.tar.gz lld-3.4.src.tar.gz test-suite-3.4.src.tar.gz > compiler-rt-3.4.src.tar.gz lldb-3.4.src.tar.gz > dragonegg-3.4.src.tar.gz llvm-3.4.src.tar.gz > > So, how do I shuffle/merge the content of the tar.gz files to produce the source tree that would result from the various svn actions described in http://clang.llvm.org/get_started.html (etc)? > > > -- Bryan > > From: Renato Golin [mailto:renato.golin at linaro.org] > Sent: Tuesday, January 07, 2014 10:48 AM > To: Bryan Ewbank > Cc: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] Build/Install of LLVM without root access > > Hi Bryan, > > Are you using source or binary distribution? > > If source, try using configure with --prefix=/some/dir/you/have/write/access or the equivalent -DCMAKE_INSTALL_PREFIX=... > > If binary, just unzipping the file to a local dir would be enough, if you call the binary with full path. Otherwise, put the bin directory in your path, and it should just work. > > cheers, > --renato > > > > > On 7 January 2014 15:35, Bryan Ewbank <Bryan.Ewbank at sas.com> wrote: > Hi Folks, > I am trying to figure out how to install LLVM as a user on a *NIX machine rather than as root. Is there any reference to doing this successfully? I keep running into problems with locations not writeable or obsolete versions of tools on which LLVM is dependent. > > Thank you for any pointers or references, > --Bryan Ewbank, Software Language Developer. www.sas.com > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
I must not be asking clearly. I have a machine on which I have placed the tarballs - but no internet access. How do I use the *src.tar.gz files from the llvm 3.4 downloads page? I understand the layout produced by the svn actions, but if I have just the tarballs, do I simply replace "svn co" with "tar -xvzf" in the sequence? How do the names of the tarballs map to the names of the svn projects? -- Bryan -----Original Message----- From: John Leidel (jleidel) [mailto:jleidel at micron.com] Sent: Tuesday, January 07, 2014 11:51 AM To: Bryan Ewbank Cc: Renato Golin; llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Build/Install of LLVM without root access Bryan, you'll first need to decide which packages are relevant. If you would like to build a simple LLVM install using the CLANG frontend, do the following: $> mkdir build $> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm $> cd llvm/tools/ $> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang $> cd clang/tools/ $> svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra $> cd ../../../.. $> cd llvm/projects $> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt $> cd ../../ $> cd build $> ./llvm/configure --prefix=/path/to/your/resting/place $> make $> make install cheers john John D. Leidel Software Compiler Development Manager Micron Technology, Inc. jleidel at micron.com office: 972-521-5271 cell: 214-578-8510 On Jan 7, 2014, at 10:39 AM, Bryan Ewbank <Bryan.Ewbank at sas.com> wrote:> I am using the source distribution, and the first puzzle is that it doesn't seem to match with the installation instructions from svn. E.g., svn talks about llvm, cfe, compiler-rt, etc; however, the source is in many differently named *.tar.gz files: > clang-3.4.src.tar.gz libcxx-3.4.src.tar.gz polly-3.4.src.tar.gz > clang-tools-extra-3.4.src.tar.gz lld-3.4.src.tar.gz test-suite-3.4.src.tar.gz > compiler-rt-3.4.src.tar.gz lldb-3.4.src.tar.gz > dragonegg-3.4.src.tar.gz llvm-3.4.src.tar.gz > > So, how do I shuffle/merge the content of the tar.gz files to produce the source tree that would result from the various svn actions described in http://clang.llvm.org/get_started.html (etc)? > > > -- Bryan > > From: Renato Golin [mailto:renato.golin at linaro.org] > Sent: Tuesday, January 07, 2014 10:48 AM > To: Bryan Ewbank > Cc: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] Build/Install of LLVM without root access > > Hi Bryan, > > Are you using source or binary distribution? > > If source, try using configure with --prefix=/some/dir/you/have/write/access or the equivalent -DCMAKE_INSTALL_PREFIX=... > > If binary, just unzipping the file to a local dir would be enough, if you call the binary with full path. Otherwise, put the bin directory in your path, and it should just work. > > cheers, > --renato > > > > > On 7 January 2014 15:35, Bryan Ewbank <Bryan.Ewbank at sas.com> wrote: > Hi Folks, > I am trying to figure out how to install LLVM as a user on a *NIX machine rather than as root. Is there any reference to doing this successfully? I keep running into problems with locations not writeable or obsolete versions of tools on which LLVM is dependent. > > Thank you for any pointers or references, > --Bryan Ewbank, Software Language Developer. www.sas.com > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reasonably Related Threads
- [LLVMdev] Build/Install of LLVM without root access
- [LLVMdev] Build/Install of LLVM without root access
- [cfe-dev] [Openmp-dev] LLVM Social in Austin - Nov. 15?
- [cfe-dev] [Openmp-dev] LLVM Social in Austin - Nov. 15?
- [LLVMdev] Backend Tablegen Instruction Definition