You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build with make on macOS and it fails, while exactly the same cmake recipe with Ninja works just fine. Building with make in single thread also works. This is reproducible for me with command from build instruction or by running python setup.py bdist_wheel.
> make -j8
...
make[2]: *** No rule to make target `tools/mlir/python/dialects/_affine_ops_gen.py', needed by `tools/torch-mlir/python_packages/torch_mlir/torch_mlir/dialects/_affine_ops_gen.py'. Stop.
make[1]: *** [tools/torch-mlir/python/CMakeFiles/TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.affine.ops_gen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target `tools/mlir/python/dialects/_bufferization_ops_gen.py', needed by `tools/torch-mlir/python_packages/torch_mlir/torch_mlir/dialects/_bufferization_ops_gen.py'. Stop.
make[1]: *** [tools/torch-mlir/python/CMakeFiles/TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.bufferization.ops_gen.dir/all] Error 2
make[2]: *** No rule to make target `tools/mlir/python/dialects/_builtin_ops_gen.py', needed by `tools/torch-mlir/python_packages/torch_mlir/torch_mlir/dialects/_builtin_ops_gen.py'. Stop.
make[1]: *** [tools/torch-mlir/python/CMakeFiles/TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.builtin.ops_gen.dir/all] Error 2
make: *** [all] Error 2
I'm not sure why Ninja handle dependencies correctly, while make doesn't. I'm not sure how to debug this. Any ideas?
If it's not fixed, we should probably use Ninja in setup.py as well.
The text was updated successfully, but these errors were encountered:
I'm trying to build with
make
on macOS and it fails, while exactly the same cmake recipe withNinja
works just fine. Building withmake
in single thread also works. This is reproducible for me with command from build instruction or by runningpython setup.py bdist_wheel
.My cmake config command:
I'm not sure why
Ninja
handle dependencies correctly, whilemake
doesn't. I'm not sure how to debug this. Any ideas?If it's not fixed, we should probably use
Ninja
insetup.py
as well.The text was updated successfully, but these errors were encountered: