biometrics / openbr

Open Source Biometrics, Face Recognition
www.openbiometrics.org
Other
2.85k stars 773 forks source link

Compilation error - classification/lda.cpp.o #478

Closed andreaolivato closed 8 years ago

andreaolivato commented 8 years ago

OS: Debian Jessie Kernel: 3.16.0-4-amd64 OpenCV: opencv-2.4.13

Short Error

[ 4%] Building CXX object openbr/CMakeFiles/openbr.dir/plugins/classification/lda.cpp.o In file included from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/Core:248:0, from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/Dense:1, from /root/openbr/openbr/plugins/classification/lda.cpp:17: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/Core/util/Memory.h: In function ‘Index Eigen::internal::first_aligned(const Scalar*, Index)’: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/Core/util/Memory.h:449:48: warning: typedef ‘Packet’ locally defined but not used [-Wunused-local-typedefs] typedef typename packet_traits<Scalar>::type Packet; ^ In file included from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/Core:324:0, from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/Dense:1, from /root/openbr/openbr/plugins/classification/lda.cpp:17: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/Core/products/SelfadjointMatrixVector.h: In static member function ‘static void Eigen::internal::selfadjoint_matrix_vector_product<Scalar, Index, StorageOrder, UpLo, ConjugateLhs, ConjugateRhs, Version>::run(Index, const Scalar*, Index, const Scalar*, Index, Scalar*, Scalar)’: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/Core/products/SelfadjointMatrixVector.h:38:44: warning: typedef ‘RealScalar’ locally defined but not used [-Wunused-local-typedefs] typedef typename NumTraits<Scalar>::Real RealScalar; ^ In file included from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/QR:26:0, from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/Dense:4, from /root/openbr/openbr/plugins/classification/lda.cpp:17: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/QR/HouseholderQR.h: In function ‘void Eigen::internal::householder_qr_inplace_blocked(MatrixQR&, HCoeffs&, typename MatrixQR::Index, typename MatrixQR::Scalar*)’: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/QR/HouseholderQR.h:235:41: warning: typedef ‘RealScalar’ locally defined but not used [-Wunused-local-typedefs] typedef typename MatrixQR::RealScalar RealScalar; ^ In file included from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/Eigenvalues:28:0, from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/Dense:7, from /root/openbr/openbr/plugins/classification/lda.cpp:17: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/Eigenvalues/Tridiagonalization.h: In function ‘void Eigen::internal::tridiagonalization_inplace(MatrixType&, DiagonalType&, SubDiagonalType&, bool)’: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/Eigenvalues/Tridiagonalization.h:428:38: warning: typedef ‘Index’ locally defined but not used [-Wunused-local-typedefs] typedef typename MatrixType::Index Index; ^ In file included from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/Eigenvalues:34:0, from /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/Dense:7, from /root/openbr/openbr/plugins/classification/lda.cpp:17: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/Eigenvalues/ComplexSchur.h: In static member function ‘static void Eigen::internal::complex_schur_reduce_to_hessenberg<MatrixType, false>::run(Eigen::ComplexSchur<MatrixType>&, const MatrixType&, bool)’: /root/openbr/3rdparty/eigen-eigen-5097c01bcdc4/Eigen/src/Eigenvalues/ComplexSchur.h:312:66: warning: typedef ‘ComplexMatrixType’ locally defined but not used [-Wunused-local-typedefs] typedef typename ComplexSchur<MatrixType>::ComplexMatrixType ComplexMatrixType; ^ 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.9/README.Bugs> for instructions. openbr/CMakeFiles/openbr.dir/build.make:7099: recipe for target 'openbr/CMakeFiles/openbr.dir/plugins/classification/lda.cpp.o' failed make[2]: *** [openbr/CMakeFiles/openbr.dir/plugins/classification/lda.cpp.o] Error 4 CMakeFiles/Makefile2:981: recipe for target 'openbr/CMakeFiles/openbr.dir/all' failed make[1]: *** [openbr/CMakeFiles/openbr.dir/all] Error 2 Makefile:147: recipe for target 'all' failed make: *** [all] Error 2

Any clue what's missing?

andreaolivato commented 8 years ago

Sorry, this was really stupid. The plugin compilation needed more RAM, I had to increase it to have the compilation go smoothly.