Skip to content

Error if CMake tries to configure with read-only source directory #136

Description

@cparrott73

We maintain our internal test suites under Perforce. We have a test suite that builds and tests ScaLAPACK with the NVHPC compilers.

Our suite runs CMake in a separate directory from the source tree, which is stored in the source repo with read-only permissions. When CMake runs this way, we see the following error:

 CMake Error: Unable to (re)create the private pkgRedirects directory:
  /proj/ta/tests/techtips_repo/src/scalapack-2.2.2/BLACS/INSTALL/CMakeFiles/pkgRedirects
This may be caused by not having read/write access to the build directory.
Try specifying a location with read/write access like:
  cmake -B build
If using a CMake presets file, ensure that preset parameter
'binaryDir' expands to a writable directory.


CMake Error at CMAKE/FortranMangling.cmake:33 (MESSAGE):
   Configure in the BLACS INSTALL directory FAILED
Call Stack (most recent call first):
  CMakeLists.txt:133 (COMPILE)


-- Configuring incomplete, errors occurred!

I am working around this for the moment by copying the source tree to a writable location. However, would you consider reworking this to allow configuration against a read-only source tree? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions