When building OpenCV with TBB on Jetson TK1, I am hit by the problems similar to https://stackoverflow.com/a/35998110/3154588 and Assembler messages: Error: thumb conditional instruction should be in IT block -- `strexeq r1,r2,[r4]'.
However, I can't really figure out how to add -Wa,-mimplicit-it=thumb to solve the problem. I add it to CMakelists.txt file in OpenCV file, just before CMAKE_CXX_FLAGS, but it doesn't help.
/tmp/ccDH2kIW.s: Assembler messages:
/tmp/ccDH2kIW.s:715: Error: thumb conditional instruction should be in IT block -- strexeq r1,r2,[r4]'
/tmp/ccDH2kIW.s:1316: Error: thumb conditional instruction should be in IT block --
strexeq r1,r2,[r4]'
/tmp/ccDH2kIW.s:5706: Error: thumb conditional instruction should be in IT block -- strexeq r1,r2,[r4]'
/tmp/ccDH2kIW.s:6001: Error: thumb conditional instruction should be in IT block --
strexeq r6,r5,[r4]'
/tmp/ccDH2kIW.s:6636: Error: thumb conditional instruction should be in IT block -- `strexeq r1,r3,[r7]'