Skip to content

Fatal Linker Error (LNK1107) While Building _moose.cp311-win_amd64.pyd #495

@ashxhuman

Description

@ashxhuman

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 Screenshot 2024-11-28 121253

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions