<html>#1907: bug in configuration of pthread
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>anonymous</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>resolved</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>

<p>Changes (by Roland Haas):</p>
<p><table>
<tr><td>status:</td><td>resolved (was new)</td></tr>
</table></p>
<p>There is a problem with
EinsteinToolkit/Cactus/arrangements/ExternalLibraries/pthreads/src/detect.sh
for detection of pthread on Lubuntu 15.04.</p>
<p>I have attached a "fix".</p>
<p>x86_64-linux-gnu needs to be added to libdir in the script
also the following lines need to be commented</p>
<p>#PTHREADS_INC_DIRS=${CCTK_HOME}/lib/sbin/strip-incdirs.sh ${PTHREADS_INC_DIRS})
#PTHREADS_LIB_DIRS=$(${CCTK_HOME}/lib/sbin/strip-libdirs.sh ${PTHREADS_LIB_DIRS})
Not sure the accepted approach to avoid commenting lines.</p>
<p>The following command then needs to be run.
make &lt;config-name&gt;-config PTHREADS_DIR=/usr</p>
<p>It this is useful to anyone, the
dependent packages required to build cactus are
(packages not installed by default installation):</p>
<p>sudo apt-get install ...</p>
<p>build-essential
openmpi-bin
openmpi-doc
 libopenmpi-dev
libpthread-stubs0-dev
zlib1g-dev
pkg-config
gfortran
subversion
git
make</p>
<p>Best Regards,</p>
<p>Todd</p>
<p><strong>Keyword:</strong></p>
<p>Comment (by Roland Haas):</p>
<p>x86_64-linux-gnu has been added. Special case of #2133</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/1907/bug-in-configuration-of-pthread'>https://bitbucket.org/einsteintoolkit/tickets/issues/1907/bug-in-configuration-of-pthread</a></p>
</html>