JuliaPy / JuliaPy/PyCall.jl

LLVM ERROR: inconsistency in registered CommandLine options

Open
#810 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, python
Domain
tooling
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.