Skip to content

[BUG]: Source install fails when cmake defaults to Ninja generator #84

@jacobhinkle

Description

@jacobhinkle

Version

1.3.0

Version

13.3

Which installation method(s) does this occur on?

Source

Describe the bug.

I am running an Ubuntu 24.04 image which has CMake 3.28.3 and by default it is creating a build/build.ninja instead of build/Makefile, which fails because setup.py explicitly uses make -C <build_dir> instead of cmake --build <build_dir>.

Minimum reproducible example

Relevant log output

-- Configuring done (0.2s)
      -- Generating done (0.0s)
      -- Build files have been written to: /opt/pytorch/cutile-python/build
      make -C /opt/pytorch/cutile-python/build -j 1
      make: Entering directory '/opt/pytorch/cutile-python/build'
      make: *** No targets specified and no makefile found.  Stop.
      make: Leaving directory '/opt/pytorch/cutile-python/build'
      error: command '/usr/bin/make' failed with exit code 2

Full env printout

Other/Misc.

No response

Contributing Guidelines

  • I agree to follow cuTile Python's contributing guidelines
  • I have searched the open bugs and have found no duplicates for this bug report

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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