Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7374

cmake: 3.20.2-4 throws ninja: error: dependency cycle: src/ceph-volume/setup.py -> src/ceph-volume/setup.py

    • rhel-sst-pt-llvm-rust-go
    • ssg_platform_tools
    • 12
    • 15
    • 2
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • If docs needed, set a value
    • None

      see, e.g., https://cbs.centos.org/koji/taskinfo?taskID=3073264 or more specifically the end of https://cbs.centos.org/kojifiles/work/tasks/3264/3073264/build.log where $subject is thrown

      using cmake-3.24.2-1 works (e.g. see https://cbs.centos.org/koji/taskinfo?taskID=3073579. Even if the build fails later for other reasons.)

      Curiously, cmake-3.20.2-4 in Stream 9 doesn't exhibit the same error. Perhaps a cmake expert can figure out why?

      +++ This bug was initially created as a clone of Bug #2059188 +++

      Description of problem: several (of my) packages that built previously on rawhide with cmake-3.22.0 now don't build.

      E.g. https://kojipkgs.fedoraproject.org//work/tasks/6197/83316197/build.log (https://koji.fedoraproject.org/koji/taskinfo?taskID=83316197) fails with
      Error: /builddir/build/BUILD/nfs-ganesha-4.0/src/redhat-linux-build is not a directory

      Other packages like ceph now fail with the same error.

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:

      Expected results:

      Additional info:

      — Additional comment from Kaleb KEITHLEY on 2022-02-28 15:14:32 UTC —

      If I disable the subdir build (with '%global __cmake_in_source_build 1' then with ceph builds I also get the following:
      ninja: error: dependency cycle: src/ceph-volume/setup.py -> src/ceph-volume/setup.py

      — Additional comment from Fedora Update System on 2022-03-02 22:11:53 UTC —

      FEDORA-2022-a48185dae6 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-a48185dae6

      — Additional comment from Fedora Update System on 2022-03-02 22:12:40 UTC —

      FEDORA-2022-a48185dae6 has been pushed to the Fedora 37 stable repository.
      If problem still persists, please make note of it in this bug report.

      — Additional comment from Miro Hrončok on 2022-03-02 22:24:43 UTC —

      Sorry about that. I've put "Related: rhbz#2059201, rhbz#2059188, rhbz#2057738" in the changelog and Bodhi closed this

      — Additional comment from Ben Cotton on 2022-08-09 13:13:24 UTC —

      This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
      Changing version to 37.

            [RHEL-7374] cmake: 3.20.2-4 throws ninja: error: dependency cycle: src/ceph-volume/setup.py -> src/ceph-volume/setup.py

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (cmake bug fix and enhancement update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHBA-2024:2224

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (cmake bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:2224

            SanityOnly verification: There is neither a reproducer nor original logs. cmake-3.24.2-1 allegedly fixes the issue.

            Lenka Špačková added a comment - SanityOnly verification: There is neither a reproducer nor original logs. cmake-3.24.2-1 allegedly fixes the issue.

            Will updating to cmake 3.22 fix the issue? Do you need the fix in RHEL8, RHEL9 or both?

            Thomas Stellard added a comment - Will updating to cmake 3.22 fix the issue? Do you need the fix in RHEL8, RHEL9 or both?

            pm-rhel added a comment -

            Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

            pm-rhel added a comment - Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

            (In reply to Tom Stellard from comment #2)
            > Is this still an issue?

            Yes, it's still an issue. Builds still fail in cmake using the cmake from appstream.

            Kaleb Keithley (Inactive) added a comment - (In reply to Tom Stellard from comment #2) > Is this still an issue? Yes, it's still an issue. Builds still fail in cmake using the cmake from appstream.

            Is this still an issue?

            Thomas Stellard added a comment - Is this still an issue?

            Timm Baeder added a comment -

            > +++ This bug was initially created as a clone of Bug #2059188 +++

            That bug and this one are different though, right?

            I don't think we have a real cmake expert unfortunately (and if Tom is, he is out for the rest of the year).
            It does sound like cmake is at fault here (since an upgrade fixes the problem), but is this really the first
            ceph build since that cmake package hit the buildroot? Serge pushed the update mid-2021.

            Can you work around the problem by switching back to make files instead?

            Timm Baeder added a comment - > +++ This bug was initially created as a clone of Bug #2059188 +++ That bug and this one are different though, right? I don't think we have a real cmake expert unfortunately (and if Tom is, he is out for the rest of the year). It does sound like cmake is at fault here (since an upgrade fixes the problem), but is this really the first ceph build since that cmake package hit the buildroot? Serge pushed the update mid-2021. Can you work around the problem by switching back to make files instead?

              tstellar@redhat.com Thomas Stellard
              kkeithle@redhat.com Kaleb Keithley (Inactive)
              Lenka Špačková Lenka Špačková
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: