Skip to content

Fix OSS build#463

Closed
mszabo-wikia wants to merge 1 commit into
facebook:mainfrom
mszabo-wikia:fix-oss-build
Closed

Fix OSS build#463
mszabo-wikia wants to merge 1 commit into
facebook:mainfrom
mszabo-wikia:fix-oss-build

Conversation

@mszabo-wikia

@mszabo-wikia mszabo-wikia commented Mar 13, 2025

Copy link
Copy Markdown
Contributor
  • folly requires fast_float >= 8.0.0 since facebook/folly@7aa9b2c, whereas Ubuntu 24.04 packages version 3.9.0. Add a build script for fast_float for use in the OSS build and use it instead of the distribution package.
  • Add mcrouter/lib/WeightedCh3RvHashFunc.cpp and the corresponding header to the Automake build.
  • Add missing dependencies for generated MemcacheService types.
  • Fix fmtlib link order, remove duplicate link line entries.
@mszabo-wikia

Copy link
Copy Markdown
Contributor Author

FWIW, using fbcode_builder would obviate the need to create and maintain such mcrouter-specific workarounds in this codebase.

Comment thread mcrouter/scripts/Makefile_ubuntu-24.04
mszabo-wikia added a commit to mszabo-wikia/fbthrift that referenced this pull request Apr 18, 2025
This was added in D73136906 but is missing from CMakeLists.txt.

Spotted via facebook/mcrouter#463:

```
/usr/bin/ld: /home/runner/work/mcrouter/mcrouter/mcrouter-install/install/lib/libthriftcpp2.a(ThriftServer.cpp.o): in function `apache::thrift::ThriftServer::processModulesSpecification(apache::thrift::ThriftServer::ModulesSpecification&&)::ServiceInterceptorsCollector::addModule(apache::thrift::ThriftServer::ModulesSpecification::Info const&)':
ThriftServer.cpp:(.text+0x1d1c3): undefined reference to `apache::thrift::ServiceInterceptorQualifiedName::get() const'
```
facebook-github-bot pushed a commit to facebook/fbthrift that referenced this pull request Apr 21, 2025
Summary:
This was added in D73136906 but is missing from CMakeLists.txt.

Spotted via facebook/mcrouter#463:

```
/usr/bin/ld: /home/runner/work/mcrouter/mcrouter/mcrouter-install/install/lib/libthriftcpp2.a(ThriftServer.cpp.o): in function `apache::thrift::ThriftServer::processModulesSpecification(apache::thrift::ThriftServer::ModulesSpecification&&)::ServiceInterceptorsCollector::addModule(apache::thrift::ThriftServer::ModulesSpecification::Info const&)':
ThriftServer.cpp:(.text+0x1d1c3): undefined reference to `apache::thrift::ServiceInterceptorQualifiedName::get() const'
```

Pull Request resolved: #648

Reviewed By: vitaut

Differential Revision: D73378222

Pulled By: iahs

fbshipit-source-id: 676caa94c1566dc1b6275fc2cb4ba3043789cd42
facebook-github-bot pushed a commit to facebook/hhvm that referenced this pull request Apr 21, 2025
Summary:
This was added in D73136906 but is missing from CMakeLists.txt.

Spotted via facebook/mcrouter#463:

```
/usr/bin/ld: /home/runner/work/mcrouter/mcrouter/mcrouter-install/install/lib/libthriftcpp2.a(ThriftServer.cpp.o): in function `apache::thrift::ThriftServer::processModulesSpecification(apache::thrift::ThriftServer::ModulesSpecification&&)::ServiceInterceptorsCollector::addModule(apache::thrift::ThriftServer::ModulesSpecification::Info const&)':
ThriftServer.cpp:(.text+0x1d1c3): undefined reference to `apache::thrift::ServiceInterceptorQualifiedName::get() const'
```

X-link: facebook/fbthrift#648

Reviewed By: vitaut

Differential Revision: D73378222

Pulled By: iahs

fbshipit-source-id: 676caa94c1566dc1b6275fc2cb4ba3043789cd42
@mszabo-wikia mszabo-wikia force-pushed the fix-oss-build branch 2 times, most recently from 5719668 to 353f2ad Compare April 23, 2025 08:52
@mszabo-wikia mszabo-wikia changed the title Build fast_float from source for OSS build Apr 23, 2025
@mszabo-wikia mszabo-wikia force-pushed the fix-oss-build branch 3 times, most recently from 6407957 to 6e411f0 Compare May 15, 2025 22:10
@mszabo-wikia mszabo-wikia force-pushed the fix-oss-build branch 7 times, most recently from ff97c5f to b0c802c Compare May 24, 2025 19:02
* folly requires fast_float >= 8.0.0 since
  facebook/folly@7aa9b2c,
  whereas Ubuntu 24.04 packages version 3.9.0.
  Add a build script for fast_float for use in the OSS build and use it
  instead of the distribution package.

* Add mcrouter/lib/WeightedCh3RvHashFunc.cpp and the corresponding
  header to the Automake build.

* Add missing dependencies for generated MemcacheService types.

* Fix fmtlib link order, remove duplicate link line entries.
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@disylh has imported this pull request. If you are a Meta employee, you can view this in D78122316.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@disylh merged this pull request in 595177a.

facebook-github-bot pushed a commit to facebook/hhvm that referenced this pull request Jul 10, 2025
Summary:
* folly requires fast_float >= 8.0.0 since  facebook/folly@7aa9b2c,  whereas Ubuntu 24.04 packages version 3.9.0.  Add a build script for fast_float for use in the OSS build and use it instead of the distribution package.
* Add mcrouter/lib/WeightedCh3RvHashFunc.cpp and the corresponding header to the Automake build.
* Add missing dependencies for generated MemcacheService types.
* Fix fmtlib link order, remove duplicate link line entries.

X-link: facebook/mcrouter#463

Reviewed By: stuclar

Differential Revision: D78122316

Pulled By: disylh

fbshipit-source-id: 3e531f8ffc1071128b6396abd0e24723a3edc6e6
@mszabo-wikia mszabo-wikia deleted the fix-oss-build branch July 11, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants