Hi Zaheer,<div><br></div><div>I'm cc'ing the list as this is not the first time I am being asked for C++ support for Barrelfish. A full C/C++ cross compiler toolchain has to be built to have full C++ support with the GNU libstd++, templates, etc... So I wrote a document explaining this:</div>
<div><br></div><div><a href="http://redmine.aluzina.org/projects/barrelfish/wiki/Toolchain_from_sources">http://redmine.aluzina.org/projects/barrelfish/wiki/Toolchain_from_sources</a><br></div><div><br></div><div>Having these tools in the PATH, one could in principle download a GNU program that uses the autotools, like GNU bash or others and compile it by the following configure line:<br>
</div><div><br></div><div>./configure --host=x86_64-pc-barrelfish</div><div><br></div><div>Of course, the config.sub file has to be changed to support the barrelfish os target, so the configure script won't complain:</div>
<div><br></div><div><div>@@ -1244,6 +1244,7 @@ case $os in</div><div> <span class="" style="white-space:pre">        </span> | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \</div><div> <span class="" style="white-space:pre">        </span> | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \</div>
<div> <span class="" style="white-space:pre">        </span> | -aos* \</div><div>+<span class="" style="white-space:pre">        </span> | -barrelfish* \</div><div> <span class="" style="white-space:pre">        </span> | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \</div>
<div> <span class="" style="white-space:pre">        </span> | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \</div><div> <span class="" style="white-space:pre">        </span> | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \</div>
</div><div><br></div><div>From this point, if the application fails to compile is probably due to missing posix features in Barrelfish.</div><div><br></div><div>I hope this helps!</div><div>Zeus.</div><div><br></div><div>
<br></div><div>PS. I can copy these instructions to the Barrelfish wiki</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/26 Chothia Zaheer <span dir="ltr"><<a href="mailto:zchothia@student.ethz.ch" target="_blank">zchothia@student.ethz.ch</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Dear Zeus,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have just started my master thesis and will be porting a database engine to<u></u><u></u></p>
<p class="MsoNormal">Barrelfish. I am writing to enquire about the current state of C++ support.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The codebase I will be working on makes extensive use of the STL, macros,<u></u><u></u></p>
<p class="MsoNormal">templates, polymorphism and operator overloading. Are there any special<u></u><u></u></p>
<p class="MsoNormal">considerations or missing features to be mindful of? Also, do you know whether<u></u><u></u></p>
<p class="MsoNormal">Boost works and if so, which components have been ported?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Many thanks and kind regards,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><i><span lang="EN-US">--Zaheer<u></u><u></u></span></i></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Zeus Gómez Marmolejo<br>Barcelona Supercomputing Center<br>PhD student<br><a href="http://www.bsc.es" target="_blank">http://www.bsc.es</a><br><br><br>
</div>