Spud build fails with OpenMPI compilers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Spud |
New
|
Undecided
|
Unassigned |
Bug Description
When built on a system running Ubuntu LTS 12.04 with system OpenMPI, the following set of commands:
bzr co lp:spud
cd spud
CC=mpicc FC=mpif90 CXX=mpicxx ./configure
make
fails with:
libtool: link: mpif90 -shared -fPIC .libs/spud.o .libs/spud_
/usr/bin/ld: cannot find -l/usr/
collect2: ld returned 1 exit status
make: *** [libspud.la] Error 1
tmb1@rubik:
I.e. looks to be either putting an empty -l , or failing to entirely remove a -l<something>.
This is reproduceable on a redhat system and looks to be a reasonably general failure.
This appears to be linked to the use of -rpath in the Makefile.in at line 58:
./libtool --mode=link --tag=FC $(FC) $(FCFLAGS) -o $(LIB) $(OBJS) $(LIBS) -rpath @prefix@/lib
Without the -rpath specified, the build completes fine.