[petsc-users] error with libpetsc.so.3.7.4 during make test

Satish Balay balay at mcs.anl.gov
Mon Nov 28 00:15:06 CST 2016


On windows - you need to setup PATH to the location of dll. i.e

PATH=$PATH:/home/Elaine/petsc-3.7.4/arch-mswin-c-debug/lib make PETSC_DIR=/home/Elaine/petsc-3.7.4 PETSC_ARCH=arch-mswin-c-debug test

However fortran examples will fail with a dll build. In this case -
its best to rebuild using configure option --with-shared-libraries=0

Satish

On Sun, 27 Nov 2016, Elaine Tang wrote:

> I finish configured and make petsc on Cygwin.
> 
> Here are the last few lines of the make output:
> 
> 
> 
>           CC
> arch-mswin-c-debug/obj/src/tao/linesearch/impls/owarmijo/owarmijo.o
> 
>           CC arch-mswin-c-debug/obj/src/tao/constrained/impls/ipm/ipm.o
> 
>           CC arch-mswin-c-debug/obj/src/tao/linesearch/impls/unit/unit.o
> 
>           CC
> arch-mswin-c-debug/obj/src/tao/linesearch/impls/gpcglinesearch/gpcglinesearch.o
> 
>           CC
> arch-mswin-c-debug/obj/src/tao/linesearch/interface/dlregis_taolinesearch.o
> 
>           CC
> arch-mswin-c-debug/obj/src/tao/linesearch/interface/ftn-auto/taolinesearchf.o
> 
>           CC
> arch-mswin-c-debug/obj/src/tao/linesearch/interface/taolinesearch.o
> 
>           CC
> arch-mswin-c-debug/obj/src/tao/linesearch/interface/ftn-custom/ztaolinesearchf.o
> 
>           CC
> arch-mswin-c-debug/obj/src/tao/leastsquares/impls/pounders/gqt.o
> 
>           CC
> arch-mswin-c-debug/obj/src/tao/leastsquares/impls/pounders/pounders.o
> 
>      CLINKER
> /home/Elaine/petsc-3.7.4/arch-mswin-c-debug/lib/libpetsc.so.3.7.4
> 
> 
> 
> make[2]: Leaving directory '/home/Elaine/petsc-3.7.4'
> 
> =========================================
> 
> make[1]: Leaving directory '/home/Elaine/petsc-3.7.4'
> 
> Now to check if the libraries are working do:
> 
> make PETSC_DIR=/home/Elaine/petsc-3.7.4 PETSC_ARCH=arch-mswin-c-debug test
> 
> =========================================
> 
> 
> 
> Then I did:
> 
> 
> 
> $ make PETSC_DIR=/home/Elaine/petsc-3.7.4 PETSC_ARCH=arch-mswin-c-debug test
> 
> 
> 
> Output is:
> 
> 
> 
> Running test examples to verify correct installation
> 
> Using PETSC_DIR=/home/Elaine/petsc-3.7.4 and PETSC_ARCH=arch-mswin-c-debug
> 
> Possible error running C/C++ src/snes/examples/tutorials/ex19 with 1 MPI
> process
> 
> See http://www.mcs.anl.gov/petsc/documentation/faq.html
> 
> C:/cygwin64/home/Elaine/petsc-3.7.4/src/snes/examples/tutorials/ex19.exe:
> error while loading shared libraries: libpetsc.so.3.7.4: cannot open shared
> object file: No such file or directory
> 
> -------------------------------------------------------
> 
> Primary job  terminated normally, but 1 process returned
> 
> a non-zero exit code.. Per user-direction, the job has been aborted.
> 
> -------------------------------------------------------
> 
> --------------------------------------------------------------------------
> 
> mpiexec detected that one or more processes exited with non-zero status,
> thus causing
> 
> the job to be terminated. The first process to do so was:
> 
> 
> 
>   Process name: [[46069,1],0]
> 
>   Exit code:    127
> 
> --------------------------------------------------------------------------
> 
> Possible error running C/C++ src/snes/examples/tutorials/ex19 with 2 MPI
> processes
> 
> See http://www.mcs.anl.gov/petsc/documentation/faq.html
> 
> -------------------------------------------------------
> 
> Primary job  terminated normally, but 1 process returned
> 
> a non-zero exit code.. Per user-direction, the job has been aborted.
> 
> -------------------------------------------------------
> 
> C:/cygwin64/home/Elaine/petsc-3.7.4/src/snes/examples/tutorials/ex19.exe:
> error while loading shared libraries: libpetsc.so.3.7.4: cannot open shared
> object file: No such file or directory
> 
> C:/cygwin64/home/Elaine/petsc-3.7.4/src/snes/examples/tutorials/ex19.exe:
> error while loading shared libraries: libpetsc.so.3.7.4: cannot open shared
> object file: No such file or directory
> 
> Possible error running Fortran example src/snes/examples/tutorials/ex5f
> with 1 MPI process
> 
> See http://www.mcs.anl.gov/petsc/documentation/faq.html
> 
> C:/cygwin64/home/Elaine/petsc-3.7.4/src/snes/examples/tutorials/ex5f.exe:
> error while loading shared libraries: libpetsc.so.3.7.4: cannot open shared
> object file: No such file or directory
> 
> -------------------------------------------------------
> 
> Primary job  terminated normally, but 1 process returned
> 
> a non-zero exit code.. Per user-direction, the job has been aborted.
> 
> -------------------------------------------------------
> 
> --------------------------------------------------------------------------
> 
> mpiexec detected that one or more processes exited with non-zero status,
> thus causing
> 
> the job to be terminated. The first process to do so was:
> 
> 
> 
>   Process name: [[38897,1],0]
> 
>   Exit code:    127
> 
> --------------------------------------------------------------------------
> 
> Completed test examples
> 
> =========================================
> 
> Now to evaluate the computer systems you plan use - do:
> 
> make PETSC_DIR=/home/Elaine/petsc-3.7.4 PETSC_ARCH=arch-mswin-c-debug
> streams
> 
> 
> 
> -------------------------------------------------------------------------------------------------------------------------------------------------
> 
> When I navigate to /home/Elaine/petsc-3.7.4/arch-mswin-c-debug/lib/ I did
> find libpetsc.so.3.7.4
> 
> Why is make not able to locate it?
> 
> 
> 
> 
> Thanks!
> 
> Elaine
> 



More information about the petsc-users mailing list