Anup,
On 10/01/13 11:16, Anup Kini wrote:
Hi All,
I am using linaro-precise-ubuntu-desktop-20120626 on my ZYNQ ZC702 board which has an ARM Cortex-A9 dual core processor.
I am trying to compile Point Cloud Library and its dependent libraries like FLANN, VTK, EIGEN etc.. which are basically c++ libraries. The compiler crashes with the following error msg and i am unable to figure out where the problem is.
linaro@linaro-ubuntu-desktop:~/flann/flann-1.8.3-src/build$ make install [ 33%] Building CXX object src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o In file included from /home/linaro/flann/flann-1.8.3-src/src/cpp/flann/algorithms/kmeans_index.h:51:0, from /home/linaro/flann/flann-1.8.3-src/src/cpp/flann/algorithms/all_indices.h:38, from /home/linaro/flann/flann-1.8.3-src/src/cpp/flann/flann.hpp:45, from /home/linaro/flann/flann-1.8.3-src/src/cpp/flann/flann.h:466, from /home/linaro/flann/flann-1.8.3-src/src/cpp/flann/flann.cpp:31: /home/linaro/flann/flann-1.8.3-src/src/cpp/flann/util/logger.h:73:9: note: the mangling of ‘va_list’ has changed in GCC 4.4 c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-4.6/README.Bugs for instructions. make[2]: *** [src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o] Error 4 make[1]: *** [src/cpp/CMakeFiles/flann_s.dir/all] Error 2 make: *** [all] Error 2 linaro@linaro-ubuntu-desktop:~/flann/flann-1.8.3-src/build$
Let me know if someone has faced similar issue or has any solution for this.
I'm afraid I don't have enough information to give much help here. However, here are some ideas:
c++: internal compiler error: Killed (program cc1plus)
One of the causes of this is that the compiler has run out of available memory. How much memory do you have on your machine?
There are other possibilities though - so can you try and reproduce the failure outside of the make file?
It looks to me as if you are using cmake so do make VERBOSE=1 and grep the output for the g++ command line that builds flann.cpp.
Then in the build directory repeat that command adding -save-temps on the command-line. This should create a *.ii file in the current directory which contains the preprocessed source.
Try compiling the *.ii file to see if it generates the failure. If it does then please file a bug against gcc-linaro in Launchpad (if the GCC you are using is Linaro GCC) - if it isn't please file a bug in the appropriate place for that GCC distribution. Attach the *.ii file in the bug report as this will enable others to try and reproduce the problem.
Thanks,
Matt