Boost logo

Boost-Build :

Subject: [Boost-build] Translating mpicxx output into command line args
From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2009-11-27 14:20:10


I've attached part of the bjam.log output from nightly trunk tests to
demonstrate a problem with how the build system translates mpicxx -
show output into Boost-build link line arguments.

[ output from mpicxx -show ]

<linkflags>-Wl,-rpath <linkflags>-Wl,/home/sntools/extras/mpi/
mpich-1.2.7p1-gcc-4.4.1-64Bit/lib <linkflags>-Wl,-rpath <linkflags>-
<linkflags>-Wl,-rpath <linkflags>-Wl,/home/sntools/extras/compilers/

The mpicxx output is not correctly translated into link line
arguments by Boost-build. Here you can see that the above mpicxx -
show output is converted to these invalid link line arguments.

-Wl,-rpath -Wl,/home/sntools/extras/compilers/gcc-4.4.1/lib -Wl,/home/
sntools/extras/compilers/gcc-4.4.1/lib64 -Wl,/home/sntools/extras/mpi/

Notice the missing -Wl,-rpath before the second and third library
paths (plus the secondary issue that the library search directories
have been reordered). A fair number of MPI tests fail because of
this error. Does anyone know of a clever way to fix this?


-- Noel

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at