[Build Error] OpenCV 2.4.13 build error on TX1 Ubuntu 14.04 64bit

I build OpenCV 2.4.13 on TX1, but failed with following error.
According to bellow site, it might be caused by memory shortage.
So, I rebuild with "cmake -D BUILD_opencv_gpu=OFF -D WITH_CUDA=OFF ".
Then I succeded to build it.

http://stackoverflow.com/questions/15161278/compile-opencv-without-gpu

If I want to make GPU enable, should I add memory device on the TX1 ?

[Environment]
Target : Jetson TX1
OS : Ubuntu 14.04 64bit

[Error log]

​[ 55%] Building NVCC (Device) object modules/gpu/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_element_operations.cu.o
gcc-4.8: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
CMake Error at cuda_compile_generated_element_operations.cu.o.cmake:266 (message):
  Error generating file
  /home/ubuntu/Downloads/opencv-2.4.13/release/modules/gpu/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_element_operations.cu.o
make[2]: *** [modules/gpu/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_element_operations.cu.o] Error 1
make[1]: *** [modules/gpu/CMakeFiles/opencv_gpu.dir/all] Error 2
make: *** [all] Error 2

Thanks in advance,
makotoqnb

Hello, makotoqnb:
Please upgrade your device by latest Jetpack 2.3 and try again. This issue should be gone.

br
ChenJian

Hi ChenJian-san,

Thank you for your reply.

I succeeded to build with following cmake option.

​cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_CUDA=ON -D CUDA_ARCH_BIN=“5.2” -D CUDA_ARCH_PTX=“5.2” -D ENABLE_PROFILING=ON -D BUILD_SHARED_LIBS=OFF -D CMAKE_INSTALL_PREFIX=/usr/local …

Thanks,
makotoqnb