[petsc-users] makefile error

­권승리 / 학생 / 항공우주공학과 ksl7912 at snu.ac.kr
Wed Apr 26 09:47:38 CDT 2023


thank you.

As you said, I did run the command. But I didn't remove the "arch"
directory.
//
cd #petcs_dir
make
//
After that, makefile works well.
But errors are occured like as below,

[0]PETSC ERROR: --------------------- Error Message
--------------------------------------------------------------
[0]PETSC ERROR: See https://petsc.org/release/overview/linear_solve_table/
for possible LU and Cholesky solvers
[0]PETSC ERROR: Could not locate solver type mumps for factorization type
LU and matrix type seqaij. Perhaps you must ./configure with
--download-mumps
[0]PETSC ERROR: See https://petsc.org/release/faq/ for trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.18.5, unknown
[0]PETSC ERROR: ./app on a arch-linux-c-debug named ubuntu by ksl Wed Apr
26 04:13:01 2023
[0]PETSC ERROR: Configure options --download-mpich
[0]PETSC ERROR: #1 MatGetFactor() at
/home/ksl/petsc/src/mat/interface/matrix.c:4751
[0]PETSC ERROR: #2 PCFactorSetUpMatSolverType_Factor() at
/home/ksl/petsc/src/ksp/pc/impls/factor/factimpl.c:10
[0]PETSC ERROR: #3 PCFactorSetUpMatSolverType() at
/home/ksl/petsc/src/ksp/pc/impls/factor/factor.c:99
[0]PETSC ERROR: #4 main() at /home/ksl/Downloads/coding_friction/a1.c:737
[0]PETSC ERROR: No PETSc Option Table entries
[0]PETSC ERROR: ----------------End of Error Message -------send entire
error message to petsc-maint at mcs.anl.gov----------

Then, can I download the mumps as the message?

2023년 4월 26일 (수) 오후 8:05, Matthew Knepley <knepley at gmail.com>님이 작성:

> On Wed, Apr 26, 2023 at 6:42 AM ­권승리 / 학생 / 항공우주공학과 <ksl7912 at snu.ac.kr>
> wrote:
>
>> Thank you for your reply.
>>
>> This problem occurred after I downloaded mpich.
>>
>
> This is not the reason. The error say "libpetsc is not located
> in /home/ksl/petsc/arch-linux-c-debug/lib". So there is some reason it is
> not there.
>
>
>> Is there any way  to solve this problem? Or Do I have to reinstall PETSc?
>>
>
> Just rebuild
>
>   cd $PETSC_DIR
>   make
>
>   Thanks,
>
>      Matt
>
>
>> Best regards
>> Seung Lee Kwon
>>
>> 2023년 4월 26일 (수) 오후 7:05, Matthew Knepley <knepley at gmail.com>님이 작성:
>>
>>> On Wed, Apr 26, 2023 at 6:02 AM ­권승리 / 학생 / 항공우주공학과 <ksl7912 at snu.ac.kr>
>>> wrote:
>>>
>>>> Dear developers
>>>>
>>>> Could you recommend the error messages below?
>>>>
>>>> /home/ksl/petsc/arch-linux-c-debug/bin/mpicxx -Wall -Wwrite-strings
>>>> -Wno-strict-aliasing -Wno-unknown-pragmas -Wno-lto-type-mismatch
>>>> -fstack-protector -fvisibility=hidden -g -O0  -I/home/ksl/petsc/include
>>>> -I/home/ksl/petsc/arch-linux-c-debug/include     -o app a1.o a2.o a3.o a4.o
>>>> a5.o -Wl,-rpath,/home/ksl/petsc/arch-linux-c-debug/lib
>>>> -L/home/ksl/petsc/arch-linux-c-debug/lib
>>>> -Wl,-rpath,/home/ksl/petsc/arch-linux-c-debug/lib
>>>> -L/home/ksl/petsc/arch-linux-c-debug/lib
>>>> -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/9
>>>> -L/usr/lib/gcc/x86_64-linux-gnu/9 -lpetsc -llapack -lblas -lpthread -lm
>>>> -lstdc++ -ldl -lmpifort -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s
>>>> -lquadmath -lstdc++ -ldl
>>>> /usr/bin/ld: cannot find -lpetsc
>>>> collect2: error: ld returned 1 exit status
>>>> make: *** [makefile:33: app] Error 1
>>>>
>>>
>>> It could be
>>>
>>> 1) Your build failed, so libpetsc was not produced
>>>
>>> 2) arch-linux-c-debug is not the PETSC_ARCH that you built
>>>
>>>   Thanks,
>>>
>>>      Matt
>>>
>>>
>>>> Best regards
>>>> Seung Lee Kwon
>>>>
>>>> --
>>>> Seung Lee Kwon, Ph.D.Candidate
>>>> Aerospace Structures and Materials Laboratory
>>>> Department of Mechanical and Aerospace Engineering
>>>> Seoul National University
>>>> Building 300 Rm 503, Gwanak-ro 1, Gwanak-gu, Seoul, South Korea, 08826
>>>> E-mail : ksl7912 at snu.ac.kr
>>>> Office : +82-2-880-7389
>>>> C. P : +82-10-4695-1062
>>>>
>>>
>>>
>>> --
>>> What most experimenters take for granted before they begin their
>>> experiments is infinitely more interesting than any results to which their
>>> experiments lead.
>>> -- Norbert Wiener
>>>
>>> https://www.cse.buffalo.edu/~knepley/
>>> <http://www.cse.buffalo.edu/~knepley/>
>>>
>>
>>
>> --
>> Seung Lee Kwon, Ph.D.Candidate
>> Aerospace Structures and Materials Laboratory
>> Department of Mechanical and Aerospace Engineering
>> Seoul National University
>> Building 300 Rm 503, Gwanak-ro 1, Gwanak-gu, Seoul, South Korea, 08826
>> E-mail : ksl7912 at snu.ac.kr
>> Office : +82-2-880-7389
>> C. P : +82-10-4695-1062
>>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
> https://www.cse.buffalo.edu/~knepley/
> <http://www.cse.buffalo.edu/~knepley/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230426/a09c8ed1/attachment.html>


More information about the petsc-users mailing list