<div dir="ltr">Matt, Barry<div><br></div><div>Thank you so much for your help. The problem was solved by using --download-parmetis=1 as you pointed. Also thanks for the PETSC_ARCH tip; I was under the impression that each build needs to be in a separate directory. </div>
<div><br></div><div>Thanks again,</div><div>Mohammad<br><br><div class="gmail_quote">On Tue, Jul 26, 2011 at 8:54 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Please do a fresh version of the --download-parmetis run and send the configure.log to <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a> This mailing list is not for large attachments or configure failures.<br>
<br>
To make sure everything is clean please remove /home/mohammad/soft/petsc-3.1-p8-debug and get a new copy of the PETSc tarball first. Note also that there is no need to attach -debug to the name of the directory since this same directory can contain two installs of PETSc by using different PETSC_ARCH names and using different ./configure options for each one.<br>
<font color="#888888"><br>
<br>
<br>
Barry<br>
</font><div><div></div><div class="h5"><br>
On Jul 26, 2011, at 10:43 PM, Mohammad Mirzadeh wrote:<br>
<br>
> Hi all,<br>
><br>
> I am having trouble configuring PETSc 3.1-p8 with ParMetis 3.2 and below (I have tried all of their versions). What I can understand from the configure.log (attached below) is that for some reason PETSc cannot find the libs . I have tried the flag --download-parmetis=/path/to/tar.gz and also tried compiling ParMetis myself and using --with-parmetis-dir=/path/to/build_dir and none seem to work. In the latter case, ParMetis compiles just fine but it does not put the libs and header files under /build_dir/include or /buid_dir/lib.<br>
><br>
> Does using --with-parmetis-include and --with-parmetis-lib work with multiple directory locations? I tried putting all the hear files in one directory but there are multiple header files with the same name and I do not know which one I should use. Any help is greatly appreciated.<br>
><br>
> Thanks,<br>
> Mohammad<br>
><br>
><br>
> ================================================================================<br>
> TEST configureLibrary from PETSc.packages.ParMetis(/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/package.py:370)<br>
> TESTING: configureLibrary from PETSc.packages.ParMetis(config/BuildSystem/config/package.py:370)<br>
> Find an installation and check if it can work with PETSc<br>
> ==================================================================================<br>
> Checking for a functional ParMetis<br>
> Found a copy of PARMETIS in ParMetis-3.2.0<br>
> Pushing language C<br>
> Popping language C<br>
> Have to rebuild ParMetis, make.inc != /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/conf/ParMetis<br>
> ===============================================================================<br>
> Compiling & installing Parmetis; this may take several minutes<br>
> ===============================================================================<br>
><br>
> sh: cd /home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0; make clean; make lib; make minstall; make clean<br>
> Executing: cd /home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0; make clean; make lib; make minstall; make clean<br>
> sh: (cd METISLib ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/METISLib'<br>
> rm -f *.o<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/METISLib'<br>
> (cd ParMETISLib ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/ParMETISLib'<br>
> rm -f *.o<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/ParMETISLib'<br>
> (cd Programs ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/Programs'<br>
> rm -f *.o ;\<br>
> rm -f ../Graphs/ptest3.2.0<br>
> rm -f ../Graphs/mtest3.2.0<br>
> rm -f ../Graphs/parmetis3.2.0<br>
> rm -f ../Graphs/pometis3.2.0<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/Programs'<br>
> (cd METISLib ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/METISLib'<br>
> rm -f *.o<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/METISLib'<br>
> (cd ParMETISLib ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/ParMETISLib'<br>
> rm -f *.o<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/ParMETISLib'<br>
> (cd Programs ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/Programs'<br>
> rm -f *.o ;\<br>
> rm -f ../Graphs/ptest3.2.0<br>
> rm -f ../Graphs/mtest3.2.0<br>
> rm -f ../Graphs/parmetis3.2.0<br>
> rm -f ../Graphs/pometis3.2.0<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/Programs'<br>
><br>
> ********Output of running make on ParMetis follows *******<br>
> (cd METISLib ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/METISLib'<br>
> rm -f *.o<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/METISLib'<br>
> (cd ParMETISLib ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/ParMETISLib'<br>
> rm -f *.o<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/ParMETISLib'<br>
> (cd Programs ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/Programs'<br>
> rm -f *.o ;\<br>
> rm -f ../Graphs/ptest3.2.0<br>
> rm -f ../Graphs/mtest3.2.0<br>
> rm -f ../Graphs/parmetis3.2.0<br>
> rm -f ../Graphs/pometis3.2.0<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/Programs'<br>
> (cd METISLib ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/METISLib'<br>
> rm -f *.o<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/METISLib'<br>
> (cd ParMETISLib ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/ParMETISLib'<br>
> rm -f *.o<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/ParMETISLib'<br>
> (cd Programs ; make clean )<br>
> make[1]: Entering directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/Programs'<br>
> rm -f *.o ;\<br>
> rm -f ../Graphs/ptest3.2.0<br>
> rm -f ../Graphs/mtest3.2.0<br>
> rm -f ../Graphs/parmetis3.2.0<br>
> rm -f ../Graphs/pometis3.2.0<br>
> make[1]: Leaving directory `/home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/Programs'<br>
> make: *** No rule to make target `lib'. Stop.<br>
> make: *** No rule to make target `minstall'. Stop.<br>
> ********End of Output of running make on ParMetis *******<br>
> sh: cp -f /home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/make.inc /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/conf/ParMetis<br>
> Executing: cp -f /home/mohammad/soft/petsc-3.1-p8-debug/externalpackages/ParMetis-3.2.0/make.inc /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/conf/ParMetis<br>
> sh:<br>
> Checking for library in Download PARMETIS: ['/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib/libparmetis.a', 'libmetis.a']<br>
> ================================================================================<br>
> TEST check from config.libraries(/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/libraries.py:133)<br>
> TESTING: check from config.libraries(config/BuildSystem/config/libraries.py:133)<br>
> Checks that the library "libName" contains "funcs", and if it does defines HAVE_LIB"libName"<br>
> - libDir may be a list of directories<br>
> - libName may be a list of library names<br>
> Checking for functions ['ParMETIS_V3_PartKway'] in library ['/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib/libparmetis.a', 'libmetis.a'] ['libnsl.a', 'librt.a']<br>
> Pushing language C<br>
> sh: /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/bin/mpicc -c -o conftest.o -Wall -Wwrite-strings -Wno-strict-aliasing -g3 conftest.c<br>
> Executing: /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/bin/mpicc -c -o conftest.o -Wall -Wwrite-strings -Wno-strict-aliasing -g3 conftest.c<br>
> sh:<br>
> Pushing language C<br>
> Popping language C<br>
> sh: /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/bin/mpicc -o conftest -Wall -Wwrite-strings -Wno-strict-aliasing -g3 conftest.o -Wl,-rpath,/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib -L/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib -lparmetis -lmetis -lnsl -lrt -lmpichcxx -lstdc++ -L/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3 -L/usr/lib/x86_64-linux-gnu -ldl -lmpich -lpthread -lrt -lgcc_s -ldl<br>
> Executing: /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/bin/mpicc -o conftest -Wall -Wwrite-strings -Wno-strict-aliasing -g3 conftest.o -Wl,-rpath,/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib -L/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib -lparmetis -lmetis -lnsl -lrt -lmpichcxx -lstdc++ -L/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3 -L/usr/lib/x86_64-linux-gnu -ldl -lmpich -lpthread -lrt -lgcc_s -ldl<br>
> sh:<br>
> Possible ERROR while running linker: /usr/bin/ld: cannot find -lparmetis<br>
> collect2: ld returned 1 exit status<br>
> output: ret = 256<br>
> error message = {/usr/bin/ld: cannot find -lparmetis<br>
> collect2: ld returned 1 exit status<br>
> }<br>
> Pushing language C<br>
> Popping language C<br>
> in /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/bin/mpicc -o conftest -Wall -Wwrite-strings -Wno-strict-aliasing -g3 conftest.o -Wl,-rpath,/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib -L/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib -lparmetis -lmetis -lnsl -lrt -lmpichcxx -lstdc++ -L/home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3 -L/usr/lib/x86_64-linux-gnu -ldl -lmpich -lpthread -lrt -lgcc_s -ldl<br>
> Source:<br>
> #include "confdefs.h"<br>
> #include "conffix.h"<br>
> /* Override any gcc2 internal prototype to avoid an error. */<br>
> char ParMETIS_V3_PartKway();<br>
><br>
> int main() {<br>
> ParMETIS_V3_PartKway()<br>
> ;<br>
> return 0;<br>
> }<br>
> Popping language C<br>
> *******************************************************************************<br>
> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>
> -------------------------------------------------------------------------------<br>
> Downloaded parmetis could not be used. Please check install in /home/mohammad/soft/petsc-3.1-p8-debug/linux-gnu-c-debug<br>
> *******************************************************************************<br>
> File "./config/configure.py", line 257, in petsc_configure<br>
> framework.configure(out = sys.stdout)<br>
> File "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/framework.py", line 944, in configure<br>
> child.configure()<br>
> File "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/package.py", line 456, in configure<br>
> self.executeTest(self.configureLibrary)<br>
> File "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/base.py", line 97, in executeTest<br>
> ret = apply(test, args,kargs)<br>
> File "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/package.py", line 395, in configureLibrary<br>
> for location, directory, lib, incl in self.generateGuesses():<br>
> File "/home/mohammad/soft/petsc-3.1-p8-debug/config/BuildSystem/config/package.py", line 210, in generateGuesses<br>
> raise RuntimeError('Downloaded '+self.package+' could not be used. Please check install in '+d+'\n')<br>
<br>
</div></div></blockquote></div><br></div></div>