- Assume that you already have quite recent version of
gcc
-
install
binutils
-
get recent version of https://ftp.gnu.org/gnu/binutils/
cd ~ mkdir src
-
copy this file to
src
directorycd src tar zxvf binutils-2.31.tar.gz cd binutils ./configure --prefix=$HOME/usr/ --enable-shared --enable-64-bit-bfd make make install
-
Add
PATH
for $HOME/usr/local/binutils
-
-
Follow command to build mpiP :
CFLAGS
are needed to avoidconfig.h
error in binutils. read this
CFLAGS="-DPACKAGE=mpiP -DPACKAGE_VERSION=3.4.1" ./configure --prefix=$HOME/usr --with-binutils-dir=$HOME/usr/local/binutils --enable-demangling=GNU --with-wtime
make
make shared
make install
- Change your code Makefile to link with
mpiP
CCFLAGS=-I$(HOME)/usr/local/binutils/include -I$(HOME)/usr/include -DMPIIO
LIBS=-lmpiP -lbfd -liberty -lm -lunwind
LDFLAGS=-L$(HOME)/usr/local/binutils/lib -L$(HOME)/usr/lib -Wl,-rpath,$(HOME)/usr/local/binutils/lib