LLVM ERROR: Cannot select: intrinsic %llvm.xcore.waitevent.n

Technical questions regarding the XTC tools and programming with XMOS.
Yorick
New User
Posts: 3
Joined: Wed Jan 28, 2015 1:52 pm

LLVM ERROR: Cannot select: intrinsic %llvm.xcore.waitevent.n

Post by Yorick »

Hi,

Getting this error:

Compiling brushed_dc_server.xc

LLVM ERROR: Cannot select: intrinsic %llvm.xcore.waitevent.nonlocal

Stack dump:

0. Running pass 'XCore DAG->DAG Pattern Instruction Selection' on function '@bdc_internal_loop'

C:/XMOS_workspace_local/module_brushed_dc/src/brushed_dc_server.xc: In function `bdc_internal_loop':

C:/XMOS_workspace_local/module_brushed_dc/src/brushed_dc_server.xc:70: warning: unused variable `command'

xmake[1]: *** [.build_Release/m_brushed_dc/src/brushed_dc_server.xc.o] Error 1

xmake: *** [bin/Release/app_demo_brushed_dc_position_control.xe] Error 2




What is going wrong???


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am

Post by mon2 »

Hi Yorick. Not familiar with the specific code but some basic comments:

1) Which tool version are you using to compile the code ? Latest is now 13.2.1

2) From a quick search on the net, the IP appears to be from Synapticon who uses the XMOS components. They also have a similar user forum. For a faster reply you may wish to consider to also post the same details on their user forums.

http://forum.synapticon.com/
Yorick
New User
Posts: 3
Joined: Wed Jan 28, 2015 1:52 pm

Post by Yorick »

Hi,

Thanx for the reply.

I'am using 13.2.1.

I will also post this on the synapticon board.
slava
Member
Posts: 8
Joined: Mon Sep 29, 2014 9:36 am

Post by slava »

Hi,

this error is related to select functions. I cannot backtrack clearly the cause of this error but I believe it started showing up after some Java updates. So in our software we had to remove select functions in order to make the code compile.