Skip to content

Conversation

@ptarjan
Copy link
Contributor

@ptarjan ptarjan commented Jan 20, 2026

The -use variants of memcpy_aarch64 and memset_aarch64 were being included in the monolithic libfolly.so, causing duplicate symbol errors because they compile the same assembly files as the non-use variants.

Add EXCLUDE_FROM_MONOLITH to memcpy_aarch64-use and memset_aarch64-use to match the pattern used for memcpy-use and memset-use in the main folly/CMakeLists.txt. The -use variants are meant for explicit opt-in to override libc memcpy/memset, not for inclusion in the main library.

The -use variants of memcpy_aarch64 and memset_aarch64 were being
included in the monolithic libfolly.so, causing duplicate symbol
errors because they compile the same assembly files as the non-use
variants.

Add EXCLUDE_FROM_MONOLITH to memcpy_aarch64-use and memset_aarch64-use
to match the pattern used for memcpy-use and memset-use in the main
folly/CMakeLists.txt. The -use variants are meant for explicit opt-in
to override libc memcpy/memset, not for inclusion in the main library.

Fixes: https://github.com/facebook/folly/issues/XXXXX
@meta-cla meta-cla bot added the CLA Signed label Jan 20, 2026
ptarjan pushed a commit to ptarjan/nixpkgs that referenced this pull request Jan 20, 2026
Add EXCLUDE_FROM_MONOLITH to memcpy_aarch64-use and memset_aarch64-use
targets to prevent duplicate symbol errors when building libfolly.so.

The "Add granular CMake build targets" commit (2026.01.18) introduced
both -use and non-use variants from the same source files, causing
linker errors on aarch64-linux.

facebook/folly#2562
@ptarjan
Copy link
Contributor Author

ptarjan commented Jan 20, 2026

Same result as #2561 different implementation

ptarjan pushed a commit to ptarjan/nixpkgs that referenced this pull request Jan 22, 2026
folly: remove obsolete fix-__type_pack_element.patch

folly: disable flaky largeRetries test

This test times out under resource constraints.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

folly: disable flaky UseAfterFork test

folly: fix aarch64-linux duplicate symbol errors

Add EXCLUDE_FROM_MONOLITH to memcpy_aarch64-use and memset_aarch64-use
targets to prevent duplicate symbol errors when building libfolly.so.

The "Add granular CMake build targets" commit (2026.01.18) introduced
both -use and non-use variants from the same source files, causing
linker errors on aarch64-linux.

facebook/folly#2562
ptarjan pushed a commit to ptarjan/nixpkgs that referenced this pull request Jan 22, 2026
folly: remove obsolete fix-__type_pack_element.patch

folly: disable flaky largeRetries test

This test times out under resource constraints.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

folly: disable flaky UseAfterFork test

folly: fix aarch64-linux duplicate symbol errors

Add EXCLUDE_FROM_MONOLITH to memcpy_aarch64-use and memset_aarch64-use
targets to prevent duplicate symbol errors when building libfolly.so.

The "Add granular CMake build targets" commit (2026.01.18) introduced
both -use and non-use variants from the same source files, causing
linker errors on aarch64-linux.

facebook/folly#2562
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