Skip to content

Compilation error with pre-release 5.1.0 #1331

Description

@multimeric

Describe your problem

5.1.0 fails to compile when SYCL is false.

Environment:

  • OS: MacOS (unknown version)
  • MPI runtime: OpenMPI 4.1.6
  • RELION version: 5.1.0
  • Memory: 28GB
  • GPU: M4 pro GPU

Dataset:
n/a

Job options:
n/a

Error message:

01:50:08 BIOCONDA INFO (ERR) Running apps/CMakeLists.txt...
01:50:08 BIOCONDA INFO (ERR) CMake Error at src/apps/CMakeLists.txt:515 (target_link_libraries):
01:50:08 BIOCONDA INFO (ERR)   The keyword signature for target_link_libraries has already been used with
01:50:08 BIOCONDA INFO (ERR)   the target "relion_lib".  All uses of target_link_libraries with a target
01:50:08 BIOCONDA INFO (ERR)   must be either all-keyword or all-plain.
01:50:08 BIOCONDA INFO (ERR) 
01:50:08 BIOCONDA INFO (ERR)   The uses of the keyword signature are here:
01:50:08 BIOCONDA INFO (ERR) 
01:50:08 BIOCONDA INFO (ERR)    * src/apps/CMakeLists.txt:226 (target_link_libraries)
01:50:08 BIOCONDA INFO (ERR)    * src/apps/CMakeLists.txt:378 (target_link_libraries)
01:50:08 BIOCONDA INFO (ERR)    * src/apps/CMakeLists.txt:383 (target_link_libraries)
01:50:08 BIOCONDA INFO (ERR)    * src/apps/CMakeLists.txt:388 (target_link_libraries)

Additional Context

I'm the maintainer of the relion bioconda package, and this error came up in the automated upgrade to 5.1.0.

You can view the full build log here: https://app.circleci.com/pipelines/github/bioconda/bioconda-recipes/181326/workflows/99e8353a-6e94-42a6-9150-e8e02f825b3f/jobs/333510?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-checks-link&utm_content=summary.

I note that the error (non-keyword usage of target_link_libraries) seems to still be in the 5.1.0 branch:

target_link_libraries(relion_lib ${OpenMP_omp_LIBRARY})

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