[Bug c++/82985] GCC 7.2.1 crashes when compiling DSO (Direct Sparse Odometry) on Linux Ubuntu 17.10

BlenderEi at LwTV dot de gcc-bugzilla@gcc.gnu.org
Tue Nov 14 14:59:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82985

--- Comment #2 from BlenderEi at LwTV dot de ---
Created attachment 42601
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42601&action=edit
This is an archive containing the preprocessed File that triggered the Bug
(FullSystemOptimize.ii) as well as my console history, because after  I added
CMAKE_CXX_FLAGS "-save-temps" it compiles?!?!

Thank you for your fast reply.
Ok, I have no experience if this is correct, but what I did was:

Added this line to the CMakeLists.txt in the main directory "/dso":
set (CMAKE_CXX_FLAGS "-save-temps")

And with this, it actually compiled the code!!! o.O
But it definitely didnt work before. To prove that, I attached my console
history as well. You can see, that in the beginning the make-command failed.
After I changed the file, the compilation succeeded!

Naturally, now I am even more confused. Could you tell me if I missed a step? I
checked the instruction website you referred me to, but it didnt tell me how to
do this with cmake. So I googled and did my best. Maybe I did a mistake
(although, I don't think so).

If you need anything, please just let me know. Thanks a lot for your help!


More information about the Gcc-bugs mailing list