Skip to content

cmake: exclude locale.hpp from source_group tree - #273

Merged
Flamefire merged 3 commits into
boostorg:developfrom
aouxwoux:fix-cmake-source-group
Oct 31, 2026
Merged

Flamefire merged 3 commits into
boostorg:developfrom
aouxwoux:fix-cmake-source-group

Conversation

@aouxwoux

Copy link
Copy Markdown
Contributor

Comment thread CMakeLists.txt Outdated
list(FILTER sources_src INCLUDE REGEX "^src/")
set(sources_inc ${sources})
list(FILTER sources_inc EXCLUDE REGEX "^src/")
list(FILTER sources_inc EXCLUDE REGEX "locale\\.hpp$")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. Any reason to not use use e.g.

Suggested change
list(FILTER sources_inc EXCLUDE REGEX "locale\\.hpp$")
list(REMOVE_ITEM sources_inc "${CMAKE_CURRENT_SOURCE_DIR}/include/boost/locale.hpp")

excluding anything that ends in locale.hpp is a bit too much as it could remove something like include/boost/locale/default_locale.hpp
One could also move the source_group("headers" FILES "include/boost/locale.hpp") directly below that removal to make the reason/logic clearer

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah ok this sounds better!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated with remove_item and moved source_group right below it

@Flamefire Flamefire left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Flamefire
Flamefire enabled auto-merge October 25, 2026 18:36
@ateepe

ateepe commented Oct 30, 2026

Copy link
Copy Markdown

Looks like one of the tests failed due to a 60 minute timeout and are blocking the merge. Can you restart the tests/checks and try again?

@aouxwoux

Copy link
Copy Markdown
Contributor Author

@ateepe as an outside contributor i don't have access to re-trigger or restart appveyor builds directly. all 50+ github actions, drone ci, and 17 of 18 appveyor matrix jobs passed (the single failure was the 60m worker timeout on the cygwin 64-bit runner).

@Flamefire could you please restart the timed-out appveyor job or merge when you get a chance? thanks!

@Flamefire

Copy link
Copy Markdown
Collaborator

I already restarted it twice. Still timeout so I'm splitting the job. I guess they moved those runners to slower machines

@Flamefire
Flamefire merged commit e48ac72 into boostorg:develop Oct 31, 2026
51 of 52 checks passed
luciorq added a commit to luciorq/r-zig-pixi that referenced this pull request Nov 17, 2026
Stress run 43947228208 (bfb510a) found arrow and arrow:source failing on
every linux and macOS leg, duckdb on the Windows tree legs, and magick's
link on windows-11-arm. Records: chore-release-11 PLAN.md findings
33-36.

- CMake held at 4.4.5 (extras group's Kitware archives, r-zig-extras
  `cmake <4.5`, the stress feature): 4.5.0's source_group(TREE) breaks
  Boost 1.92.0's locale CMakeLists, which arrow 26.0.1 fetches
  (boostorg/locale#273) (finding 33). Lock: cmake 4.5.0 -> 4.4.5 in the
  stress env only.
- The build-tools group carries m2-tar: duckdb's configure.win runs
  `tar xf`, and the stress env's tar, from a second MSYS2, exits 127
  under the group's sh (finding 34).
- rzig adds R_HOME/bin/toolchain/clear_cache.o to aarch64 Windows
  links: compiler-rt's __clear_cache (FlushInstructionCache), weak and
  not exported, which zig's compiler_rt leaves out there; libffi in
  magick's clang-aarch64 bundle calls it (finding 36).
- stress: expect keys may name R's arch (windows-aarch64=,
  macos-x86_64=); the toolchain class takes __clear_cache and lld's
  addrsig error (finding 35); win-arm64 rows whose libraries
  conda-forge lacks are recorded; Rhtslib and Rsamtools are
  windows=fail-dependency (regex.h); DESeq2 windows=ok.
luciorq added a commit to luciorq/r-zig-pixi that referenced this pull request Nov 17, 2026
3c9899e committed only zigbuild/tools/rzig/clear_cache.c and
clear_cache.zig; the changes that use them were staged but left out.
This commit holds them. Stress run 44111538560 on 3c9899e repeated the
failures of run 43947228208, as expected without these changes.

- CMake held at 4.4.5 (extras group's Kitware archives, r-zig-extras
  `cmake <4.5`, the stress feature): 4.5.0's source_group(TREE) breaks
  Boost 1.92.0's locale CMakeLists, which arrow 26.0.1 fetches
  (boostorg/locale#273) (finding 33). Lock: cmake 4.5.0 -> 4.4.5 in the
  stress env only.
- The build-tools group carries m2-tar: duckdb's configure.win runs
  `tar xf`, and the stress env's tar, from a second MSYS2, exits 127
  under the group's sh (finding 34).
- rzig adds R_HOME/bin/toolchain/clear_cache.o to aarch64 Windows
  links (finding 36); the recipe and test-preflight.R expect it.
- stress: expect keys may name R's arch (windows-aarch64=,
  macos-x86_64=); the toolchain class takes __clear_cache and lld's
  addrsig error (finding 35); win-arm64 rows whose libraries
  conda-forge lacks are recorded; DESeq2 windows=ok.
schiele added a commit to schiele/PrusaSlicer that referenced this pull request Nov 19, 2026
This fixes a bug in Boost that prevents it from configuring with CMake 4.5.0.
schiele added a commit to schiele/PrusaSlicer that referenced this pull request Nov 20, 2026
This fixes a bug in Boost that prevents it from configuring with CMake 4.5.0.
schiele added a commit to schiele/PrusaSlicer that referenced this pull request Nov 25, 2026
This fixes a bug in Boost that prevents it from configuring with CMake 4.5.0.
kou pushed a commit to apache/arrow that referenced this pull request Nov 29, 2026
…bility (#55749)

### Rationale for this change
boostorg/boost#1162 is needed to build bundled boost 1.92 on CMake 4.5. 

### What changes are included in this PR?

Add patch to exclude `locale.hpp` from `source_group` tree in boost. 
- Apply boostorg/locale#273 because it's not included in a boost release yet.

### Are these changes tested?
Yes, in CI

### Are there any user-facing changes?
n/a

### Was AI used for this PR?

In accordance to the [AI generation guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code), please disclose below whether and how AI was used in this PR.

**PR code and description written by:**

- [x] Human
- [x] AI

**Reviewed before submission by:**

- [x] Human
- [ ] AI
- [ ] Not reviewed

* GitHub Issue: #55710

Authored-by: Alina (Xi) Li <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CMake error in boost 1.92.0 locale module with CMake 4.5.0

3 participants