libtool error: only absolute run-paths are allowed

4.3k views Asked by At

Getting this error during "make" in mpich

GEN      lib/libmpi.la
libtool: error: only absolute run-paths are allowed

Compiler being used is clang (the code builds fine with gcc). Any idea what this error could be due to? Here is the configure command:

./configure '--prefix=$PWD/BIN' '--with-device=ch3:nemesis:mxm' '--with-mxm=/home/xyz/software/hpcx-v1.9.5-gcc-inbox-redhat7.3-x86_64/mxm' '--disable-spawn' '--disable-ft-tests' '--enable-g=all' '--enable-nemesis-dbg-localoddeven' '--enable-large-tests' '--disable-perftest' 'CC=clang' 'CXX=clang++' 'FC=gfortran' 'F77=gfortran' --cache-file=/dev/null --disable-fortran
2

There are 2 answers

0
Jon Iles On

I think the issue is the evaluation of $PWD within the quotes. If you replace

./configure '--prefix=$PWD/BIN' ...

with

./configure --prefix=$PWD/BIN ...

you should be good.

0
Hintron On

I ran into this error as well when building a different piece of software. The solution for me was to enclose the shell variable in --prefix= with {}:

./configure --prefix=${PWD}/BIN