Skip to content

nav2_mppi_controller: match AppleClang in the compiler check (backport #6816) - #6827

Merged
jwallace42 merged 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-6816
Nov 18, 2026
Merged

jwallace42 merged 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-6816

Conversation

@mergify

@mergify mergify Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Basic Info

Info Please fill out this column
Ticket(s) this addresses None
Primary OS tested on MacOS (27, arm64, Apple clang 21)
Robotic platform tested on N/A (build configuration only)
Does this PR contain AI generated software? Yes, written with Claude Code and validated with the CMake check below
Was this PR description generated by AI software? Yes (Claude Code), reviewed by me

Description of contribution in a few bullet points

  • nav2_mppi_controller/CMakeLists.txt has a branch for clang ("Apple Clang: use C++20 and optimization, omit -fconcepts"), but it checks CMAKE_CXX_COMPILER_ID STREQUAL "Clang". Apple's compiler reports AppleClang, so it falls through to the GCC branch and gets -fconcepts, which fails: clang++: error: unknown argument: '-fconcepts'.
  • Changed to MATCHES "Clang", so both Clang and AppleClang take the intended branch. GCC is unaffected.

Description of documentation updates required from your changes

  • None

Description of how this change was tested

  • CMake probe with the same check (cmake 4.x, cmake_minimum_required(VERSION 3.20) as in the package) on macOS 27:
Compiler CMAKE_CXX_COMPILER_ID before after
Apple clang 21 AppleClang -fconcepts branch C++20 branch
LLVM clang Clang C++20 branch C++20 branch
GCC 16 GNU -fconcepts branch -fconcepts branch
  • Apple clang 21 rejects -fconcepts (clang++: error: unknown argument: '-fconcepts').
  • I couldn't build main's MPPI itself on macOS (my environment is Jazzy), so I'm relying on CI for Linux.

Future work that may be required in bullet points

  • Backport to Jazzy (same check in Jazzy's MPPI).

For Maintainers:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists
  • Should this be backported to current distributions? If so, tag with backport-*.

🤖 Generated with Claude Code


This is an automatic backport of pull request #6816 done by [Mergify](https://mergify.com).

The C++20 branch for clang ("Apple Clang: use C++20 ... omit -fconcepts")
checks CMAKE_CXX_COMPILER_ID STREQUAL "Clang", but Apple's compiler
reports "AppleClang", so it takes the GCC branch and gets -fconcepts:
clang++: error: unknown argument: '-fconcepts'. Use MATCHES "Clang" so
both Clang and AppleClang take the intended branch.

Tested with a CMake probe (cmake 4.x, same check) on macOS 27: AppleClang
now selects the C++20 branch; LLVM Clang and GCC 16 select the same
branch as before. Apple clang 21 rejects -fconcepts. No effect on GCC.

Signed-off-by: Dhruv Patel <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 3267276)
@mergify

mergify Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

@mergify[bot], all pull requests must be targeted towards the main development branch.
Once merged into main, it is possible to backport to @lyrical, but it must be in main
to have these changes reflected into new distributions.

@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jwallace42
jwallace42 self-requested a review November 18, 2026 20:24
@jwallace42
jwallace42 merged commit 00e25c0 into lyrical Nov 18, 2026
17 checks passed
@jwallace42
jwallace42 deleted the mergify/bp/lyrical/pr-6816 branch November 18, 2026 20:25
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.

2 participants