dthuerck / mapmap_cpu

A high-performance general-purpose MRF MAP solver, heavily exploiting SIMD instructions.
BSD 3-Clause "New" or "Revised" License
102 stars 51 forks source link

Compile error: internal compiler error: Segmentation fault #35

Open zjuzly opened 2 years ago

zjuzly commented 2 years ago

When I include mapmap into my project, it report internal compiler error: Segmentation fault. The detail error information: " In file included from /usr/local/include/opencv2/core.hpp:3281:0, from /usr/local/include/opencv2/opencv.hpp:52, from /mnt/dev/myproject/src/test_mapmap.h:11, from /mnt/dev/myproject/src/test_mapmap.cc:13: /usr/local/include/opencv2/core/utility.hpp: In instantiation of 'class cv::TLSData': /usr/local/include/opencv2/core/utility.hpp:1247:26: required from here /usr/local/include/opencv2/core/utility.hpp:764:17: internal compiler error: Segmentation fault

    inline void gather(std::vector<T*> &data) const
             ^

Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-5/README.Bugs for instructions. " While the error missing when I comment the reference to mapmap. I try to change the opencv version to 4.1, unfortunately it report the same error!

The gcc version: gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010 opencv: 3.4.0

Looking forward to your reply!

dthuerck commented 1 year ago

Wow, I have never seen a segfault in the compiler. Could you please try another compiler, e.g., clang?