JuliaPy / JuliaPy/PyCall.jl

LLVM ERROR: inconsistency in registered CommandLine options

Đang mở
#810 15 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Julia
Star
1.5k
Fork
186
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

We have an internal python library that I'm trying to import using PyCall. `pyimport` of one particular module causes julia (v1.5.1) to crash with the error below
```julia
julia> using PyCall

julia> pyimport("cb.log")
: CommandLine Error: Option 'debug-pass' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
```
Importing the same module in python causes no issue
```
(venv) NCC-50446 ~/cblib> python
Python 3.7.9 (default, Aug 18 2020, 02:07:21)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cb.log
>>>
```
I've googled around a bit but can't really understand what the issue is, does the python library link to a different version of LLVM than julia, causing this issue? If so, is there any known workaround?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by reproducing the crash with Julia 1.5.1, PyCall, and pyimport("cb.log"), then compare it with importing cb.log directly in Python as shown. Investigate the interaction between the imported library's LLVM dependencies and Julia's registered CommandLine options. Done means identifying the conflicting component and documenting a verified workaround or compatibility fix.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
julia, python
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
20/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.