-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paddleseg部署linux c++时,按要求要安装yaml-cpp,glog等,但是glog始终在make -j时出错。在多个服务器上尝试失败 #3680
Comments
我现在重新用paddleseg2.9版本,官网给的sh方式链接不上github,用git clone https://gitcode.com/gflags/gflags.git和git clone https://gitee.com/boxingcao/glog.git。安装了yaml,gflags后安装glog,cmake的日志如下: |
我的环境是g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44),下载的预测库manylinux_cpu_avx_mkl_gcc5.4。我把官网test_seg.cc中glog部分注释了。然后执行 sh run_seg_cpu.sh的日志如下: |
问题确认 Search before asking
请提出你的问题 Please ask your question
paddleseg部署linux c++时,按要求要安装yaml-cpp,glog等,但是glog始终在make -j时出错。在多个服务器上尝试失败。日志如下:
[root@iZbp1i9nwh28kh5lxp9vhiZ build]# make -j
Consolidate compiler generated dependencies of target glog_internal
[ 2%] Building CXX object CMakeFiles/glog_internal.dir/src/demangle.cc.o
[ 5%] Building CXX object CMakeFiles/glog_internal.dir/src/logging.cc.o
[ 7%] Building CXX object CMakeFiles/glog_internal.dir/src/raw_logging.cc.o
[ 10%] Building CXX object CMakeFiles/glog_internal.dir/src/symbolize.cc.o
[ 12%] Building CXX object CMakeFiles/glog_internal.dir/src/signalhandler.cc.o
[ 15%] Building CXX object CMakeFiles/glog_internal.dir/src/utilities.cc.o
/root/glog/src/logging.cc:43:24: fatal error: shared_mutex: No such file or directory
#include <shared_mutex>
^
compilation terminated.
In file included from /root/glog/src/symbolize.cc:55:0:
/root/glog/src/symbolize.h: In function ‘constexpr google::glog_internal_namespace_::SymbolizeOptions google::glog_internal_namespace_::operator&(google::glog_internal_namespace_::SymbolizeOptions, google::glog_internal_namespace_::SymbolizeOptions)’:
/root/glog/src/symbolize.h:182:19: error: expected type-specifier
static_cast<std::underlying_type_t>(lhs) &
^
/root/glog/src/symbolize.h:182:19: error: expected ‘>’
/root/glog/src/symbolize.h:182:19: error: expected ‘(’
/root/glog/src/symbolize.h:182:19: error: ‘underlying_type_t’ is not a member of ‘std’
/root/glog/src/symbolize.h:182:58: error: expected primary-expression before ‘>>’ token
static_cast<std::underlying_type_t>(lhs) &
^
/root/glog/src/symbolize.h:183:19: error: expected type-specifier
static_cast<std::underlying_type_t>(rhs));
^
/root/glog/src/symbolize.h:183:19: error: expected ‘>’
/root/glog/src/symbolize.h:183:19: error: expected ‘(’
/root/glog/src/symbolize.h:183:19: error: ‘underlying_type_t’ is not a member of ‘std’
/root/glog/src/symbolize.h:183:58: error: expected primary-expression before ‘>>’ token
static_cast<std::underlying_type_t>(rhs));
^
/root/glog/src/symbolize.h:183:66: error: expected ‘)’ before ‘;’ token
static_cast<std::underlying_type_t>(rhs));
^
/root/glog/src/symbolize.h:183:66: error: expected ‘)’ before ‘;’ token
/root/glog/src/symbolize.h:184:1: error: body of constexpr function ‘constexpr google::glog_internal_namespace_::SymbolizeOptions google::glog_internal_namespace_::operator&(google::glog_internal_namespace_::SymbolizeOptions, google::glog_internal_namespace_::SymbolizeOptions)’ not a return-statement
}
^
/root/glog/src/symbolize.h: In function ‘constexpr google::glog_internal_namespace_::SymbolizeOptions google::glog_internal_namespace_::operator|(google::glog_internal_namespace_::SymbolizeOptions, google::glog_internal_namespace_::SymbolizeOptions)’:
/root/glog/src/symbolize.h:189:19: error: expected type-specifier
static_cast<std::underlying_type_t>(lhs) |
^
/root/glog/src/symbolize.h:189:19: error: expected ‘>’
/root/glog/src/symbolize.h:189:19: error: expected ‘(’
/root/glog/src/symbolize.h:189:19: error: ‘underlying_type_t’ is not a member of ‘std’
/root/glog/src/symbolize.h:189:58: error: expected primary-expression before ‘>>’ token
static_cast<std::underlying_type_t>(lhs) |
^
/root/glog/src/symbolize.h:190:19: error: expected type-specifier
static_cast<std::underlying_type_t>(rhs));
^
/root/glog/src/symbolize.h:190:19: error: expected ‘>’
/root/glog/src/symbolize.h:190:19: error: expected ‘(’
/root/glog/src/symbolize.h:190:19: error: ‘underlying_type_t’ is not a member of ‘std’
/root/glog/src/symbolize.h:190:58: error: expected primary-expression before ‘>>’ token
static_cast<std::underlying_type_t>(rhs));
^
/root/glog/src/symbolize.h:190:66: error: expected ‘)’ before ‘;’ token
static_cast<std::underlying_type_t>(rhs));
^
/root/glog/src/symbolize.h:190:66: error: expected ‘)’ before ‘;’ token
/root/glog/src/symbolize.h:191:1: error: body of constexpr function ‘constexpr google::glog_internal_namespace_::SymbolizeOptions google::glog_internal_namespace_::operator|(google::glog_internal_namespace_::SymbolizeOptions, google::glog_internal_namespace_::SymbolizeOptions)’ not a return-statement
}
^
In file included from /root/glog/src/demangle.cc:43:0:
/root/glog/src/utilities.h:173:27: error: ‘std::enable_if_t’ has not been declared
template <class F, std::enable_if_t<
^
/root/glog/src/utilities.h:173:38: error: expected ‘>’ before ‘<’ token
template <class F, std::enable_if_t<
^
/root/glog/src/utilities.h:210:22: error: enclosing class of constexpr non-static member function ‘google::glog_internal_namespace_::FileDescriptor::operator bool() const’ is not a literal type
constexpr explicit operator bool() const noexcept {
^
/root/glog/src/utilities.h:190:22: note: ‘google::glog_internal_namespace_::FileDescriptor’ is not literal because:
class GLOG_NO_EXPORT FileDescriptor final {
^
/root/glog/src/utilities.h:190:22: note: ‘google::glog_internal_namespace_::FileDescriptor’ has a non-trivial destructor
/root/glog/src/utilities.h:214:17: error: enclosing class of constexpr non-static member function ‘int google::glog_internal_namespace_::FileDescriptor::get() const’ is not a literal type
constexpr int get() const noexcept { return fd_; }
^
/root/glog/src/utilities.h: In member function ‘int google::glog_internal_namespace_::FileDescriptor::release()’:
/root/glog/src/utilities.h:216:35: error: ‘exchange’ is not a member of ‘std’
int release() noexcept { return std::exchange(fd_, InvalidHandle); }
^
/root/glog/src/utilities.h: In function ‘constexpr bool google::glog_internal_namespace_::operator==(const google::glog_internal_namespace_::FileDescriptor&, int)’:
/root/glog/src/utilities.h:243:18: error: call to non-constexpr function ‘int google::glog_internal_namespace_::FileDescriptor::get() const’
return lhs.get() == rhs;
^
/root/glog/src/utilities.h: In function ‘constexpr bool google::glog_internal_namespace_::operator==(const google::glog_internal_namespace_::FileDescriptor&, std::nullptr_t)’:
/root/glog/src/utilities.h:259:11: error: call to non-constexpr function ‘google::glog_internal_namespace_::FileDescriptor::operator bool() const’
return !lhs;
^
/root/glog/src/utilities.h: In function ‘constexpr bool google::glog_internal_namespace_::operator==(std::nullptr_t, const google::glog_internal_namespace_::FileDescriptor&)’:
/root/glog/src/utilities.h:263:11: error: call to non-constexpr function ‘google::glog_internal_namespace_::FileDescriptor::operator bool() const’
return !rhs;
^
后面没贴完。
The text was updated successfully, but these errors were encountered: