Remove the "arch" directory to start with a clean build. If the new build fails then send use the configure and make .log files
On Wed, Apr 26, 2023 at 6:42 AM 권승리 / 학생 / 항공우주공학과 <[email protected]> wrote: > 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 <[email protected]>님이 작성: > >> On Wed, Apr 26, 2023 at 6:02 AM 권승리 / 학생 / 항공우주공학과 <[email protected]> >> 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 : [email protected] >>> 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 : [email protected] > Office : +82-2-880-7389 > C. P : +82-10-4695-1062 >
