New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[compile error] clang compiler segfaults compiling sac_model_ellipse3d.cpp
#5787
Comments
I don't have a macbook, so I unfortunately can't test this. On our two macos CIs we haven't noticed this so far. |
I also generally suspect memory issues, as that is the only source of compiler segfaults I have ever seen. That's why we are compiling with just one thread here, but of course 1 file alone could also bust the RAM. Maybe the size of |
I have been told though that memory is not running out in this case here, but changing the xcode environment seems to help. |
I have the same issue. Reverted to 14.0.0 and it works fine. It's not a memory issue, looks like a compiler bug. Clang 15 works fine too. |
compilation command:cmake -D CMAKE_INSTALL_PREFIX=/Users/intel/software/3rd/pcl-1.13.1/ -DCMAKE_CXX_STANDARD=20 -DBUILD_CUDA=OFF -DBUILD_GPU=OFF -DBUILD_apps=ON -DBUILD_apps_3d_rec_framework=OFF -DBUILD_apps_cloud_composer=OFF -DBUILD_apps_in_hand_scanner=OFF -DBUILD_apps_modeler=OFF -DBUILD_apps_point_cloud_editor=ON -DBUILD_examples=OFF -DBUILD_features=ON -DBUILD_filters=ON -DBUILD_io=ON -DBUILD_kdtree=ON -DBUILD_keypoints=ON -DBUILD_ml=ON -DBUILD_octree=ON -DBUILD_outofcore=OFF -DBUILD_people=OFF -DBUILD_recognition=ON -DBUILD_registration=ON -DBUILD_segmentation=ON -DBUILD_stereo=ON -DBUILD_surface=ON -DBUILD_tools=ON -DBUILD_tracking=ON -DBUILD_visualization=ON -DBoost_USE_DEBUG_RUNTIME=OFF -DWITH_CUDA=OFF -DWITH_OPENMP=ON -DPCL_ONLY_CORE_POINT_TYPES=ON -DQt5_DIR=/usr/local/Cellar/qt@5/5.15.10_1/lib/cmake/Qt5 -DVTK_DIR=/Users/intel/software/3rd/vtk-9.1.0/lib/cmake/vtk-9.1 -DClangFormat_EXECUTABLE=/usr/local/Cellar/clang-format/16.0.6/bin/clang-format .. Env:macos Ventura 13.5 clang14.0.3 |
|
I see more and more recently Intel macbooks not being able to build PCL with a problem like this:
And several times (unsure if all) the hiccup is this one file. This issue was resolved in one case by downgrading XCode/command line tools. This trace above is XCode 14.3.1 with commandline tools 14.0.3.
To Reproduce
Get an Intel macbook with XCode 14.3.1 and commandline tools 14.0.3.
cmake PCL
6c23c854389ee891847d1219387ba5639ae6c65f
with these flags:and then
make
it. The number of threads makes no difference, but maybe the template depth is related? I did find some time ago that some of the SAC model files cause extremely long compile times, presumably because of template instantiations.Your Environment (please complete the following information):
If PCL was compiled from source or failure in compiling PCL itself:
Additional context
As this is a compiler segfault this is probably more an LLVM/Apple issue, but I'm posting this to raise awareness in the hope someone else has also seen this and might have a solution.
The text was updated successfully, but these errors were encountered: