alibaba / euler

A distributed graph deep learning framework.
Apache License 2.0
2.89k stars 559 forks source link

2.0-master源码编译找不到gremlin.tab.c文件 #265

Open lixusign opened 4 years ago

lixusign commented 4 years ago

CMake Error at cmake/euler_core.cmake:14 (add_library): Cannot find source file:

euler/parser/gremlin.tab.c
zakheav commented 4 years ago

是不是没有装bison, flex?看看你的编译完整log

lixusign commented 4 years ago

CMake Error at cmake/euler_core.cmake:14 (add_library): Cannot find source file:

euler/parser/gremlin.tab.c

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx Call Stack (most recent call first): CMakeLists.txt:66 (include)

CMake Error at euler/parser/CMakeLists.txt:8 (add_library): Cannot find source file:

gremlin.tab.c

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

CMake Error at cmake/euler_core.cmake:14 (add_library): No SOURCES given to target: euler_core Call Stack (most recent call first): CMakeLists.txt:66 (include)

CMake Error at euler/parser/CMakeLists.txt:8 (add_library): No SOURCES given to target: gen_lex

lixusign commented 4 years ago

euler/core/index/range_sample_index.h:349:37: required from ‘bool euler::RangeSampleIndex<T1, T2>::Deserialize(euler::FileIO*) [with T1 = unsigned int; T2 = float]’ /sources/euler/euler/core/index/index_manager.cc:204:1: required from here /usr/include/c++/4.8.2/bits/stl_algo.h:2245:19: error: passing ‘const euler::RangeSampleIndex<unsigned int, float>::Pair’ as ‘this’ argument of ‘bool euler::RangeSampleIndex<T1, T2>::Pair::operator<(const euler::RangeSampleIndex<T1, T2>::Pair&) [with T1 = unsigned int; T2 = float]’ discards qualifiers [-fpermissive] make[2]: [CMakeFiles/euler_core.dir/euler/core/index/index_manager.cc.o] Error 1 make[1]: [CMakeFiles/euler_core.dir/all] Error 2 make: *** [all] Error 2

还有这里也出错

zakheav commented 4 years ago

g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 cmake version 3.10.2 这个版本是可以编译的,你更新一下试试

ergouy commented 3 years ago

请问有没有安装教程,我按照官方教程安装完总是少东西0.0