bug in configuration of pthread

Create issue
Issue #1907 resolved
anonymous created an issue

There is a problem with EinsteinToolkit/Cactus/arrangements/ExternalLibraries/pthreads/src/detect.sh for detection of pthread on Lubuntu 15.04.

I have attached a "fix".

x86_64-linux-gnu needs to be added to libdir in the script also the following lines need to be commented

#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.

The following command then needs to be run. make <config-name>-config PTHREADS_DIR=/usr

It this is useful to anyone, the dependent packages required to build cactus are (packages not installed by default installation):

sudo apt-get install ...

build-essential openmpi-bin openmpi-doc libopenmpi-dev libpthread-stubs0-dev zlib1g-dev pkg-config gfortran subversion git make

Best Regards,



Comments (2)

  1. Frank Löffler
    • removed comment

    I've added x86_64-linux-gnu to the searched lib-dirs, but I wonder why the strip-dirs need to be commented out. The directory you mention is a system directory. It should be found without specifying it on the command line, which is the reason we can remove it from the specifically mentioned libdirs. We actually have to do this to avoid system libraries overwriting specific libraries. Can you try with just the change that is currently in 'trunk' (adding x86_64-linux-gnu), and tell what what specifically does not work if not also these two lines you mention are commented (strip-incdirs.sh)?

    PTHREADS_DIR=/usr shouldn't be needed. pthreads intalled in the standard location should be found. Could it be that the detect script cannot find pthreads.h?

  2. Log in to comment