汇编器消息:错误:拇指条件指令应该在 IT 块中 - "strexeq r1,r2,[r4]"



我试图构建。so文件。该文件包含诸如tbb、dlib等库。当我执行我的cpp文件时,异常引发[汇编器消息:错误:拇指条件指令应在IT块中——' strexeq r1,r2,[r4]']。

vector<tbb::atomic<bool> > face_detections_used(face_detections.size());
    if(face_detections_used[detection_ind].compare_and_swap(true, false) == false)
        {
            // Reinitialise the model
                clm_models[model].Reset();
                clm_models[model].detection_success = false;
          detection_success = CLMTracker::DetectLandmarksInVideo(grayscale_image, depth_image, face_detections[detection_ind], clm_models[model], clm_parameters[model]);
            active_models[model] = true;
            break;
            }

我认为这段代码有异常。tbb所需的任何特定cpp标志。有什么想法吗,这对我很有帮助,谢谢

在我的yocto构建中获得了相同的错误,而bitbake 编译,在tbb中添加了CXXFLAGS=" -Wa,-mimplicit-thumb"。Bb 文件帮助了我。你也可以试试TARGET_CXXFLAGS=" -Wa,-mimplicit-thumb"

最新更新