Skip to content

Conversation

@benoit-nexthop
Copy link
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

This build was sometimes failing when compiling fboss/thriftpath_plugin/Path.cpp with the error:

fatal error: fboss/thrift_cow/visitors/gen-cpp2/results_types.h: No such file or directory

The header results_types.h is a generated file that depends on the cow_visitor_results_cpp2 target. While the BUCK configuration for thriftpath_plugin/Path.cpp correctly includes //fboss/fsdb/common:utils as a dependency, the corresponding CMake target (thriftpath_lib) was missing a link to fsdb_utils. This caused a missing trigger for the Thrift code generation during the CMake build.

Solution: Added fsdb_utils to target_link_libraries in cmake/fsdb/FsdbIf.cmake to align the CMake build with the BUCK ground-truth.

Verified the dependency chain in FsdbCommon.cmake and ThriftCowVisitors.cmake to confirm fsdb_utils correctly maps to the missing results_types.h generator.

Thanks to Darius Grassi @darius-nexthop for fixing this issue.

Test Plan

Not needed.

This build was sometimes failing when compiling
`fboss/thriftpath_plugin/Path.cpp` with the error:
fatal error: fboss/thrift_cow/visitors/gen-cpp2/results_types.h: No such file or directory

The header `results_types.h` is a generated file that depends on the
`cow_visitor_results_cpp2` target. While the BUCK configuration for
`thriftpath_plugin/Path.cpp` correctly includes `//fboss/fsdb/common:utils`
as a dependency, the corresponding CMake target (thriftpath_lib) was
missing a link to `fsdb_utils`. This caused a missing trigger for the Thrift
code generation during the CMake build.

**Solution:** Added `fsdb_utils` to target_link_libraries in
`cmake/fsdb/FsdbIf.cmake` to align the CMake build with the BUCK
ground-truth.

Verified the dependency chain in `FsdbCommon.cmake` and
`ThriftCowVisitors.cmake` to confirm `fsdb_utils` correctly maps
to the missing `results_types.h` generator.

Thanks to Darius Grassi for fixing this issue.
@meta-cla meta-cla bot added the CLA Signed label Jan 22, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 22, 2026

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants