gcc crash while building c++ libs

Bug #1098198 reported by Anup Kini
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Confirmed
Undecided
Unassigned

Bug Description

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

--- cut above this --

No need to remake target `../src/cpp/flann/flann.hpp'.
       Pruning file `src/cpp/CMakeFiles/flann_s.dir/flags.make'.
      Finished prerequisites of target file
`src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o'.
     Must remake target `src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o'.
make[2]: Entering directory `/home/linaro/flann/flann-1.8.3-src/build'
/usr/bin/cmake -E cmake_progress_report
/home/linaro/flann/flann-1.8.3-src/build/CMakeFiles 3
Putting child 0x00040958 (src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o)
PID 3390 on the chain.
Live child 0x00040958 (src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o)
PID 3390
[ 33%] Reaping winning child 0x00040958 PID 3390
Live child 0x00040958 (src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o)
PID 3391
Building CXX object src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o
Reaping winning child 0x00040958 PID 3391
*cd /home/linaro/flann/flann-1.8.3-src/build/src/cpp && /usr/bin/c++

-D_FLANN_VERSION=1.8.3 -DFLANN_STATIC -fopenmp -O2 -g
-I/home/linaro/flann/flann-1.8.3-src/src/cpp -Wall -Wno-unknown-pragmas
-Wno-unused-function -fPIC -o CMakeFiles/flann_s.dir/flann/flann.cpp.o -c
/home/linaro/flann/flann-1.8.3-src/src/cpp/flann/flann.cpp*

Live child 0x00040958 (src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o)
PID 3393
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
virtual memory exhausted: Cannot allocate memory
Reaping losing child 0x00040958 PID 3393 *

make[2]: *** [src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.o] Error 1
Removing child 0x00040958 PID 3393 from chain.
make[2]: Leaving directory `/home/linaro/flann/flann-1.8.3-src/build'
Reaping losing child 0x00045828 PID 3389
make[1]: *** [src/cpp/CMakeFiles/flann_s.dir/all] Error 2
Removing child 0x00045828 PID 3389 from chain.
make[1]: Leaving directory `/home/linaro/flann/flann-1.8.3-src/build'
Reaping losing child 0x000382c0 PID 3385
make: *** [all] Error 2
Removing child 0x000382c0 PID 3385 from chain.
linaro@linaro-ubuntu-desktop:~/flann/flann-1.8.3-src/build$

GCC --version = gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
Free space = 5.3 gb
total space = 7.4 gb

The free commands retuns the following details.
                              total used free shared buffers cached
                Mem: 1029884 440069 589016 0 16364 138784
-/+ buffers/cache : 284920 744164
swap: 0 0 0

let me know if i can provide any further details.
Also, let me know if i am missing something to avoid this error.

Revision history for this message
Matthew Gretton-Dann (matthew-gretton-dann) wrote :

Can you please attach the *.ii file generated by executing the G++ command with -save-temps added.

Based on report above something like:

$ cd /home/linaro/flann/flann-1.8.3-src/build/src/cpp && /usr/bin/c++ -D_FLANN_VERSION=1.8.3 -DFLANN_STATIC -fopenmp -O2 -g -I/home/linaro/flann/flann-1.8.3-src/src/cpp -Wall -Wno-unknown-pragmas -Wno-unused-function -fPIC -o MakeFiles/flann_s.dir/flann/flann.cpp.o -c /home/linaro/flann/flann-1.8.3-src/src/cpp/flann/flann.cpp -save-temps

The *.ii file will probably be in the /home/linaro/flann/flann-1.8.3-src/build/src/cpp directory.

Revision history for this message
Anup Kini (akini) wrote :

I have attached he *.ii file.

Viktor (vchong)
Changed in gcc-linaro:
status: New → Confirmed
Revision history for this message
Yvan Roux (yvan-roux) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.