Skip to content

Assertion at init time when loading pyiree.rt: python3: /work/external/llvm-project/llvm/include/llvm/Support/CommandLine.h:851: void llvm::cl::parser<DataType>::addLiteralOption(llvm::StringRef, const DT&, llvm::StringRef) [with DT = llvm::FunctionPass* (*)(); DataType = llvm::FunctionPass* (*)()]: Assertion `findOption(Name) == Values.size() && "Option already exists!"' failed. #2706

Closed

Description

@stellaraccident

python3: /work/external/llvm-project/llvm/include/llvm/Support/CommandLine.h:851: void llvm::cl::parser::addLiteralOption(llvm::StringRef, const DT&, llvm::StringRef) [with DT = llvm::FunctionPass* ()(); DataType = llvm::FunctionPass (*)()]: Assertion `findOption(Name) == Values.size() && "Option already exists!"' failed.
/home/laurenzo/.local/lib/python3.8/site-packages/pyiree/compiler/binding.cpython-38-x86_64-linux-gnu.so(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1a)[0x7f3a47ca5f6a]
/home/laurenzo/.local/lib/python3.8/site-packages/pyiree/compiler/binding.cpython-38-x86_64-linux-gnu.so(_ZN4llvm3sys17RunSignalHandlersEv+0x34)[0x7f3a47ca3ee4]
/home/laurenzo/.local/lib/python3.8/site-packages/pyiree/compiler/binding.cpython-38-x86_64-linux-gnu.so(+0x163f018)[0x7f3a47ca4018]

I suspect that this is because of missing forced symbol hiding that didn't get ported to the cmake build causing the first .so to load with a subset of LLVM symbols to take precedence. In this case, I think it is the AOT_JIT hal backend interfering with the pyiree.compiler.

Activity

  1. added a commit that references this issue on Jul 30, 2020
    b833b77
  2. added a commit that references this issue on Jul 30, 2020
    aafabbc
  3. added a commit that references this issue on Jul 30, 2020
    264b19a
  4. added a commit that references this issue on Jul 30, 2020
    7bb3784
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions