This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Runtime LLVM error when using QT (or other graphical libraries) and OpenCL

Other Parts Discussed in Thread: BEAGLEBOARD-X15, AM5728

Hi there,

I've created a shared library which uses OpenCL to offload signal operations to C66x DSPs (I'm using a BeagleBoard-X15 (AM5728)) and a QT based demo app to plot signals in realtime. Without linking my shared library the QT app runs fine (although omapdrm-dri.so can not be found). When I link my lib I'll get the following error: 

test-libaudio-x15: /build/ti-llvm-3.3-DgVvHD/ti-llvm-3.3-3.3-git20150413/include/llvm/Support/CommandLine.h:674: void llvm::cl::parser<DataType>::addLiteralOption(const char*, const DT&, const char*) [with DT = llvm::ScheduleDAGInstrs* (*)(llvm::MachineSchedContext*); DataType = llvm::ScheduleDAGInstrs* (*)(llvm::MachineSchedContext*)]: Assertion »findOption(Name) == Values.size() && "Option already exists!"« failed.

I'll get the same error when only linking OpenCL in my QT app as well. I've also tried to use SDL => same problem. So I think there is some conflict between OpenCL and OpenGL or something other graphic related.

Can somebody help me to find a solution for that?

Thanks a lot!