<div style="white-space:pre-wrap">The problem is sudo.<br><br>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.<br><br>Try running cmake and make without sudo, then, if needed, run "sudo make install" to actually do the installation step.<br><br>hth...<br>don</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 14, 2016 at 5:35 AM via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple" class="gmail_msg">
<div class="m_7078252331877221141WordSection1 gmail_msg">
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg">Hi Serge,<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg">Thanks for the response!<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg">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.<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg">Kindly suggest.<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg">Regards,<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg">Chandini<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p>
<div class="gmail_msg">
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in" class="gmail_msg">
<p class="MsoNormal gmail_msg"><b class="gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" class="gmail_msg">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" class="gmail_msg"> Serge Pavlov [mailto:<a href="mailto:sepavloff@gmail.com" class="gmail_msg" target="_blank">sepavloff@gmail.com</a>]
<br class="gmail_msg">
<b class="gmail_msg">Sent:</b> Monday, November 14, 2016 6:45 PM<br class="gmail_msg">
<b class="gmail_msg">To:</b> Chandini Sainu (GIS) <<a href="mailto:chandini.sainu@wipro.com" class="gmail_msg" target="_blank">chandini.sainu@wipro.com</a>><br class="gmail_msg">
<b class="gmail_msg">Cc:</b> <a href="mailto:dwiberg@gmail.com" class="gmail_msg" target="_blank">dwiberg@gmail.com</a>; Joerg Sonnenberger <<a href="mailto:joerg@bec.de" class="gmail_msg" target="_blank">joerg@bec.de</a>>; Clang Dev <<a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a>>; Suryakanta Sahoo (GIS) <<a href="mailto:suryakanta.sahoo@wipro.com" class="gmail_msg" target="_blank">suryakanta.sahoo@wipro.com</a>></span></p></div></div></div></div><div lang="EN-US" link="blue" vlink="purple" class="gmail_msg"><div class="m_7078252331877221141WordSection1 gmail_msg"><div class="gmail_msg"><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in" class="gmail_msg"><p class="MsoNormal gmail_msg"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" class="gmail_msg"><br class="gmail_msg">
<b class="gmail_msg">Subject:</b> Re: [cfe-dev] clang 3.9 installation<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p></div></div></div></div><div lang="EN-US" link="blue" vlink="purple" class="gmail_msg"><div class="m_7078252331877221141WordSection1 gmail_msg">
<p class="MsoNormal gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></p>
<p class="gmail_msg"><span style="font-size:10.0pt" class="gmail_msg">** This mail has been sent from an external source **</span><u class="gmail_msg"></u><u class="gmail_msg"></u></p>
<div class="gmail_msg">
<div class="gmail_msg">
<p class="MsoNormal gmail_msg">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).<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
</div>
<div class="gmail_msg">
<p class="MsoNormal gmail_msg"><br clear="all" class="gmail_msg">
<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
<div class="gmail_msg">
<div class="gmail_msg">
<p class="MsoNormal gmail_msg">Thanks,<br class="gmail_msg">
--Serge<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
</div>
</div>
<p class="MsoNormal gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></p>
<div class="gmail_msg">
<p class="MsoNormal gmail_msg">2016-11-14 14:50 GMT+07:00 via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a>>:<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in" class="gmail_msg">
<p class="MsoNormal gmail_msg">Hi David/Joerg,<br class="gmail_msg">
<br class="gmail_msg">
Below are requested details.<br class="gmail_msg">
<br class="gmail_msg">
Your quick support is highly appreciated!<br class="gmail_msg">
<br class="gmail_msg">
Thanks,<br class="gmail_msg">
Chandini<br class="gmail_msg">
<br class="gmail_msg">
-----Original Message-----<br class="gmail_msg">
From: David Wiberg [mailto:<a href="mailto:dwiberg@gmail.com" class="gmail_msg" target="_blank">dwiberg@gmail.com</a>]<br class="gmail_msg">
Sent: Monday, November 14, 2016 2:39 AM<br class="gmail_msg">
To: Suryakanta Sahoo (GIS) <<a href="mailto:suryakanta.sahoo@wipro.com" class="gmail_msg" target="_blank">suryakanta.sahoo@wipro.com</a>><br class="gmail_msg">
Cc: <a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a>; Chandini Sainu (GIS) <<a href="mailto:chandini.sainu@wipro.com" class="gmail_msg" target="_blank">chandini.sainu@wipro.com</a>><br class="gmail_msg">
Subject: Re: [cfe-dev] clang 3.9 installation<br class="gmail_msg">
<br class="gmail_msg">
** This mail has been sent from an external source **<br class="gmail_msg">
<br class="gmail_msg">
Hi,<br class="gmail_msg">
<br class="gmail_msg">
You will need to provide more information for anyone to be able to help you.<br class="gmail_msg">
<br class="gmail_msg">
For example:<br class="gmail_msg">
- Which Linux distribution/version are you running? → RHEL6.7<br class="gmail_msg">
- What steps have you performed?<br class="gmail_msg">
<br class="gmail_msg">
GCC version → gcc_6_2_0<br class="gmail_msg">
Cmake version → cmake-3_6_2<br class="gmail_msg">
Python version → python3_3_2<br class="gmail_msg">
<br class="gmail_msg">
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 ..<br class="gmail_msg">
<br class="gmail_msg">
- What error messages do you receive?<br class="gmail_msg">
<br class="gmail_msg">
Errors attached.<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
<div class="gmail_msg">
<div class="gmail_msg">
<p class="MsoNormal gmail_msg"><br class="gmail_msg">
Best regards<br class="gmail_msg">
David<br class="gmail_msg">
<br class="gmail_msg">
2016-11-11 0:15 GMT+01:00 via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a>>:<br class="gmail_msg">
> Hi Team,<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> We are trying to install clang 3.9 in Linux Server. We tried<br class="gmail_msg">
> installing using the steps available in the website, we are getting errors.<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> Could you please assist us with the procedure to do so.<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> Thanks & Regards,<br class="gmail_msg">
><br class="gmail_msg">
> Suryakanta Sahoo<br class="gmail_msg">
><br class="gmail_msg">
> Project Engineer,<br class="gmail_msg">
><br class="gmail_msg">
> Wipro Technology Services Ltd<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> The information contained in this electronic message and any<br class="gmail_msg">
> attachments to this message are intended for the exclusive use of the<br class="gmail_msg">
> addressee(s) and may contain proprietary, confidential or privileged<br class="gmail_msg">
> information. If you are not the intended recipient, you should not<br class="gmail_msg">
> disseminate, distribute or copy this e-mail. Please notify the sender<br class="gmail_msg">
> immediately and destroy all copies of this message and any<br class="gmail_msg">
> attachments. WARNING: Computer viruses can be transmitted via email.<br class="gmail_msg">
> The recipient should check this email and any attachments for the<br class="gmail_msg">
> presence of viruses. The company accepts no liability for any damage<br class="gmail_msg">
> caused by any virus transmitted by this email. <a href="http://www.wipro.com" class="gmail_msg" target="_blank">
www.wipro.com</a><br class="gmail_msg">
><br class="gmail_msg">
> _______________________________________________<br class="gmail_msg">
> cfe-dev mailing list<br class="gmail_msg">
> <a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a><br class="gmail_msg">
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" class="gmail_msg" target="_blank">
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="gmail_msg">
><br class="gmail_msg">
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.
<a href="http://www.wipro.com" class="gmail_msg" target="_blank">www.wipro.com</a><u class="gmail_msg"></u><u class="gmail_msg"></u></p>
</div>
</div>
<p class="MsoNormal gmail_msg" style="margin-bottom:12.0pt"><br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
cfe-dev mailing list<br class="gmail_msg">
<a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><u class="gmail_msg"></u><u class="gmail_msg"></u></p>
</blockquote>
</div>
<p class="MsoNormal gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></p>
</div>
</div>
</div></div><div lang="EN-US" link="blue" vlink="purple" class="gmail_msg">
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. <a href="http://www.wipro.com" class="gmail_msg" target="_blank">www.wipro.com</a>
</div>
_______________________________________________<br class="gmail_msg">
cfe-dev mailing list<br class="gmail_msg">
<a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="gmail_msg">
</blockquote></div>