I encountered a linker error (LNK1107) while building _moose.cp311-win_amd64.pyd on Windows using clang++, following the instructions in WindowsBuild.md. The error indicates that the file external\libsoda\libsoda.a is invalid or corrupt. The detailed error message is as follows:
external\libsoda\libsoda.a : fatal error LNK1107: invalid or corrupt file: cannot read at 0xC9E4
clang++: error: linker command failed with exit code 1107 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Steps to Reproduce
micromamba create -n moose meson ninja meson-python gsl hdf5 numpy matplotlib pkg-config pybind11[global] clang -c conda-forge
micromamba activate moose
git clone https://github.com/BhallaLab/moose-core --depth 50
pip install .
cd moose-core
meson setup --wipe _build -Duse_mpi=false --buildtype=release
ninja -v -C _build
Here is the full error