-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling on Windows with gfortran
#1609
Comments
For now, I'll go with the nightly build. :) |
Hi @pya, I see the same error on Windows with the |
Hi @wpbonelli, thanks for the tip. Using the Chocolatey route worked. It compiled on the first try. But many tests fail. Unit tests
Integration tests
I did run:
The not so short test summary info:
Are you intersted in the full test output? |
Running the tests with the nightly build
|
@pya The test failures you are seeing with the nightly build can be resolved by installing the mf2005 and mfnwt executables by running Note that by default, mf6 is configured to build in serial mode only — for more information on building the parallel version see this document. The recommended route to build parallel on Windows is WSL, it is possible with cygwin or msys2 but getting PETSc set up for native Windows is tricky. A serial build on Windows 10 with a recent gfortran (>=10), and the latest flopy should pass all tests however. Please feel free to send the full test output to wbonelli [at] ucar [dot] edu, I am happy to take a look. |
@wpbonelli I used
The warnings are mainly deprecations from NumPy. Looks like a foreshadowing of the upcoming NumPy 2.0:
Usually, I work on macOS and Linux VMs in the cloud. These will work for parallel computations. I am happy with serial MF6 on Windows for now. I am also using WSL. Therefore, I would go for this option if I want to go parallel on Windows. I will send you the pytest output for the test runs with gfortran. |
@pya yes, we have some cleanup work to do for numpy 2 here and in flopy. As of last week flopy pins numpy < 2 so the mf6 conda environment should remain compatible regardless of the timeline, but we anticipate supporting v2 fairly promptly after it's released. I received your email and will take a look. |
Task
I am trying to compile the latest version on Windows.
Operating System
Windows version: Windows 10 Pro, latest updates applied
Steps installing the environment
conda
environment with:mamba env create -f environment.yaml
gfortran
andcmake
with:mamba install -c conda-forge m2w64-toolchain_win-64 cmake
cmake
andgfortran
are found in theconda
environmentwith these versions:
The
meson
version is:Preparing the build
Running this command from the root dir:
Compiling
Running this command from the root dir:
What did I miss?
The text was updated successfully, but these errors were encountered: