I recently go my Tx1 up and running using Jetpack 2.1. I am now attempting to compile some software for a robotic application (SLAM) and am running into an issue with cmake (output below). Cmake tests to see if the compiler support C++11 and fails with a “double free or corruption (top)” error. I am wondering if my compiler doesn’t actually support C++11 or if it is different error. How can I check that my compiler supports C++11 or not?
I have also read that the particular error may be caused due to low RAM or swap space. Is this likely? If so it looks like I may have to recompile the kernel to enable swap.
Any help would be greatly appreciated. BTW, I am using Linux tegra-ubuntu 3.10.67-g458d45c
– The C compiler identification is GNU 4.8.4
– The CXX compiler identification is GNU 4.8.4
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
Build type: Release
– Performing Test COMPILER_SUPPORTS_CXX11
*** Error in /usr/bin/c++': double free or corruption (top): 0x0009b7a8 *** -- Performing Test COMPILER_SUPPORTS_CXX11 - Failed -- Performing Test COMPILER_SUPPORTS_CXX0X *** Error in
/usr/bin/c++': double free or corruption (top): 0x0009b7a8 ***
– Performing Test COMPILER_SUPPORTS_CXX0X - Failed
CMake Error at CMakeLists.txt:26 (message):
The compiler /usr/bin/c++ has no C++11 support. Please use a different C++
compiler.