Skip to content

Migrate OSS project to handle protocol split#58

Closed
Mizuchi wants to merge 1 commit into
facebookexperimental:mainfrom
Mizuchi:export-D74687663
Closed

Migrate OSS project to handle protocol split#58
Mizuchi wants to merge 1 commit into
facebookexperimental:mainfrom
Mizuchi:export-D74687663

Conversation

@Mizuchi

@Mizuchi Mizuchi commented May 14, 2025

Copy link
Copy Markdown
Contributor

Summary:
X-link: facebook/CacheLib#386

X-link: facebook/fb303#67

fbthrift has moved compact/binary protocol instantiation outside _types.cpp (to _types_compact.cpp and _types_binary.cpp). We need to add these two files to the build system.

Differential Revision: D74687663

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 14, 2025
@Mizuchi Mizuchi force-pushed the export-D74687663 branch from 844a8bd to c463274 Compare May 14, 2025 18:44
Summary:
X-link: facebook/CacheLib#386

X-link: facebook/fb303#67

fbthrift has moved compact/binary protocol instantiation outside _types.cpp (to _types_compact.cpp and _types_binary.cpp). We need to add these two files to the build system.

Differential Revision: D74687663
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D74687663

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D74687663

Mizuchi added a commit to Mizuchi/edencommon that referenced this pull request May 14, 2025
Summary:
X-link: facebookexperimental/moxygen#58

X-link: facebook/CacheLib#386

X-link: facebook/fb303#67

fbthrift has moved compact/binary protocol instantiation outside _types.cpp (to _types_compact.cpp and _types_binary.cpp). We need to add these two files to the build system.

Differential Revision: D74687663
Mizuchi added a commit to Mizuchi/mcrouter that referenced this pull request May 14, 2025
Summary:
X-link: facebook/openr#158

X-link: facebook/fboss#434

X-link: facebookincubator/fizz#162

X-link: facebookexperimental/moxygen#58

X-link: facebook/CacheLib#386

X-link: facebook/fb303#67

fbthrift has moved compact/binary protocol instantiation outside _types.cpp (to _types_compact.cpp and _types_binary.cpp). We need to add these two files to the build system.

Differential Revision: D74687663
Mizuchi added a commit to Mizuchi/folly that referenced this pull request May 14, 2025
Summary:
X-link: facebook/mcrouter#468

X-link: facebookexperimental/edencommon#26

X-link: fairinternal/unified_parallelism#15

X-link: facebookincubator/hsthrift#152

X-link: facebook/mvfst#395

X-link: prestodb/presto#25113

X-link: facebook/fboss#434

X-link: facebookincubator/fizz#162

X-link: facebookexperimental/moxygen#58

X-link: facebook/CacheLib#386

X-link: facebook/fb303#67

fbthrift has moved compact/binary protocol instantiation outside _types.cpp (to _types_compact.cpp and _types_binary.cpp). We need to add these two files to the build system.

Differential Revision: D74687663
@afrind

afrind commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

Diff was abandoned

@afrind afrind closed this Jul 15, 2025
afrind pushed a commit that referenced this pull request Mar 12, 2026
* Static linking fixes, sync conflict auto-resolution, snapshot-latest draft fix

- BUNDLE_DEPS: add GFLAGS_SHARED=OFF and Boost_USE_STATIC_LIBS for
  CONFIG-mode packages that ignore CMAKE_FIND_LIBRARY_SUFFIXES
- BUNDLE_DEPS: use shared libunwind (system .a is not -fPIC on Ubuntu)
- upstream-sync: auto-resolve github_hashes conflicts with -X ours,
  notify Slack/email on unresolvable conflicts
- publish-artifacts: fix snapshot-latest release stuck as draft

* Fix BUNDLE_DEPS: Linux-only .a suffix, skip libunwind for bundled builds

* Keep libunwind .so for BUNDLE_DEPS: find with shared preference, skip folly re-find

* Fix glog transitive libunwind.a PIC failure on x86_64

FindGlog.cmake internally calls find_package(LibUnwind), which with
CMAKE_FIND_LIBRARY_SUFFIXES=".a" (set by BUNDLE_DEPS) picks up
libunwind.a. On Debian/Ubuntu x86_64, that file is not compiled with
-fPIC, causing PIE link failure. Patch glog::glog's link interface
to use libunwind.so instead.

* Make GFLAGS_SHARED OFF Linux-only to fix macOS dual linkage

On macOS, glog is always shared (homebrew has no libglog.a).
glog.dylib links gflags.dylib, so using static gflags (GFLAGS_SHARED
OFF) causes dual-linkage crashes. Keep gflags shared on macOS to
match glog.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported

3 participants