Modify

Opened 2 years ago

Last modified 2 years ago

#1907 new defect

bug in configuration of pthread

Reported by: Todd Wegner <twwegner@…> Owned by:
Priority: unset Milestone:
Component: EinsteinToolkit thorn Version: development version
Keywords: Cc: twwegner@…

Description

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

Attachments (1)

detect.sh (4.0 KB) - added by Frank Löffler 2 years ago.

Download all attachments as: .zip

Change History (2)

Changed 2 years ago by Frank Löffler

Attachment: detect.sh added

comment:1 Changed 2 years ago by Frank Löffler

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?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from (none) to the specified user.
Next status will be 'confirmed'.
The owner will be changed from (none) to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.