build failed by following "Build Notes" on Ubuntu 24.04 LTS
- Dominant language
- C++
- Stars
- 30.5k
- Forks
- 5.9k
- PR merge metrics
- No merged PRs in 30d
Description
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, int>*]’,
inlined from ‘folly::f14::detail::F14Table::ItemIter folly::f14::detail::F14Table::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::ItemIter folly::f14::detail::F14Table::find(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::EnableHeterogeneousFind folly::f14::detail::F14BasicMap::contains(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::EnableHeterogeneousFind folly::f14::detail::F14BasicMap::count(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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, 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(ptr));
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/eric/facebook/folly/folly/container/detail/F14Table.h: In function ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap, 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::Item* folly::f14::detail::F14Chunk::itemAddr(std::size_t) const [with ItemType = std::pair, int>*]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:717:62,
inlined from ‘folly::f14::detail::F14Chunk::Item& folly::f14::detail::F14Chunk::item(std::size_t) [with ItemType = std::pair, int>*]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:722:25,
inlined from ‘folly::f14::detail::F14Table::ItemIter folly::f14::detail::F14Table::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::ItemIter folly::f14::detail::F14Table::find(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::EnableHeterogeneousFind folly::f14::detail::F14BasicMap::contains(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::EnableHeterogeneousFind folly::f14::detail::F14BasicMap::count(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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, 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::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, 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, int>*]’,
inlined from ‘folly::f14::detail::F14Table::ItemIter folly::f14::detail::F14Table::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::ItemIter folly::f14::detail::F14Table::find(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::EnableHeterogeneousFind folly::f14::detail::F14BasicMap::contains(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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, 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(ptr));
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/eric/facebook/folly/folly/container/detail/F14Table.h: In function ‘void runHeterogeneousInsertTest() [with M = folly::F14NodeMap, 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::Item* folly::f14::detail::F14Chunk::itemAddr(std::size_t) const [with ItemType = std::pair, int>*]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:717:62,
inlined from ‘folly::f14::detail::F14Chunk::Item& folly::f14::detail::F14Chunk::item(std::size_t) [with ItemType = std::pair, int>*]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:722:25,
inlined from ‘folly::f14::detail::F14Table::ItemIter folly::f14::detail::F14Table::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::ItemIter folly::f14::detail::F14Table::find(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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::EnableHeterogeneousFind folly::f14::detail::F14BasicMap::contains(const K&) const [with K = int; Policy = folly::f14::detail::NodeContainerPolicy, 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, 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::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, 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::Item* folly::f14::detail::F14Chunk::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::Item& folly::f14::detail::F14Chunk::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::ItemIter folly::f14::detail::F14Table::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant >]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1545:13,
inlined from ‘folly::f14::detail::F14Table::ItemIter folly::f14::detail::F14Table::find(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant >]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1586:20,
inlined from ‘folly::f14::detail::F14BasicMap::EnableHeterogeneousFind folly::f14::detail::F14BasicMap::contains(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant >]’ at /home/eric/facebook/folly/folly/container/F14Map.h:919:24,
inlined from ‘folly::f14::detail::F14BasicMap::EnableHeterogeneousFind folly::f14::detail::F14BasicMap::count(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant >]’ at /home/eric/facebook/folly/folly/container/F14Map.h:787:20,
inlined from ‘void runHeterogeneousInsertTest() [with M = folly::F14VectorMap, 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::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, 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::Item* folly::f14::detail::F14Chunk::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::Item& folly::f14::detail::F14Chunk::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::ItemIter folly::f14::detail::F14Table::findImpl(HashPair, const K&, Prefetch) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant >]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1545:13,
inlined from ‘folly::f14::detail::F14Table::ItemIter folly::f14::detail::F14Table::find(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant >]’ at /home/eric/facebook/folly/folly/container/detail/F14Table.h:1586:20,
inlined from ‘folly::f14::detail::F14BasicMap::EnableHeterogeneousFind folly::f14::detail::F14BasicMap::contains(const K&) const [with K = int; Policy = folly::f14::detail::VectorContainerPolicy, int, folly::test::TransparentTrackedHash<1>, folly::test::TransparentTrackedEqual<1>, void, std::integral_constant >]’ at /home/eric/facebook/folly/folly/container/F14Map.h:919:24,
inlined from ‘void runHeterogeneousInsertTest() [with M = folly::F14VectorMap, 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::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, 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
Contributor guide
Assessment
This issue has not been assessed yet.