首页 > 解决方案 > ubunt16.04中的fblualib安装

问题描述

我正在尝试fblualib从此链接安装。

当我在./install_all.sh里面跑时fblualib,我有错误

+ echo Building folly
Building folly
+ echo

+ cd /tmp/fblualib-build.zofU4g/folly/folly
+ autoreconf -ivf
autoreconf: 'configure.ac' or 'configure.in' is required

根据此处的最后讨论,有一个讨论为“基于自动工具的构建系统已从 Folly 中删除,以支持 CMake,因此您需要使用 CMake 而不是 autotools 构建 Folly。” 所以我去愚蠢的文件夹

/tmp/fblualib-build.zofU4g/folly/build and try to build using `cmake`.

然后我有错误

[ 36%] Building CXX object CMakeFiles/folly_base.dir/folly/detail/ThreadLocalDetail.cpp.o
In file included from /tmp/fblualib-build.zofU4g/folly/folly/detail/ThreadLocalDetail.h:33:0,
                 from /tmp/fblualib-build.zofU4g/folly/folly/detail/ThreadLocalDetail.cpp:16:
/tmp/fblualib-build.zofU4g/folly/folly/SharedMutex.h: In static member function ‘static void folly::threadlocal_detail::StaticMetaBase::onThreadExit(void*)’:
/tmp/fblualib-build.zofU4g/folly/folly/SharedMutex.h:457:33: error: ‘*((void*)& rlock +10)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         !tryUnlockSharedDeferred(token.slot_)) {
                                 ^
/tmp/fblualib-build.zofU4g/folly/folly/detail/ThreadLocalDetail.cpp:169:31: note: ‘*((void*)& rlock +10)’ was declared here
       SharedMutex::ReadHolder rlock(nullptr);
                               ^
cc1plus: all warnings being treated as errors
CMakeFiles/folly_base.dir/build.make:1886: recipe for target 'CMakeFiles/folly_base.dir/folly/detail/ThreadLocalDetail.cpp.o' failed
make[2]: *** [CMakeFiles/folly_base.dir/folly/detail/ThreadLocalDetail.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/folly_base.dir/all' failed
make[1]: *** [CMakeFiles/folly_base.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

错误发生在SharedMutex.h,可能是什么>

标签: c++11pytorchtorchfbconnectautoreconf

解决方案


推荐阅读