Rate This Document
Findability
Accuracy
Completeness
Readability

"cannot stat `../bin/d[agm]*'" Displayed During Compilation

Symptom

When Allwmake is run to compile Scotch, the compilation fails and the following message is displayed:

"cp: cannot stat `../bin/d[agm]*': No such file or directory
make: [install] Error 1 (ignored)"

Key Process and Cause Analysis

This error is not caused by d[agm]. Generally, this error occurs when the Scotch directory is not cleared before the installation program is rerun. You can run the make distclean command in the Scotch source code directory and then manually install the Scotch program.

Conclusion and Solution

  1. Delete the path of the file that fails to be installed.

    linuxARM64GccDPInt32 is named based on the installation environment architecture and compiler. You need to change it to the actual path.

    rm -rf /path/to/OPENFOAM/ThirdParty-v1906/platforms/linuxARM64GccDPInt32/scotch_6.0.6/

  2. Go to the Scotch source code directory and manually compile and install the software.

    To manually install Scotch, you need to set the installation path to the one that is deleted previously.

    make scotch

    make esmumps

    make ptscotch

    make prefix=/path/to/OPENFOAM/ThirdParty-v1906/platforms/linuxARM64GccDPInt32/scotch_6.0.6/ install

  3. Run the Allwmake script again to continue the compilation and installation.

    foam

    ./Allwmake -j