Cannot build with PETSc
Dear Maintainers,
I'm currently trying to use this software as the replacement for GetDP since GetDP's matrix assembling is serial and this takes the most time in my program and this software seems to be doing it in parallel by using OpenMP.
My issue is, as stated in the title, I can't build this software with PETSc. I attached the Dockerfile which reproduces the error like the following.
/usr/bin/ld: /petsc-3.14.1/real_mumps_seq/lib/libpetsc.a(err.o): relocation R_X86_64_PC32 against symbol `_ZTISt13runtime_error@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/shared.dir/build.make:1588: libgmshfem.so.1.0.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:1204: CMakeFiles/shared.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
I've found that if I build the library as a static one by modifying CMakeLists.txt, I can build it but still cannot run the test. I think this Dockerfile is not enough to run "make test".
If you have any suggestions to build this software with PETSc and run the demos, please help me.
Best regards,
Kotaro MATSUOKA
Edited by Kotaro Matsuoka