<div dir="ltr"><div>Hey Thiago,</div><div><br></div><div>Here are some instructions that should get you a gcc 4.8.2 build on Ubuntu 12.04 x86_64. Including lldb-dev again so I can point others to this. Let me know if you hit any issues with it and we'll get that fixed up.</div>
<div><br></div><div>> <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Yup. Can you help me build gcc? That is a non-trivial task.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Sure thing:</span></div><div><ol><li><font face="arial, sans-serif">Download gcc 4.8.2 from <a>here</a>.</font></li>
<li><font face="arial, sans-serif">Unpack it somewhere. You can run a command sequence like:</font></li><ol><li><font face="arial, sans-serif">mkdir ~/src</font></li><li><font face="arial, sans-serif">cd src</font></li>
<li>
<font face="arial, sans-serif">tar xjf ~/Downloads/gcc-4.8.2.tar.bz2</font></li><li><font face="arial, sans-serif"># the above will dump the gcc 4.8.2 source tree in ~/src/gcc-4.8.2</font></li></ol><li><font face="arial, sans-serif">Make sure you have packages installed that gcc will want.</font></li>
<ol><li><font face="arial, sans-serif">I think you only need to install libmpc-dev to get what is needed beyond build-essential. Run something like this: sudo apt-get install build-essential libmpc-dev.</font></li><li><font face="arial, sans-serif">If you run the next step (configure) and it blows up, send me the output and I'll figure out what's missing. There are really only a few minor packages and I think that's the only one I have to install beyond the basic build tools.</font></li>
</ol><li><font face="arial, sans-serif">Configure gcc</font></li><ol><li><font face="arial, sans-serif">We're going to install this in /usr/local/gcc/gcc-4.8.2. You'll have to adjust some of the commands below if you want this to go somewhere else. This will be the install dir for the compiler.</font></li>
<li><font face="arial, sans-serif">Run the following sequence of commands</font></li><ol><li><font face="arial, sans-serif">cd ~/src</font></li><li><font face="arial, sans-serif">mkdir build-gcc-4.8.2</font></li><li><font face="arial, sans-serif">cd build-gcc-4.8.2</font></li>
<li><font face="arial, sans-serif">../gcc-4.8.2/configure --prefix=/usr/local/gcc/gcc-4.8.2</font></li></ol></ol><li><font face="arial, sans-serif">Build and install gcc</font></li><ol><li><font face="arial, sans-serif">Run the following sequence</font></li>
<ol><li><font face="arial, sans-serif"># assumes you're still in ~/src/build-gcc-4.8.2</font></li><li><font face="arial, sans-serif">make</font></li><li><font face="arial, sans-serif">sudo make install</font></li></ol>
</ol><ol>
</ol><li><font face="arial, sans-serif">Adjust your environment variables</font></li><ol><li><font face="arial, sans-serif">vim/emacs ~/.bashrc</font></li><li><font face="arial, sans-serif">add the following lines to the bottom of your .bashrc file:</font></li>
</ol></ol></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"></blockquote></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:'courier new',monospace">export PATH=/usr/local/gcc/gcc-4.8.2/</span><span style="font-family:'courier new',monospace">bin:$PATH<br>
</span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><span style="font-family:'courier new',monospace">export LD_LIBRARY_PATH=/usr/local/</span><span style="font-family:'courier new',monospace">gcc/gcc-4.8.2/lib64:$LD_</span><span style="font-family:'courier new',monospace">LIBRARY_PATH</span></blockquote>
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"></blockquote><br><font face="arial, helvetica, sans-serif">At this point you can restart your shell and you should have </font><span style="font-family:arial,helvetica,sans-serif">a gcc 4.8.2 gcc/g++ compiler that gets picked up ahead of the Ubuntu 12.04 gcc 4.6.3. Verify this by running "g++ --version" at the command prompt. It should say that it is version 4.8.2. If for some reason you don't get that to happen, make sure your .bash_profile (or .profile) is picking up the .bashrc file, and make sure we got all the paths right for where you installed gcc 4.8.2.</span><div>
<div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"></div></div></div><div><br></div><div>From here you should be able to run an LLDB configure/make or cmake/ninja build.</div><div><br></div><div>
Let me know if you hit any trouble with that.</div><div><br></div><div>Sincerely,</div><div>Todd Fiala</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 5, 2014 at 7:47 PM, Thiago Farina <span dir="ltr"><<a href="mailto:tfarina@chromium.org" target="_blank">tfarina@chromium.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Off-list.<br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Sat, Apr 5, 2014 at 10:13 PM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Ok cool. That's our standard OS over here.<div>
<br></div><div>I'd recommend:</div><div><br></div><div>1. building a gcc 4.8.2 from source. A standard download, unpack, mkdir on a parallel build dir, configure --prefix=/some/install/path, etc. to give you a gcc 4.8.2 on Ubuntu 12.04. Let me know if you have trouble with that</div>
</div></blockquote></div><div>Yup. Can you help me build gcc? That is a non-trivial task.</div><div class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>. The key here is that you'll get a functional libstdc++ that will work for the later steps in addition to sufficient c++11 support. You'll need to add the install lib64 path to your LD_LIBRARY_PATH and similarly for linker -L options on the linker command line.</div>
</div></blockquote></div><div>Can you specify this lib64 step?</div><div class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div></div><div>2. build the latest cmake release from source and install somewhere local. The latest available for Ubuntu 12.04 I think gave me errors since it was too old.</div><div><br></div></div></blockquote>
</div><div>I do also build cmake from source already.</div><div class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div></div><div>3. grab a configure buildable libedit (we get it from <a href="http://thrysoee.dk/editline/" target="_blank">here</a>). You might be able to survive with libedit-dev from Ubuntu 12.04 now, but for a while that was not sufficient. If you build it, you'll need to add the lib64 path to your LD_LIBRARY_PATH, and a -L for the lib path and -I for the header path.</div>
<div><br></div></div></blockquote></div><div>OK</div><div class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div></div><div>4. Not sure exactly where you got your ninja, build I found on Ubuntu < 13.10 I have to install it from source. You may have a valid route too, that's just been my experience.</div>
<div>
<br></div></div></blockquote></div><div>I build ninja since its beginning from <a href="https://github.com/martine/ninja.git" target="_blank">https://github.com/martine/ninja.git</a> :)</div></div><span class="HOEnZb"><font color="#888888"><div>
<br></div>-- <br><div dir="ltr">Thiago Farina</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>