[petsc-dev] Configure problem on Titan
Jed Brown
jed at jedbrown.org
Wed Mar 11 23:11:43 CDT 2015
Aron Ahmadia <aron at ahmadia.net> writes:
> On Wed, Mar 11, 2015 at 11:54 PM, Jed Brown <jed at jedbrown.org> wrote:
>
>>
>> So where are you going to find -lstdc++ and/or -lgfortran so that you
>> can link without guessing?
>
>
> mpicc -link_info
Assuming you meant mpicxx:
$ mpicxx -link_info # Open MPI has sane behavior
/usr/bin/ld: cannot find -link_info
collect2: error: ld returned 1 exit status
$ /opt/mpich/bin/mpicxx -link_info # MPICH cannot link the printing library libink_info.so
g++ -I/opt/mpich/include -L/opt/mpich/lib -lmpicxx -Wl,-rpath -Wl,/opt/mpich/lib -Wl,--enable-new-dtags -lmpi
> mpif90 -link_info
$ /opt/mpich/bin/mpif90 -link_info
gfortran -I/opt/mpich/include -I/opt/mpich/include -L/opt/mpich/lib -lmpifort -Wl,-rpath -Wl,/opt/mpich/lib -Wl,--enable-new-dtags -lmpi
> You do have to know how to query the compiler script. I thought you guys
> were already doing this...
I'll repeat my question: where are you going to find -lstdc++ and/or
-lgfortran so that you can link without guessing?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150311/0bd4fce2/attachment.sig>
More information about the petsc-dev
mailing list