[cfe-dev] clang 3.9 installation

don hinton via cfe-dev cfe-dev at lists.llvm.org
Tue Nov 15 03:25:45 PST 2016


If you want to build llvm+clang from scratch, please follow these
instructions:

http://clang.llvm.org/get_started.html

But, if you just want to use it, I'd suggest you download one of the
pre-built binaries found here:

http://llvm.org/releases/download.html


On Tue, Nov 15, 2016 at 2:34 AM <chandini.sainu at wipro.com> wrote:

> Hi Don,
>
>
>
> Tried without sudo but still the same issue.
>
>
>
> llvm 3.9 is downloaded. Do you want me to link clang to llvm/tools?
>
>
>
> *FYI*
>
>
>
> [sainu at oulnxc55 xfer/sainu/cfe-3.9.0.src]$ls
>
> bindings  CMakeLists.txt   docs      include  INSTALL.txt  LICENSE.TXT
> NOTES.txt   runtime  tools      utils
>
> cmake     CODE_OWNERS.TXT  examples  INPUTS   lib          ModuleInfo.txt
> README.txt  test     unittests  www
>
>
>
> [sainu at oulnxc55 xfer/sainu/llvm-3.9.0.src/tools]$ls
>
> bugpoint         llvm-ar                           llvm-cov
> llvm-extract      llvm-mcmarkup  llvm-shlib       msbuild
> yaml2obj
>
> bugpoint-passes  llvm-as                           llvm-c-test
> llvm-go           llvm-nm        llvm-size        obj2yaml
>
> CMakeLists.txt   llvm-as-fuzzer                    llvm-cxxdump
> llvm-jitlistener  llvm-objdump   llvm-split       opt
>
> dsymutil         llvm-as-parasitic-coverage-repro  llvm-diff
> llvm-link         llvm-pdbdump   llvm-stress      sancov
>
> gold             llvm-bcanalyzer                   llvm-dis
> llvm-lto          llvm-profdata  llvm-symbolizer  sanstats
>
> llc              LLVMBuild.txt                     llvm-dwarfdump
> llvm-mc           llvm-readobj   llvm-vtabledump  verify-uselistorder
>
> lli              llvm-config                       llvm-dwp
> llvm-mc-fuzzer    llvm-rtdyld    lto              xcode-toolchain
>
> [sainu at oulnxc55 xfer/sainu/llvm-3.9.0.src/tools]$
>
>
>
> Thanks,
>
> Chandini
>
>
>
> *From:* don hinton [mailto:hintonda at gmail.com]
> *Sent:* Monday, November 14, 2016 8:38 PM
>
>
> *To:* Chandini Sainu (GIS) <chandini.sainu at wipro.com>
>
> *Cc:* sepavloff at gmail.com; clang developer list <cfe-dev at lists.llvm.org>;
> Suryakanta Sahoo (GIS) <suryakanta.sahoo at wipro.com>
>
>
> *Subject:* Re: [cfe-dev] clang 3.9 installation
>
>
>
> ** This mail has been sent from an external source **
>
> Btw, sudo only explains the gcc version issue.
>
>
>
> The other errors seem to indicate cmake can't find the llvm directory.
> Did you download llvm?  Normally, you download clang under the llvm/tools
> directory (renaming or linking cfe as clang), then run cmake like this:
>
>
>
>   cmake <options> ../llvm
>
>
>
> where ../llvm points to the llvm root directory.
>
>
>
> again, hth...
>
> don
>
>
>
> On Mon, Nov 14, 2016 at 6:52 AM, <chandini.sainu at wipro.com> wrote:
>
> Hi Hinton,
>
>
>
> Will check and revert back.
>
>
>
> Thanks,
>
> Chandini
>
>
>
> *From:* don hinton [mailto:hintonda at gmail.com]
> *Sent:* Monday, November 14, 2016 8:07 PM
> *To:* Chandini Sainu (GIS) <chandini.sainu at wipro.com>; sepavloff at gmail.com
> *Cc:* cfe-dev at lists.llvm.org; Suryakanta Sahoo (GIS) <
> suryakanta.sahoo at wipro.com>
>
>
> *Subject:* Re: [cfe-dev] clang 3.9 installation
>
>
>
> ** This mail has been sent from an external source **
>
> The problem is sudo.
>
> Once you run sudo, you are root and have a completely different
> environment. My guess is that the newer version of gcc is installed in a
> non-standard location. If that's the case, you may need a few more options.
>
> Try running cmake and make without sudo, then, if needed, run "sudo make
> install" to actually do the installation step.
>
> hth...
> don
>
>
>
> On Mon, Nov 14, 2016 at 5:35 AM via cfe-dev <cfe-dev at lists.llvm.org>
> wrote:
>
> Hi Serge,
>
>
>
> Thanks for the response!
>
>
>
> We are using the latest version of gcc (6.2)and python(3.3) but the cmake
> is picking up the server installed packages only.
>
>
>
> Kindly suggest.
>
>
>
> Regards,
>
> Chandini
>
>
>
> *From:* Serge Pavlov [mailto:sepavloff at gmail.com]
> *Sent:* Monday, November 14, 2016 6:45 PM
> *To:* Chandini Sainu (GIS) <chandini.sainu at wipro.com>
> *Cc:* dwiberg at gmail.com; Joerg Sonnenberger <joerg at bec.de>; Clang Dev <
> cfe-dev at lists.llvm.org>; Suryakanta Sahoo (GIS) <
> suryakanta.sahoo at wipro.com>
>
>
> *Subject:* Re: [cfe-dev] clang 3.9 installation
>
>
>
> ** This mail has been sent from an external source **
>
> According to the attached files you are using too old gcc (4.4.6 but 4.8+
> is needed) and python (2.6 but 2.7+ is needed).
>
>
> Thanks,
> --Serge
>
>
>
> 2016-11-14 14:50 GMT+07:00 via cfe-dev <cfe-dev at lists.llvm.org>:
>
> Hi David/Joerg,
>
> Below are requested details.
>
> Your quick support is highly appreciated!
>
> Thanks,
> Chandini
>
> -----Original Message-----
> From: David Wiberg [mailto:dwiberg at gmail.com]
> Sent: Monday, November 14, 2016 2:39 AM
> To: Suryakanta Sahoo (GIS) <suryakanta.sahoo at wipro.com>
> Cc: cfe-dev at lists.llvm.org; Chandini Sainu (GIS) <chandini.sainu at wipro.com
> >
> Subject: Re: [cfe-dev] clang 3.9 installation
>
> ** This mail has been sent from an external source **
>
> Hi,
>
> You will need to provide more information for anyone to be able to help
> you.
>
> For example:
> - Which Linux distribution/version are you running? → RHEL6.7
> - What steps have you performed?
>
> GCC version → gcc_6_2_0
> Cmake version → cmake-3_6_2
> Python version → python3_3_2
>
> Command being used →  sudo cmake
> -DCMAKE_INSTALL_PREFIX=/applics/platform/clang_3_9_0 -DLLVM_ENABLE_FFI=ON
> -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_LLVM_DYLIB=ON
> -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" -Wno-dev ..
>
> - What error messages do you receive?
>
> Errors attached.
>
>
> Best regards
> David
>
> 2016-11-11 0:15 GMT+01:00 via cfe-dev <cfe-dev at lists.llvm.org>:
> > Hi Team,
> >
> >
> >
> > We are trying to install clang 3.9 in Linux Server. We tried
> > installing using the steps available in the website, we are getting
> errors.
> >
> >
> >
> > Could you please assist us with the procedure to do so.
> >
> >
> >
> >
> >
> > Thanks & Regards,
> >
> > Suryakanta Sahoo
> >
> > Project Engineer,
> >
> > Wipro Technology Services Ltd
> >
> >
> >
> > The information contained in this electronic message and any
> > attachments to this message are intended for the exclusive use of the
> > addressee(s) and may contain proprietary, confidential or privileged
> > information. If you are not the intended recipient, you should not
> > disseminate, distribute or copy this e-mail. Please notify the sender
> > immediately and destroy all copies of this message and any
> > attachments. WARNING: Computer viruses can be transmitted via email.
> > The recipient should check this email and any attachments for the
> > presence of viruses. The company accepts no liability for any damage
> > caused by any virus transmitted by this email. www.wipro.com
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> >
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments. WARNING: Computer viruses can be
> transmitted via email. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no liability
> for any damage caused by any virus transmitted by this email.
> www.wipro.com
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments. WARNING: Computer viruses can be
> transmitted via email. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no liability
> for any damage caused by any virus transmitted by this email.
> www.wipro.com
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments. WARNING: Computer viruses can be
> transmitted via email. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no liability
> for any damage caused by any virus transmitted by this email.
> www.wipro.com
>
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments. WARNING: Computer viruses can be
> transmitted via email. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no liability
> for any damage caused by any virus transmitted by this email.
> www.wipro.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161115/43243708/attachment.html>


More information about the cfe-dev mailing list