unknown symbol "NullDataPtrError" for python binding in Mac OSX
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 736
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 15
Description
I built the latest version of Torch MLIR from sources (SHAID:b6e4725259941c9b334d88060fedb02cad3122ff @ Jul 26 '24) with the following flags with torch (SHAID: 402170b22fb8331d9f15ba236d22e2e4de03b9c8 @ May 16 '24)
Build was successful and upon specifying the python code
```python
from torch_mlir import torchscript
```
I see the following stack trace:
```bash
Muthus-MacBook-Pro:torch-mlir mannamalai$ PYTHONPATH=/usr/local/python_packages/:/Users/mannamalai/devel/llvm-project/build/tools/mlir/python_packages/mlir_core:/Users/mannamalai/devel/torch-mlir/build/python_packages/torch_mlir python3 -m pdb xyz.py
> /Users/mannamalai/devel/torch-mlir/xyz.py(3)()
-> import gc
(Pdb) r
--Return--
> /Users/mannamalai/devel/torch-mlir/xyz.py(6)()->None
-> from torch_mlir import torchscript
(Pdb) n
ImportError: dlopen(/Users/mannamalai/devel/torch-mlir/build/python_packages/torch_mlir/torch_mlir/_mlir_libs/_jit_ir_importer.cpython-312-darwin.so, 0x0002): symbol not found in flat namespace '__ZN3c1021throwNullDataPtrErrorEv'
```
Any suggestions would be helpful on what I maybe doing wrong
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the `from torch_mlir import torchscript` import with the reported macOS `PYTHONPATH`, Torch-MLIR SHA, and PyTorch SHA. Trace the `_jit_ir_importer.cpython-312-darwin.so` loading failure and verify that the matching build no longer reports the missing `__ZN3c1021throwNullDataPtrErrorEv` symbol.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100