<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Greetings people.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Having not used the BGAS machine for the summer and now getting back to it, I did a clean install of many things and setup my system as follows<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">NB. current is r209570-20140527<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> export CLANG_ROOT=/gpfs/bbp.cscs.ch/home/biddisco/apps/clang/bgclang/current<o:p></o:p></p>
<p class="MsoNormal"> export CC=$CLANG_ROOT/bin/clang<o:p></o:p></p>
<p class="MsoNormal"> export CXX=$CLANG_ROOT/bin/clang++<o:p></o:p></p>
<p class="MsoNormal"> export PATH=$CLANG_ROOT/bin:$PATH<o:p></o:p></p>
<p class="MsoNormal"> export LDFLAGS="-dynamic"<o:p></o:p></p>
<p class="MsoNormal"> export CFLAGS="-mcpu=a2 -std=c99"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> export GCC_TOOOLCHAIN=/gpfs/bbp.cscs.ch/home/biddisco/clang/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/include/c++/4.7.2<o:p></o:p></p>
<p class="MsoNormal"> export GCC_TOOLCHAIN_INCLUDE=$GCC_TOOOLCHAIN/powerpc64-bgq-linux<o:p></o:p></p>
<p class="MsoNormal"> export CLANG_LIBCPP=$CLANG_ROOT/libc++/lib<o:p></o:p></p>
<p class="MsoNormal"> export SYS_LIBSTDCPP=/gpfs/bbp.cscs.ch/home/biddisco/clang/V1R2M1_base_4.7.2/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/<o:p></o:p></p>
<p class="MsoNormal"> export CPPFLAGS="-mcpu=a2 --std=c++11 -stdlib=libc++ -I$GCC_TOOOLCHAIN -I$GCC_TOOLCHAIN_INCLUDE -L$CLANG_LIBCPP -L$SYS_LIBSTDCPP -L/bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-linux/lib -lstdc++"<o:p></o:p></p>
<p class="MsoNormal"> export CXXFLAGS=$CPPFLAGS<o:p></o:p></p>
<p class="MsoNormal"> export LD_LIBRARY_PATH=$CLANG_ROOT/libc++/lib:$SYS_LIBSTDCPP:$LD_LIBRARY_PATH<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">and so I’m using c++11, libc++ from clang, and libstdc++ from the 4.7.2 toolchain - and *<b>NOT</b>* using the bgclang wrapper scripts because I’m on the linux IO nodes and not the compute nodes.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Great news is that applications compile link and run. (yay!). Thanks Hal and your colleagues for the ongoing support. (It’s getting like I *<b>almost</b>* know what I’m doing now that I can fool the compiler into working as expected!)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But here’s something interesting : when I gdb a test program, and do a list before running anything, it shows me the ELF init stuff<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">...<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">Reading symbols from /gpfs/bbp.cscs.ch/home/biddisco/bgas/clang/build/skv/skv_server...done.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">(gdb)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">(gdb) list<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">1 /* Startup support for ELF initializers/finalizers in the main executable.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">2 Copyright (C) 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">3 This file is part of the GNU C Library.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">4<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">5 The GNU C Library is free software; you can redistribute it and/or<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">6 modify it under the terms of the GNU Lesser General Public<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">7 License as published by the Free Software Foundation; either<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">8 version 2.1 of the License, or (at your option) any later version.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">9<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">10 In addition to the permissions in the GNU Lesser General Public<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">(gdb) run<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">Starting program: /gpfs/bbp.cscs.ch/home/biddisco/bgas/clang/build/skv/skv_server<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">Missing separate debuginfo for /gpfs/bbp.cscs.ch/home/biddisco/apps/clang/bgclang/current/libc++/lib/libc++.so.1<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">Try: yum --disablerepo='*' --enablerepo='*-debug*' install /usr/lib/debug/.build-id/85/2e450ebcbf27794ca5453b99a9e19311bfe3f4.debug<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New"">[Thread debugging using libthread_db enabled]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal">but as soon as I ‘run’, the node hangs and I have to reboot it.<o:p></o:p></p>
<p class="MsoNormal">It doesn’t do that without the debugger AFAICT.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Am I missing an important SLEEF related issue/link. I have no real clue what sleef is for, but it is prominent in the clang wrappers and maybe I need it for the correct init.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for any advice. (I’ll be googling sleef whilst waiting for the USA to wake up).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">JB<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-GB">--
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-GB">John Biddiscombe, email:biddisco @.at.@ cscs.ch<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-GB"><a href="http://www.cscs.ch/"><span style="color:windowtext">http://www.cscs.ch/</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-GB">CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="IT-CH" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-GB">Via Trevano 131, 6900 Lugano, Switzerland | Fax: +41 (91) 610.82.82<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="IT-CH"><o:p> </o:p></span></p>
</div>
</body>
</html>