Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] compilation error with pgcc Unknown switch
From: Abhinav Sarje (asarje_at_[hidden])
Date: 2012-02-10 02:03:49


I tried with 1.5.4 and same compilers, and got the exact same error.
I also tried PGI version 11.10.0, and got the same thing.

On Wed, Feb 8, 2012 at 3:04 AM, Jeff Squyres (jsquyres)
<jsquyres_at_[hidden]> wrote:
> Can you try building 1.5.4 with the same compilers?
>
> Sent from my phone. No type good.
>
> On Feb 7, 2012, at 3:14 PM, "Abhinav Sarje" <asarje_at_[hidden]> wrote:
>
>> I am trying to build open-mpi 1.4.4 (latest stable from open-mpi.org)
>> using PGI compilers on a cray platform. PGI compilers' version is
>> 11.9.0. I get the following error while building:
>> -------------------------------------
>> Making all in tools/wrappers
>> make[2]: Entering directory `{my_installation_directory}/opal/tools/wrappers'
>> source='opal_wrapper.c' object='opal_wrapper.o' libtool=no \
>>    DEPDIR=.deps depmode=none /bin/sh ../../../config/depcomp \
>>    cc "-DEXEEXT=\"\"" -I. -I../../../opal/include
>> -I../../../orte/include -I../../../ompi/include
>> -I../../../opal/mca/paffinity/linux/plpa/src/libplpa   -I../../..
>> -D_REENTRANT  -O -DNDEBUG -fPIC  -c -o opal_wrapper.o opal_wrapper.c
>> /bin/sh ../../../libtool --tag=CC   --mode=link cc  -O -DNDEBUG -fPIC
>> -export-dynamic   -o opal_wrapper opal_wrapper.o
>> ../../../opal/libopen-pal.la -lnsl -lutil
>> libtool: link: cc -O -DNDEBUG -fPIC -o .libs/opal_wrapper
>> opal_wrapper.o --export-dynamic  ../../../opal/.libs/libopen-pal.so
>> -ldl -lnsl -lutil -rpath {my_installation_directory}/lib
>> pgcc-Error-Unknown switch: --export-dynamic
>> make[2]: *** [opal_wrapper] Error 1
>> make[2]: Leaving directory `{my_installation_directory}/opal/tools/wrappers'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `{my_installation_directory}/opal'
>> make: *** [all-recursive] Error 1
>> -------------------------------------
>>
>> I see that the libtool packaged with open-mpi is 2.2.6b
>> When I try to compile this particular part with libtool versions 2.2.6
>> or 2.4, I get the following error:
>> -------------------------------------
>> $ libtool --tag=CC   --mode=link cc  -O -DNDEBUG -fPIC
>> -export-dynamic   -o opal_wrapper opal_wrapper.o
>> ../../../opal/libopen-pal.la -lnsl -lutil
>> libtool: link: cc -O -DNDEBUG -fPIC -o .libs/opal_wrapper
>> opal_wrapper.o -Wl,--export-dynamic
>> ../../../opal/.libs/libopen-pal.so -ldl -lnsl -lutil -Wl,-rpath
>> -Wl,{my_installation_directory}/lib
>> /usr/bin/ld: attempted static link of dynamic object
>> `../../../opal/.libs/libopen-pal.so'
>> -------------------------------------
>>
>> Looking at earlier posts, apparently there was a bug with libtool a
>> couple of years ago because of which the above error occurred. This
>> was fixed in newer releases, but I am getting similar errors.
>>
>> Does anyone have any information on how to fix this, or if I am doing
>> something wrong here?
>>
>> Thanks!
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users