build failed by following "Build Notes" on Ubuntu 24.04 LTS
Opened this issue · 1 comments
run system-deps
(base) eric@eric-System-Product-Name:~/facebook/folly$ sudo ./build/fbcode_builder/getdeps.py install-system-deps --recursive
---
+ sudo \
+ apt \
+ install \
+ -y \
+ autoconf \
+ automake \
+ binutils-dev \
+ cmake \
+ libboost-all-dev \
+ libdouble-conversion-dev \
+ libdwarf-dev \
+ libevent-dev \
+ libgflags-dev \
+ libgmock-dev \
+ libgoogle-glog-dev \
+ libgtest-dev \
+ liblz4-dev \
+ liblzma-dev \
+ libsnappy-dev \
+ libsodium-dev \
+ libtool \
+ libunwind-dev \
+ libzstd-dev \
+ ninja-build \
+ zlib1g-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
autoconf is already the newest version (2.71-3).
automake is already the newest version (1:1.16.5-1.3ubuntu1).
binutils-dev is already the newest version (2.42-4ubuntu2).
cmake is already the newest version (3.28.3-1build7).
libboost-all-dev is already the newest version (1.83.0.1ubuntu2).
libdouble-conversion-dev is already the newest version (3.3.0-1build1).
libdwarf-dev is already the newest version (20210528-1build2).
libevent-dev is already the newest version (2.1.12-stable-9ubuntu2).
libgflags-dev is already the newest version (2.2.2-2build1).
libgmock-dev is already the newest version (1.14.0-1).
libgoogle-glog-dev is already the newest version (0.6.0-2.1build1).
libgtest-dev is already the newest version (1.14.0-1).
liblz4-dev is already the newest version (1.9.4-1build1).
liblzma-dev is already the newest version (5.6.1+really5.4.5-1).
libsnappy-dev is already the newest version (1.1.10-1build1).
libsodium-dev is already the newest version (1.0.18-1build3).
libtool is already the newest version (2.4.7-7build1).
libunwind-dev is already the newest version (1.6.2-3build1).
libzstd-dev is already the newest version (1.5.5+dfsg2-2build1).
ninja-build is already the newest version (1.11.1-2).
zlib1g-dev is already the newest version (1:1.3.dfsg-3.1ubuntu2).
The following packages were automatically installed and are no longer required:
libluajit-5.1-2 libluajit-5.1-common libmsgpackc2 libtermkey1 libtree-sitter0 libunibilium4 libvterm0 lua-luv neovim-runtime python3-greenlet python3-msgpack python3-pynvim xclip
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 73 not upgraded
BTW during the dependency and build process, I notice not all dependencies are listed, so I have installed some additional dependencies, for example:
libssl-dev
sudo apt install mesa-common-dev
sudo apt install libglu1-mesa-dev freeglut3-dev
then run build
$ python3 ./build/fbcode_builder/getdeps.py --allow-system-packages build
...
In function ‘void folly::f14::detail::prefetchAddr(const T*) [with T = std::pair<const folly::test::Tracked<1>, int>*]’,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1540:21,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::find(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1586:20,
inlined from ‘folly::f14::detail::F14BasicMap<Policy>::EnableHeterogeneousFind<K, bool> folly::f14::detail::F14BasicMap<Policy>::contains(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/F14Map.h:919:24,
inlined from ‘folly::f14::detail::F14BasicMap<Policy>::EnableHeterogeneousFind<K, long unsigned int> folly::f14::detail::F14BasicMap<Policy>::count(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/F14Map.h:787:20,
inlined from ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’ at /home/eric/facebook/folly/folly/container/test/F14MapTest.cpp:1776:3:
/home/eric/facebook/folly/folly/container/detail/F14Table.h:428:21: warning: array subscript 10 is outside array bounds of ‘folly::f14::detail::EmptyTagVectorType [1]’ {aka ‘std::aligned_storage<32, 16>::type [1]’} [-Warray-bounds=]
428 | __builtin_prefetch(static_cast<void const*>(ptr));
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/eric/facebook/folly/folly/container/detail/F14Table.h: In function ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’:
/home/eric/facebook/folly/folly/container/detail/F14Table.h:455:40: note: at offset 80 into object ‘folly::f14::detail::kEmptyTagVector’ of size 32
455 | FOLLY_EXPORT extern EmptyTagVectorType kEmptyTagVector;
| ^~~~~~~~~~~~~~~
In member function ‘constexpr const std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) const [with _Tp = std::aligned_storage<8, 8>::type; long unsigned int _Nm = 14]’,
inlined from ‘folly::f14::detail::F14Chunk<ItemType>::Item* folly::f14::detail::F14Chunk<ItemType>::itemAddr(std::size_t) const [with ItemType = std::pair<const folly::test::Tracked<1>, int>*]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:717:62,
inlined from ‘folly::f14::detail::F14Chunk<ItemType>::Item& folly::f14::detail::F14Chunk<ItemType>::item(std::size_t) [with ItemType = std::pair<const folly::test::Tracked<1>, int>*]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:722:25,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1545:13,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::find(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1586:20,
inlined from ‘folly::f14::detail::F14BasicMap<Policy>::EnableHeterogeneousFind<K, bool> folly::f14::detail::F14BasicMap<Policy>::contains(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/F14Map.h:919:24,
inlined from ‘folly::f14::detail::F14BasicMap<Policy>::EnableHeterogeneousFind<K, long unsigned int> folly::f14::detail::F14BasicMap<Policy>::count(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/F14Map.h:787:20,
inlined from ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’ at /home/eric/facebook/folly/folly/container/test/F14MapTest.cpp:1776:3:
/usr/include/c++/13/array:213:24: warning: array subscript ‘const std::array<std::aligned_storage<8, 8>::type, 14>[0]’ is partly outside array bounds of ‘folly::f14::detail::EmptyTagVectorType [1]’ {aka ‘std::aligned_storage<32, 16>::type [1]’} [-Warray-bounds=]
213 | return _M_elems[__n];
| ~~~~~~~~^
/home/eric/facebook/folly/folly/container/detail/F14Table.h: In function ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’:
/home/eric/facebook/folly/folly/container/detail/F14Table.h:455:40: note: at offset 16 into object ‘folly::f14::detail::kEmptyTagVector’ of size 32
455 | FOLLY_EXPORT extern EmptyTagVectorType kEmptyTagVector;
| ^~~~~~~~~~~~~~~
In function ‘void folly::f14::detail::prefetchAddr(const T*) [with T = std::pair<const folly::test::Tracked<1>, int>*]’,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1540:21,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::find(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1586:20,
inlined from ‘folly::f14::detail::F14BasicMap<Policy>::EnableHeterogeneousFind<K, bool> folly::f14::detail::F14BasicMap<Policy>::contains(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/F14Map.h:919:24,
inlined from ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’ at /home/eric/facebook/folly/folly/container/test/F14MapTest.cpp:1777:3:
/home/eric/facebook/folly/folly/container/detail/F14Table.h:428:21: warning: array subscript 10 is outside array bounds of ‘folly::f14::detail::EmptyTagVectorType [1]’ {aka ‘std::aligned_storage<32, 16>::type [1]’} [-Warray-bounds=]
428 | __builtin_prefetch(static_cast<void const*>(ptr));
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/eric/facebook/folly/folly/container/detail/F14Table.h: In function ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’:
/home/eric/facebook/folly/folly/container/detail/F14Table.h:455:40: note: at offset 80 into object ‘folly::f14::detail::kEmptyTagVector’ of size 32
455 | FOLLY_EXPORT extern EmptyTagVectorType kEmptyTagVector;
| ^~~~~~~~~~~~~~~
In member function ‘constexpr const std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) const [with _Tp = std::aligned_storage<8, 8>::type; long unsigned int _Nm = 14]’,
inlined from ‘folly::f14::detail::F14Chunk<ItemType>::Item* folly::f14::detail::F14Chunk<ItemType>::itemAddr(std::size_t) const [with ItemType = std::pair<const folly::test::Tracked<1>, int>*]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:717:62,
inlined from ‘folly::f14::detail::F14Chunk<ItemType>::Item& folly::f14::detail::F14Chunk<ItemType>::item(std::size_t) [with ItemType = std::pair<const folly::test::Tracked<1>, int>*]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:722:25,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1545:13,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::find(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1586:20,
inlined from ‘folly::f14::detail::F14BasicMap<Policy>::EnableHeterogeneousFind<K, bool> folly::f14::detail::F14BasicMap<Policy>::contains(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void>]’ at /home/eric/facebook/folly/folly/container/F14Map.h:919:24,
inlined from ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’ at /home/eric/facebook/folly/folly/container/test/F14MapTest.cpp:1777:3:
/usr/include/c++/13/array:213:24: warning: array subscript ‘const std::array<std::aligned_storage<8, 8>::type, 14>[0]’ is partly outside array bounds of ‘folly::f14::detail::EmptyTagVectorType [1]’ {aka ‘std::aligned_storage<32, 16>::type [1]’} [-Warray-bounds=]
213 | return _M_elems[__n];
| ~~~~~~~~^
/home/eric/facebook/folly/folly/container/detail/F14Table.h: In function ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’:
/home/eric/facebook/folly/folly/container/detail/F14Table.h:455:40: note: at offset 16 into object ‘folly::f14::detail::kEmptyTagVector’ of size 32
455 | FOLLY_EXPORT extern EmptyTagVectorType kEmptyTagVector;
| ^~~~~~~~~~~~~~~
In member function ‘constexpr const std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) const [with _Tp = std::aligned_storage<4, 4>::type; long unsigned int _Nm = 12]’,
inlined from ‘folly::f14::detail::F14Chunk<ItemType>::Item* folly::f14::detail::F14Chunk<ItemType>::itemAddr(std::size_t) const [with ItemType = unsigned int]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:717:62,
inlined from ‘folly::f14::detail::F14Chunk<ItemType>::Item& folly::f14::detail::F14Chunk<ItemType>::item(std::size_t) [with ItemType = unsigned int]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:722:25,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant<bool, false> >]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1545:13,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::find(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant<bool, false> >]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1586:20,
inlined from ‘folly::f14::detail::F14BasicMap<Policy>::EnableHeterogeneousFind<K, bool> folly::f14::detail::F14BasicMap<Policy>::contains(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant<bool, false> >]’ at /home/eric/facebook/folly/folly/container/F14Map.h:919:24,
inlined from ‘folly::f14::detail::F14BasicMap<Policy>::EnableHeterogeneousFind<K, long unsigned int> folly::f14::detail::F14BasicMap<Policy>::count(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant<bool, false> >]’ at /home/eric/facebook/folly/folly/container/F14Map.h:787:20,
inlined from ‘void runHeterogeneousInsertTest() [with M = folly::F14VectorMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’ at /home/eric/facebook/folly/folly/container/test/F14MapTest.cpp:1776:3:
/usr/include/c++/13/array:213:24: warning: array subscript ‘const std::array<std::aligned_storage<4, 4>::type, 12>[0]’ is partly outside array bounds of ‘folly::f14::detail::EmptyTagVectorType [1]’ {aka ‘std::aligned_storage<32, 16>::type [1]’} [-Warray-bounds=]
213 | return _M_elems[__n];
| ~~~~~~~~^
/home/eric/facebook/folly/folly/container/detail/F14Table.h: In function ‘void runHeterogeneousInsertTest() [with M = folly::F14VectorMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’:
/home/eric/facebook/folly/folly/container/detail/F14Table.h:455:40: note: at offset 16 into object ‘folly::f14::detail::kEmptyTagVector’ of size 32
455 | FOLLY_EXPORT extern EmptyTagVectorType kEmptyTagVector;
| ^~~~~~~~~~~~~~~
In member function ‘constexpr const std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) const [with _Tp = std::aligned_storage<4, 4>::type; long unsigned int _Nm = 12]’,
inlined from ‘folly::f14::detail::F14Chunk<ItemType>::Item* folly::f14::detail::F14Chunk<ItemType>::itemAddr(std::size_t) const [with ItemType = unsigned int]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:717:62,
inlined from ‘folly::f14::detail::F14Chunk<ItemType>::Item& folly::f14::detail::F14Chunk<ItemType>::item(std::size_t) [with ItemType = unsigned int]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:722:25,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant<bool, false> >]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1545:13,
inlined from ‘folly::f14::detail::F14Table<Policy>::ItemIter folly::f14::detail::F14Table<Policy>::find(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant<bool, false> >]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1586:20,
inlined from ‘folly::f14::detail::F14BasicMap<Policy>::EnableHeterogeneousFind<K, bool> folly::f14::detail::F14BasicMap<Policy>::contains(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant<bool, false> >]’ at /home/eric/facebook/folly/folly/container/F14Map.h:919:24,
inlined from ‘void runHeterogeneousInsertTest() [with M = folly::F14VectorMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’ at /home/eric/facebook/folly/folly/container/test/F14MapTest.cpp:1777:3:
/usr/include/c++/13/array:213:24: warning: array subscript ‘const std::array<std::aligned_storage<4, 4>::type, 12>[0]’ is partly outside array bounds of ‘folly::f14::detail::EmptyTagVectorType [1]’ {aka ‘std::aligned_storage<32, 16>::type [1]’} [-Warray-bounds=]
213 | return _M_elems[__n];
| ~~~~~~~~^
/home/eric/facebook/folly/folly/container/detail/F14Table.h: In function ‘void runHeterogeneousInsertTest() [with M = folly::F14VectorMap<folly::test::Tracked<1>, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1> >]’:
/home/eric/facebook/folly/folly/container/detail/F14Table.h:455:40: note: at offset 16 into object ‘folly::f14::detail::kEmptyTagVector’ of size 32
455 | FOLLY_EXPORT extern EmptyTagVectorType kEmptyTagVector;
| ^~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Command '['/usr/bin/cmake', '--build', '/tmp/fbcode_builder_getdeps-ZhomeZericZfacebookZfollyZbuildZfbcode_builder/build/folly', '--target', 'install', '--config', 'RelWithDebInfo', '-j', '32']' returned non-zero exit status 1.
!! Failed
any insights? Do I miss something which I shall install first?
Thank you
getdeps.py actually may not install all essentials, you may still need to install some extras
it takes me quite a while to figure out that this python (getdeps.py) script may not work
instead, It's easier to import the project directly through CMakeLists.txt.
Here's my step for Clion in case you would like to follow as well.
- open Clion and open project, find top-level
CMakeLists.txt
- click
Open as Project
- click
Trust Project
It will pop up Project Wizard
- Name: Debug or Release
- Build type: you can choose one based on your need (Debug if you would like to develop)
- ToolChain: Default
- Generator: change it to Let CMakeDecide
-DCMAKE_BUILD_TYPE=DEBUG -DBUILD_TESTS=ON
you can remove-DBUILD_TESTS=ON
if you don't wish to test- click on yes
It shall work after this step, Clion may index files for a while.
build failure and there is a failure on "TraitsTest.cpp" 's 761 lines
TEST(Traits, value_list) {
EXPECT_EQ(3, (folly::value_list_size_v<vtag_t<7u, 8, '9'>>));
EXPECT_EQ(3, (folly::value_list_size_t<vtag_t<7u, 8, '9'>>::value));
EXPECT_TRUE(( //
std::is_same_v<
int,
folly::value_list_element_type_t<1, vtag_t<7u, 8, '9'>>>));
// EXPECT_EQ(8, (folly::value_list_element_v<1, vtag_t<7u, 8, '9'>>)); // <- this needs to be comment out
}
after commenting this line out, everything is good, although it still fails with one test 😅.