baidu / AnyQ

FAQ-based Question Answering System
Apache License 2.0
2.58k stars 669 forks source link

docker和vmware centos7都报一样的错误。 #214

Closed sqin closed 4 years ago

sqin commented 4 years ago

[ 29%] Performing install step for 'extern_xgboost' Makefile:31: MAKE [make] - checked OK src/learner.cc: 在成员函数‘virtual void xgboost::LearnerImpl::SaveModel(xgboost::Json) const’中: src/learner.cc:359:24: 错误:用类型为‘<花括号内的初始值列表>’的右值初始化类型为xgboost::Json&’的非常量引用无效 Json& out { p_out }; ^ src/learner.cc: 在成员函数‘virtual void xgboost::LearnerImpl::SaveConfig(xgboost::Json) const’中: src/learner.cc:422:24: 错误:用类型为‘<花括号内的初始值列表>’的右值初始化类型为xgboost::Json&’的非常量引用无效 Json& out { p_out }; ^ make[3]: [build/learner.o] 错误 1 make[3]: 正在等待未完成的任务.... make[2]: [third_party/xgboost/src/extern_xgboost-stamp/extern_xgboost-install] 错误 2 make[1]: [CMakeFiles/extern_xgboost.dir/all] 错误 2

sqin commented 4 years ago

[root@localhost build]# bison --version bison (GNU Bison) 3.0.4

[root@localhost build]# cmake --version cmake version 3.3.2

[root@localhost build]# g++ --version g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)

sqin commented 4 years ago

已解决#192