Skip to content

cmake fails to create the silo_f77.inc symlink #501

Closed

Description

@yurivict

This line fails to create a symlink in the STAGEDIR.

cmake itself can't properly install files into the stagedir because it doesn't know what STAGEDIR is at the time of configuration.
You should create this symlink during build and then install it using the cmake's install instruction.

Activity

  1. markcmiller86 commented on Nov 23, 2025

    @markcmiller86
    Member

    Hmm....not seeing this in the various places I build and install. For example, with Silo-4.12.0.tar.gz, cmake 3.28 on ubuntu 24.04...

    tar xvf Silo-4.12.0.tar.gz
    cd Silo-4.12.0
    mkdir cmake_build
    cd cmake_build
    cmake -DCMAKE_INSTALL_PREFIX=`pwd`/my_install -DSILO_BUILD_FOR_BSD_LICENSE:BOOL=OFF \
     -DSILO_ENABLE_HDF5:BOOL=ON -DSILO_ENABLE_FPZIP:BOOL=ON -DBUILD_TESTING:BOOL=ON \
    -DSILO_HDF5_DIR:PATH=/mnt/nvme/mark/silo/hdf5-2.0.0/cmake_build/my_install \
    -DSILO_ENABLE_SILOCK:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DSILO_ENABLE_PYTHON_MODULE:BOOL=ON \
    -DSILO_ENABLE_INSTALL_LITE_HEADERS=ON -DSILO_ENABLE_HZIP:BOOL=ON -DSILO_ENABLE_ZFP:BOOL=ON ..
    make -k -j 8 install
    ls -l my_install/include
    -rw-rw-r-- 1 mark mark  26781 Nov 23 11:49 lite_pdb.h
    -rw-rw-r-- 1 mark mark  14625 Nov 23 11:49 lite_score.h
    -rw-rw-r-- 1 mark mark  22780 Nov 20 21:30 pmpio.h
    -rw-rw-r-- 1 mark mark 122270 Nov 23 11:49 silo.h
    -rw-rw-r-- 1 mark mark  30471 Nov 20 21:30 silo.inc
    -rw-rw-r-- 1 mark mark    536 Nov 23 11:49 silo_FC.h
    -rw-rw-r-- 1 mark mark    353 Nov 20 21:30 silo_exports.h
    lrwxrwxrwx 1 mark mark      8 Nov 23 11:50 silo_f77.inc -> silo.inc
    -rw-rw-r-- 1 mark mark  25940 Nov 20 21:30 silo_f9x.inc
    
  2. markcmiller86 commented on Nov 26, 2025

    @markcmiller86
    Member

    Is this report by any chance in relation to Spack?

  3. yurivict commented on Nov 26, 2025

    @yurivict
    Author

    Is this report by any chance in relation to Spack?

    No.

  4. markcmiller86 commented on Nov 26, 2025

    @markcmiller86
    Member

    @yurivict I was hoping my attempts to communicate here would result in more than just a one word response...maybe some details about what is going wrong at your end. As you can see, I am not reproducing the behavior you see. And, I have no more details to go on. Can you please provide more details? Like, cmake version and command you've given to Silo? What do you mean by STAGEDIR? The line you refer to does not have any reference to a CMake variable named STAGEDIR. Anything else you can think of that might result in different behavior than what I am seeing (in multiple different places I have tried it now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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