Does not build on Fedora 38
Opened this issue · 1 comments
derfsubterfuge commented
I have a fresh install of Fedora 38 with a sudo dnf update
, and when I try to build the v2023.09.11.00 and v2023.09.18.00 from source, I get the following error:
-- ZSTD: /usr/include
CMake Error at CMakeLists.txt:106 (find_package):
Could not find a package configuration file provided by "mvfst" with any of
the following names:
mvfstConfig.cmake
mvfst-config.cmake
Add the installation prefix of "mvfst" to CMAKE_PREFIX_PATH or set
"mvfst_DIR" to a directory containing one of the above files. If "mvfst"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
Command '['/usr/bin/cmake', '/tmp/fbcode_builder_getdeps-ZtmpZwatchman-2023.09.11.00ZbuildZfbcode_builder-root/repos/github.com-facebook-fbthrift.git', '-DCMAKE_INSTALL_PREFIX=/tmp/fbcode_builder_getdeps-ZtmpZwatchman-2023.09.11.00ZbuildZfbcode_builder-root/installed/fbthrift', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBOOST_INCLUDEDIR=/usr/include/boost169', '-DBOOST_LIBRARYDIR=/usr/lib64/boost169', '-G', 'Ninja']' returned non-zero exit status 1.
!! Failed
To build, I'm running the following commands:
WATCHMAN_VERSION="v2023.09.18.00" # or WATCHMAN_VERSION="v2023.09.11.00"
wget https://github.com/facebook/watchman/archive/refs/tags/${WATCHMAN_VERSION}.zip
unzip ${WATCHMAN_VERSION}.zip
cd watchman-${WATCHMAN_VERSION:1}
sudo dnf install -y cargo
sudo ./install-system-packages.sh
sudo ./autogen.sh
Similarly, if I try to build it with ./autogen.sh
in place of sudo ./autogen.sh
(as the docs say), I get the following error:
-- Installing: /cmake/mvfst/mvfst-targets.cmake
CMake Error at cmake_install.cmake:70 (file):
file INSTALL cannot copy file
"/tmp/fbcode_builder_getdeps-ZtmpZwatchman-2023.09.11.00ZbuildZfbcode_builder/build/mvfst/CMakeFiles/Export/2ee38ff78a11b254a8eb474c19ee3a3b/mvfst-targets.cmake"
to "/cmake/mvfst/mvfst-targets.cmake": Permission denied.
FAILED: CMakeFiles/install.util
cd /tmp/fbcode_builder_getdeps-ZtmpZwatchman-2023.09.11.00ZbuildZfbcode_builder/build/mvfst && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
Command '['/usr/bin/cmake', '--build', '/tmp/fbcode_builder_getdeps-ZtmpZwatchman-2023.09.11.00ZbuildZfbcode_builder/build/mvfst', '--target', 'install', '--config', 'Release', '-j', '8']' returned non-zero exit status 1.
!! Failed
quux-aivar commented
Build fails:
ninja: build stopped: subcommand failed.
Command '['/usr/bin/cmake', '--build', '/tmp/fbcode_builder_getdeps-ZhomeZdeveloperZDownloadsZwatchman-2024.02.12.00ZbuildZfbcode_builder-root/build/fb303', '--target', 'install', '--config', 'RelWithDebInfo', '-j', '9']' returned non-zero exit status 1.
!! Failed