Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: parsec-3.1.13.0 Cabal-2.4.0.1 Continuing even though the plan contains dangerous reinstalls. Starting primitive-0.6.4.0 Starting binary-0.8.5.1 Building binary-0.8.5.1 Building primitive-0.6.4.0 Completed binary-0.8.5.1 Starting semigroups-0.18.5 Building semigroups-0.18.5 Completed semigroups-0.18.5 Starting transformers-compat-0.6.2 Building transformers-compat-0.6.2 Completed transformers-compat-0.6.2 Starting text-1.2.3.1 Completed primitive-0.6.4.0 Starting vector-0.12.0.2 Building text-1.2.3.1 Building vector-0.12.0.2 Completed text-1.2.3.1 Starting hashable-1.2.7.0 Building hashable-1.2.7.0 Completed hashable-1.2.7.0 Starting constraints-0.10.1 Building constraints-0.10.1 Completed vector-0.12.0.2 Completed constraints-0.10.1 Downloading eigen-3.3.7.0 Downloaded eigen-3.3.7.0 Starting eigen-3.3.7.0 Building eigen-3.3.7.0 Failed to install eigen-3.3.7.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.1/eigen-3.3.7.0-IAQqwRkecHR6mRN8j5D5CS.log ): cabal: Entering directory '/tmp/cabal-tmp-5591/eigen-3.3.7.0' Configuring eigen-3.3.7.0... Preprocessing library for eigen-3.3.7.0.. Building library for eigen-3.3.7.0.. [1 of 8] Compiling Eigen.Internal ( dist/build/Eigen/Internal.hs, dist/build/Eigen/Internal.o ) [2 of 8] Compiling Eigen.Matrix.Mutable ( src/Eigen/Matrix/Mutable.hs, dist/build/Eigen/Matrix/Mutable.o ) [3 of 8] Compiling Eigen.Matrix ( src/Eigen/Matrix.hs, dist/build/Eigen/Matrix.o ) [4 of 8] Compiling Eigen.Parallel ( src/Eigen/Parallel.hs, dist/build/Eigen/Parallel.o ) [5 of 8] Compiling Eigen.Solver.LA ( src/Eigen/Solver/LA.hs, dist/build/Eigen/Solver/LA.o ) [6 of 8] Compiling Eigen.SparseMatrix.Mutable ( src/Eigen/SparseMatrix/Mutable.hs, dist/build/Eigen/SparseMatrix/Mutable.o ) [7 of 8] Compiling Eigen.SparseMatrix ( src/Eigen/SparseMatrix.hs, dist/build/Eigen/SparseMatrix.o ) [8 of 8] Compiling Eigen.Solver.SparseLA ( src/Eigen/Solver/SparseLA.hs, dist/build/Eigen/Solver/SparseLA.o ) cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default] cbits/eigen-sparse.cpp: In function ‘const char* sparse_makeCompressed(void*, void**)’: cbits/eigen-sparse.cpp:65:5: error: error: ‘unique_ptr’ is not a member of ‘std’ std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:72:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(makeCompressed); ^ | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp:65:22: error: error: expected primary-expression before ‘>’ token std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:72:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(makeCompressed); ^ | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp:66:5: error: error: ‘a’ was not declared in this scope a->name();\ ^ | 66 | a->name();\ | ^ cbits/eigen-sparse.cpp:72:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(makeCompressed); ^ | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp: In function ‘const char* sparse_uncompress(void*, void**)’: cbits/eigen-sparse.cpp:65:5: error: error: ‘unique_ptr’ is not a member of ‘std’ std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:73:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(uncompress); ^ | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp:65:22: error: error: expected primary-expression before ‘>’ token std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:73:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(uncompress); ^ | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp:66:5: error: error: ‘a’ was not declared in this scope a->name();\ ^ | 66 | a->name();\ | ^ cbits/eigen-sparse.cpp:73:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(uncompress); ^ | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp: In function ‘const char* sparse_pruned(void*, void**)’: cbits/eigen-sparse.cpp:90:5: error: error: ‘unique_ptr’ is not a member of ‘std’ std::unique_ptr a(new M(*(M*)p)); ^ | 90 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp:90:22: error: error: expected primary-expression before ‘>’ token std::unique_ptr a(new M(*(M*)p)); ^ | 90 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp:91:5: error: error: ‘a’ was not declared in this scope a->prune(T(1)); ^ | 91 | a->prune(T(1)); | ^ cbits/eigen-sparse.cpp: In function ‘const char* sparse_prunedRef(void*, void*, void**)’: cbits/eigen-sparse.cpp:100:5: error: error: ‘unique_ptr’ is not a member of ‘std’ std::unique_ptr a(new M(*(M*)p)); ^ | 100 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp:100:22: error: error: expected primary-expression before ‘>’ token std::unique_ptr a(new M(*(M*)p)); ^ | 100 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp:101:5: error: error: ‘a’ was not declared in this scope a->prune(*(T*)q); ^ | 101 | a->prune(*(T*)q); | ^ cbits/eigen-sparse.cpp: In function ‘const char* sparse_fromMatrix(void*, int, int, void**)’: cbits/eigen-sparse.cpp:176:5: error: error: ‘unique_ptr’ is not a member of ‘std’ std::unique_ptr dst(new M(rows, cols)); ^ | 176 | std::unique_ptr dst(new M(rows, cols)); | ^ cbits/eigen-sparse.cpp:176:22: error: error: expected primary-expression before ‘>’ token std::unique_ptr dst(new M(rows, cols)); ^ | 176 | std::unique_ptr dst(new M(rows, cols)); | ^ cbits/eigen-sparse.cpp:181:17: error: error: ‘dst’ was not declared in this scope dst->insert(row, col) = val; ^ | 181 | dst->insert(row, col) = val; | ^ cbits/eigen-sparse.cpp:184:5: error: error: ‘dst’ was not declared in this scope dst->makeCompressed(); ^ | 184 | dst->makeCompressed(); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_makeCompressed(void*, void**) [with T = float]’: cbits/eigen-sparse.cpp:72:1: error: required from here | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp:65:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:72:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(makeCompressed); ^ | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_makeCompressed(void*, void**) [with T = double]’: cbits/eigen-sparse.cpp:72:1: error: required from here | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp:65:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:72:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(makeCompressed); ^ | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_makeCompressed(void*, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:72:1: error: required from here | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp:65:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:72:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(makeCompressed); ^ | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_makeCompressed(void*, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:72:1: error: required from here | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp:65:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:72:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(makeCompressed); ^ | 72 | SPARSE_UNOP_INPLACE(makeCompressed); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_uncompress(void*, void**) [with T = float]’: cbits/eigen-sparse.cpp:73:1: error: required from here | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp:65:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:73:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(uncompress); ^ | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_uncompress(void*, void**) [with T = double]’: cbits/eigen-sparse.cpp:73:1: error: required from here | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp:65:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:73:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(uncompress); ^ | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_uncompress(void*, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:73:1: error: required from here | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp:65:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:73:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(uncompress); ^ | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_uncompress(void*, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:73:1: error: required from here | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp:65:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p));\ ^ | 65 | std::unique_ptr a(new M(*(M*)p));\ | ^ cbits/eigen-sparse.cpp:73:1: error: note: in expansion of macro ‘SPARSE_UNOP_INPLACE’ SPARSE_UNOP_INPLACE(uncompress); ^ | 73 | SPARSE_UNOP_INPLACE(uncompress); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_pruned(void*, void**) [with T = float]’: cbits/eigen-sparse.cpp:95:1: error: required from here | 95 | API(sparse_pruned, (int code, void* p, void** pr), (p, pr)); | ^ cbits/eigen-sparse.cpp:90:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p)); ^ | 90 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_pruned(void*, void**) [with T = double]’: cbits/eigen-sparse.cpp:95:1: error: required from here | 95 | API(sparse_pruned, (int code, void* p, void** pr), (p, pr)); | ^ cbits/eigen-sparse.cpp:90:39: error: error: ‘a’ was not declared in this scope | 90 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_pruned(void*, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:95:1: error: required from here | 95 | API(sparse_pruned, (int code, void* p, void** pr), (p, pr)); | ^ cbits/eigen-sparse.cpp:90:39: error: error: ‘a’ was not declared in this scope | 90 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_pruned(void*, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:95:1: error: required from here | 95 | API(sparse_pruned, (int code, void* p, void** pr), (p, pr)); | ^ cbits/eigen-sparse.cpp:90:39: error: error: ‘a’ was not declared in this scope | 90 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_prunedRef(void*, void*, void**) [with T = float]’: cbits/eigen-sparse.cpp:105:1: error: required from here | 105 | API(sparse_prunedRef, (int code, void* p, void* q, void** pr), (p, q, pr)); | ^ cbits/eigen-sparse.cpp:100:39: error: error: ‘a’ was not declared in this scope std::unique_ptr a(new M(*(M*)p)); ^ | 100 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_prunedRef(void*, void*, void**) [with T = double]’: cbits/eigen-sparse.cpp:105:1: error: required from here | 105 | API(sparse_prunedRef, (int code, void* p, void* q, void** pr), (p, q, pr)); | ^ cbits/eigen-sparse.cpp:100:39: error: error: ‘a’ was not declared in this scope | 100 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_prunedRef(void*, void*, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:105:1: error: required from here | 105 | API(sparse_prunedRef, (int code, void* p, void* q, void** pr), (p, q, pr)); | ^ cbits/eigen-sparse.cpp:100:39: error: error: ‘a’ was not declared in this scope | 100 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_prunedRef(void*, void*, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:105:1: error: required from here | 105 | API(sparse_prunedRef, (int code, void* p, void* q, void** pr), (p, q, pr)); | ^ cbits/eigen-sparse.cpp:100:39: error: error: ‘a’ was not declared in this scope | 100 | std::unique_ptr a(new M(*(M*)p)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_fromMatrix(void*, int, int, void**) [with T = float]’: cbits/eigen-sparse.cpp:188:1: error: required from here | 188 | API(sparse_fromMatrix, (int code, void* p, int rows, int cols, void** pq), (p,rows,cols,pq)); | ^ cbits/eigen-sparse.cpp:176:45: error: error: ‘dst’ was not declared in this scope std::unique_ptr dst(new M(rows, cols)); ^ | 176 | std::unique_ptr dst(new M(rows, cols)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_fromMatrix(void*, int, int, void**) [with T = double]’: cbits/eigen-sparse.cpp:188:1: error: required from here | 188 | API(sparse_fromMatrix, (int code, void* p, int rows, int cols, void** pq), (p,rows,cols,pq)); | ^ cbits/eigen-sparse.cpp:176:45: error: error: ‘dst’ was not declared in this scope | 176 | std::unique_ptr dst(new M(rows, cols)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_fromMatrix(void*, int, int, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:188:1: error: required from here | 188 | API(sparse_fromMatrix, (int code, void* p, int rows, int cols, void** pq), (p,rows,cols,pq)); | ^ cbits/eigen-sparse.cpp:176:45: error: error: ‘dst’ was not declared in this scope | 176 | std::unique_ptr dst(new M(rows, cols)); | ^ cbits/eigen-sparse.cpp: In instantiation of ‘const char* sparse_fromMatrix(void*, int, int, void**) [with T = std::complex]’: cbits/eigen-sparse.cpp:188:1: error: required from here | 188 | API(sparse_fromMatrix, (int code, void* p, int rows, int cols, void** pq), (p,rows,cols,pq)); | ^ cbits/eigen-sparse.cpp:176:45: error: error: ‘dst’ was not declared in this scope | 176 | std::unique_ptr dst(new M(rows, cols)); | ^ `gcc' failed in phase `C Compiler'. (Exit code: 1) cabal: Leaving directory '/tmp/cabal-tmp-5591/eigen-3.3.7.0' cabal: Error: some packages failed to install: eigen-3.3.7.0-IAQqwRkecHR6mRN8j5D5CS failed during the building phase. The exception was: ExitFailure 1