#1907: bug in configuration of pthread
| Reporter: | anonymous |
| Status: | resolved |
| Milestone: | |
| Version: | development version |
| Type: | bug |
| Priority: | minor |
| Component: | EinsteinToolkit thorn |
Changes (by Roland Haas):
| status: | resolved (was new) |
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,
Todd
Keyword:
Comment (by Roland Haas):
x86_64-linux-gnu has been added. Special case of #2133
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/1907/bug-in-configuration-of-pthread