Looking for some help with a compilation issue that pops up on a fresh install of Jetpack 2.1 on a TX1. I am trying to compile a bunch of c++ code that has been working fine on our TK1 platforms. On the TX1, however, I am getting the following error:
*** Error in '/usr/bin/c++': double free or corruption (top): 0x000a69e8 ***
I tried to compile with gcc-4.9 so I could use the -mtune=cortex-a57 flag (wasn’t working with the gcc-4.8 version that came with the JetPack), but it still gives the same error. I am also using the -march=armv8-a flag…
Anyone have any ideas what could be the reason for this or how to resolve the problem? I have never seen this kind of error before…
For me editing ALL the CMake files (there were dependencies) with the following did the trick. Although I did note that you mentioned you had this already… Might be worth checking it is getting handled correctly. Not sure if the CXX11 is related.
I had the same error on rpg_vikit and as suggested by RMZNobody, editing the CMakeList.txt files worked.
However, the only edit I had to make was to replace “native” by “armv8-a”. No need for c++11 on my side.