[petsc-users] makefile error

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


Thank you for your reply.

This problem occurred after I downloaded mpich.

Is there any way  to solve this problem? Or Do I have to reinstall PETSc?

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230426/77f665e6/attachment.html>


More information about the petsc-users mailing list