We always always always always need configure.log.<div><br></div><div>    Matt<br><br><div class="gmail_quote">On Thu, Dec 2, 2010 at 8:41 AM, John R. Cary <span dir="ltr"><<a href="mailto:cary@txcorp.com">cary@txcorp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am trying to link facets on a FEN of <a href="http://surveyor.alcf.anl.gov" target="_blank">surveyor.alcf.anl.gov</a>.  It ends<br>

with the error,<br>
<br>
/gpfs/home/projects/facets/surveyor/contrib-xlc-9.0/petsc-3.1-p4-ser/lib/libsuperlu_4.0.a(dldperm.o): In function `dldperm':<br>
/gpfs/home/cary/facetspkgs/builds/petsc-3.1-p4/ser/externalpackages/SuperLU_4.0/SRC/dldperm.c:127: undefined reference to `mc64id_'<br>
/gpfs/home/cary/facetspkgs/builds/petsc-3.1-p4/ser/externalpackages/SuperLU_4.0/SRC/dldperm.c:134: undefined reference to `mc64ad_'<br>
<br>
which indicates that the SuperLU compiled with PETSc did<br>
not get the fortran underscoring flag correct (which should<br>
be no underscore with xlf).  nm shows<br>
<br>
login1.surveyor$ nm /gpfs/home/projects/facets/surveyor/contrib-xlc-9.0/petsc-3.1-p4-ser/lib/libsuperlu_4.0.a | grep mc64<br>
                 U mc64ad_<br>
                 U mc64id_<br>
mc64ad.o:<br>
0000000000000018 D mc64ad<br>
0000000000000030 D mc64bd<br>
0000000000000048 D mc64dd<br>
0000000000000060 D mc64ed<br>
0000000000000078 D mc64fd<br>
0000000000000000 D mc64id<br>
00000000000000c0 D mc64qd<br>
0000000000000090 D mc64rd<br>
00000000000000a8 D mc64sd<br>
00000000000000d8 D mc64ud<br>
00000000000000f0 D mc64wd<br>
                 U mc64ad_<br>
                 U mc64id_<br>
<br>
that the underscored symbol is being called, but the<br>
underscore-free symbol is what was defined.<br>
<br>
My PETSc configure line was<br>
<br>
#!/bin/sh<br>
/gpfs/home/cary/facetspkgs/builds-surveyor-xlc/facetspkgs/petsc-3.1-p4/ser/configure \<br>
  --prefix=/gpfs/home/projects/facets/surveyor/contrib-xlc-9.0/petsc-3.1-p4-ser \<br>
  --with-mpi=0 \<br>
  --with-debugging=0 \<br>
  --with-x=0 \<br>
  --with-cc='xlc_r' \<br>
  --with-cxx='xlC_r' \<br>
  --with-fc='xlf_r' \<br>
  --COPTFLAGS='-O2 -g' \<br>
  --download-superlu \<br>
  --with-lapack-lib=/home/projects/facets/intrepid/contrib/lapack-ser/lib/liblapack.a \<br>
  --with-blas-lib=/home/projects/facets/intrepid/contrib/lapack-ser/lib/libblas.a \<br>
  PETSC_DIR=/gpfs/home/cary/facetspkgs/builds-surveyor-xlc/facetspkgs/petsc-3.1-p4/ser \<br>
  PETSC_ARCH=facets-ser \<br>
  --CFLAGS='-q64 -qlanglvl=redefmac' \<br>
  --CXXFLAGS='-q64 -qlanglvl=redefmac' \<br>
  --FFLAGS='-q64 -qextname=flush' \<br>
  --with-shared=1<br>
<br>
so I think that PETSc had enough info to figure out the underscoring.<br>
Perhaps this is a bug.<br>
<br>
But regardless, is there a workaround?<br>
<br>
Thx....John<br>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>

</div>