FreeFem / FreeFem-sources

FreeFEM source code
https://freefem.org/
Other
746 stars 187 forks source link

Win10 compiling error with MS-MPI +Msys2 latest-version +git : error occuring for lacking libarpack.a file #267

Closed Hsiang-Yj closed 1 year ago

Hsiang-Yj commented 1 year ago

I follow the installation guide website:https://doc.freefem.org/introduction/installation.html#compilation-on-windows, to compile the FreeFem, however something wrong happened. The screenshot of Msys2_MinGW_64 is like the following picture: Inkedbug

Pls tell me how to fix it! Thanks a lot!

prj- commented 1 year ago

You should compile PETSc first, see https://github.com/FreeFem/FreeFem-sources/blob/develop/README.md#freefem. Make sure that you have these pacman packages installed autoconf automake-wrapper bison bsdcpio make git mingw-w64-x86_64-toolchain patch python flex pkg-config pkgfile tar unzip mingw-w64-x86_64-cmake mingw-w64-x86_64-msmpi mingw-w64-x86_64-openblas mingw-w64-x86_64-jq.

Hsiang-Yj commented 1 year ago

Thank you, I try to compile PETS first, but it feedback: no mpicc in (......)as following: 屏幕截图 2023-05-08 094735

Hsiang-Yj commented 1 year ago

My 3rdparty isall download from git:

1

My config.log in FreeFem-sources is below: config.log

prj- commented 1 year ago

Please, make sure that:

  1. you are on a fresh copy of FreeFEM develop branch;
  2. the package mingw-w64-x86_64-msmpi is installed;
  3. you are using a proper --prefix, see again README.md referenced earlier.

You should not use SUDO to install PETSc (which will install ARPACK).

Hsiang-Yj commented 1 year ago

Problem still exists! When compiling PETSc alone.

2debug

prj- commented 1 year ago

You are still not using a fresh FreeFEM develop branch, see https://github.com/FreeFem/FreeFem-sources/blob/b34f967acc05df3d91f4acf102c750518bb2d7ec/3rdparty/getall#L176 And it looks like you installed the wrong Python, so you may want to type export PYTHON=/usr/bin/python in your terminal before make petsc-slepc.

Hsiang-Yj commented 1 year ago

Thank u, I will use a fresh FreeFEM develop branch to have another try, and my python version is 3.10.11, I didn't do some special operation on Python, which already existed in my computer. Did the python suit for this project? 3debug

prj- commented 1 year ago

No, you must use /usr/bin/python, cf. the export command from above. Just run it before make petsc-slepc.

Hsiang-Yj commented 1 year ago

Okay, appreciate for your suggestion. I will try again!

Hsiang-Yj commented 1 year ago

Can you provide me some more suggestion! Thank U very much! 4debug

prj- commented 1 year ago

You are still not using a fresh develop branch...

prj- commented 1 year ago

And you still did not install mingw-w64-x86_64-msmpi. Why ask for advices, if you don't follow the instructions? Once the package is installed, you'll have

$ which mpicc
/mingw64/bin/mpicc

You currently have which: no mpicc.

prj- commented 1 year ago

Can I close the issue or do you still have issues?

Hsiang-Yj commented 1 year ago

Of course. Thank you for your time!

from:iPhone

------------------ Original ------------------ From: Pierre Jolivet @.> Date: Sat,May 13,2023 10:00 PM To: FreeFem/FreeFem-sources @.> Cc: Hsiang-Yj @.>, Author @.> Subject: Re: [FreeFem/FreeFem-sources] Win10 compiling error with MS-MPI+Msys2 latest-version +git : error occuring for lacking libarpack.a file (Issue #267)

Can I close the issue or do you still have issues?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>