cmuq-ccl / LA3

LA3: Distributed Big-Graph Analytics
6 stars 1 forks source link

Cannot build the code #6

Closed photoszzt closed 5 years ago

photoszzt commented 5 years ago

I get the following compile error:

src/vprogram/vertex_program_execute.hpp:8:10: fatal error: vprogram/batching/vertex_program.h: No such file or directory
 #include "vprogram/batching/vertex_program.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

If I change the code to "vprogram/vertex_program.h", I get the following error:

In file included from src/vprogram/vertex_program.h:13:0,
                 from src/apps/graph_analytics/degree.h:5,
                 from src/apps/graph_analytics/degree.cpp:6:
src/vector/vertex_vector.h: In member function ‘void VertexVector<Matrix, Array>::allocate_mirrors()’:
src/vector/vertex_vector.h:86:35: error: expected primary-expression before ‘)’ token
       vseg.allocate_mirrors<sink>();  // outgoing
                                   ^
src/vector/vertex_vector.h: In instantiation of ‘void VertexVector<Matrix, Array>::allocate_mirrors() [with bool sink = false; Matrix = CSCMatrix2D<Empty, CSCAnnotation<Empty> >; Array = Communicable<RandomAccessArray<DegState> >]’:
src/vprogram/vertex_program.hpp:161:5:   required from ‘void VertexProgram<W, M, A, S>::initialize() [with W = Empty; M = Empty; A = unsigned int; S = DegState]’
src/vprogram/vertex_program_execute.hpp:16:15:   required from ‘void VertexProgram<W, M, A, S>::execute(uint32_t) [with bool disable_mirroring = false; W = Empty; M = Empty; A = unsigned int; S = DegState; uint32_t = unsigned int]’
src/apps/graph_analytics/degree.cpp:25:15:   required from here
src/vector/vertex_vector.h:86:28: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘bool’ to binary ‘operator<’
       vseg.allocate_mirrors<sink>();  // outgoing
       ~~~~~~~~~~~~~~~~~~~~~^~~~~
src/vector/vertex_vector.h: In instantiation of ‘void VertexVector<Matrix, Array>::allocate_mirrors() [with bool sink = true; Matrix = CSCMatrix2D<Empty, CSCAnnotation<Empty> >; Array = Communicable<RandomAccessArray<DegState> >]’:
src/vprogram/vertex_program.hpp:162:27:   required from ‘void VertexProgram<W, M, A, S>::initialize() [with W = Empty; M = Empty; A = unsigned int; S = DegState]’
src/vprogram/vertex_program_execute.hpp:16:15:   required from ‘void VertexProgram<W, M, A, S>::execute(uint32_t) [with bool disable_mirroring = false; W = Empty; M = Empty; A = unsigned int; S = DegState; uint32_t = unsigned int]’
src/apps/graph_analytics/degree.cpp:25:15:   required from here
src/vector/vertex_vector.h:86:28: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘bool’ to binary ‘operator<’
Makefile:74: recipe for target 'degree' failed
make: *** [degree] Error 1

gcc version: gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0

hmofrad commented 5 years ago

We've been able to eliminate the aforementioned compilation error. Just update your cloned repo and you should be able to compile the code without any error.