[mvapich-discuss] Building with PGI 13.6 and --enable-shared

Jonathan Perkins perkinjo at cse.ohio-state.edu
Wed Jul 17 09:26:48 EDT 2013


On Wed, Jul 17, 2013 at 02:49:50PM +0200, Jiri Kraus wrote:
> Hi,
> 
> I had issue building MVAPICH2-1.9 with PGI 13.6 and shared libraries.
> When I configure MVAPICH2-1.9 with
> 
> CC=pgcc CXX=pgc++ F77=pgf77 FC=pgfortran CPPFLAGS="-D__x86_64 -D__align__\(n\)=__attribute__\(\(aligned\(n\)\)\) -D__location__\(a\)=__annotate__\(a\) -DCUDARTAPI=" ./configure --enable-cuda=basic --enable-shared --disable-mcast --with-cuda=/opt/cuda_5.0 --prefix=/homeb/zam/jkraus/local/mvapich2-1.9/pgi-13.6/cuda-5.0
> 
> It fails during make with:
>   CXXLD    lib/libmpichcxx.la
> pgc++-Error-Unknown switch: -nostdlib
> 
> -nostdlib is a gcc option I think the correct pgi option would be -Mnostdlib.
> 
> For me I could work around this by specifying  --disable-shared
> instead of --enable-shared during configure. I thought it is worth
> posting this here anyway.

Thanks for the note.  We'll investigate this and see if there is
anything we can do within the build system or if additional
documentation is needed in the userguide.

-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo



More information about the mvapich-discuss mailing list