mcrouter icon indicating copy to clipboard operation
mcrouter copied to clipboard

Failed to build on Ubuntu 24.04

Open phoenixlam opened this issue 1 year ago • 3 comments

Anyone can provide the build script for Ubuntu 24.04?

phoenixlam avatar Jun 20 '24 06:06 phoenixlam

Hello,

The easiest would probably be to base your buildenv on https://gerrit.wikimedia.org/r/plugins/gitiles/operations/debs/mcrouter/+/refs/heads/master. Once you swap out for an Ubuntu base image, you'll likely need to change some APT dependencies (e.g. the boost version) and pin the other FB library dependencies to a more recent commit. The latest vYYYY.MM.DD tags usually work well together, but there are often cases where the OSS build for one of the deps is broken on a given tag, in which case you'll need to pin that particular dep to a newer or older, working, tag.

Once you do that, you'll also need to apply https://github.com/facebook/mcrouter/pull/445 as part of your build process since the autotools build is out of sync with recent changes.

Hope this helps.

mszabo-wikia avatar Jun 21 '24 14:06 mszabo-wikia

Did the devs stopped working on these scripts?

gui3412 avatar Aug 02 '24 14:08 gui3412

I would assume so. I have made a PR to replace the autotools build system with CMake, which should then allow building mcrouter using the getdeps.py script used by other Meta OSS C++ projects, such as fbthrift. That script automates the process of obtaining or compiling dependencies, so it should be much simpler to use, and it should obviate the need for such per distro/per release scripts. If you'd like to, you can try it by checking out https://github.com/facebook/mcrouter/pull/449.

mszabo-wikia avatar Aug 04 '24 22:08 mszabo-wikia