Skip to content

cmake: make SIMD_COMPILE_FLAGS a list - #72657

Merged
tchaikov merged 1 commit into
ceph:mainfrom
sunyuechi:wip-crc32-riscv-simd-flags
Oct 14, 2026
Merged

tchaikov merged 1 commit into
ceph:mainfrom
sunyuechi:wip-crc32-riscv-simd-flags

Conversation

@sunyuechi

Copy link
Copy Markdown
Contributor

SIMD_COMPILE_FLAGS is a space-separated string with a leading space.
Since d672829 ("cmake: use target_compile_options() for crc32 ASM
flags") it goes through target_compile_options(), which passes it as a
single argument, so on riscv64 gcc treats " -march=rv64gcv_zbc_zvbc" as
an input file and crc32c.cc fails to build.

Build it with list(APPEND), and switch gf-complete_objs from the
COMPILE_FLAGS property to target_compile_options() as well.

A CI failure on this: https://github.com/openRuyi-Project/ceph-ci/actions/runs/38427960758/job/115402270531

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

SIMD_COMPILE_FLAGS was built as a space-separated string with a leading
space. Since d672829 it is passed to target_compile_options(), which
quotes it as a single argument, so on riscv64 gcc sees
" -march=rv64gcv_zbc_zvbc" as an input file and building crc32c.cc fails.

Build it with list(APPEND) instead, and pass it to gf-complete_objs via
target_compile_options() rather than the COMPILE_FLAGS string property.

Signed-off-by: Sun Yuechi <[email protected]>
@sunyuechi
sunyuechi requested a review from a team as a code owner October 14, 2026 05:28
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR ci-approved to allow Jenkins CI jobs to run.

@tchaikov tchaikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks for fixing this regression!

@tchaikov

Copy link
Copy Markdown
Contributor

@tchaikov

Copy link
Copy Markdown
Contributor

@tchaikov
tchaikov merged commit a36aac1 into ceph:main Oct 14, 2026
17 checks passed
sunyuechi added a commit to sunyuechi/openRuyi that referenced this pull request Oct 28, 2026
The new snapshot brings in these fixes:
- osd/PeeringState: fix the divergence check against olog.head
  (ceph/ceph#70149)
- osd: assert OI_ATTR is present in rollback_setattrs (ceph/ceph#70965)
- osdc: fix ReplicaSplitOp chunk distribution, reassembly and
  small multi-op reads (ceph/ceph#70207)
- erasure-code/isa: default the technique when the profile has none
  (ceph/ceph#72215)
- mount.ceph: report kernels without aes256k key support
  (ceph/ceph#72159)
- rgw/es: require both major and minor in the ES version
  (ceph/ceph#70007)
- build: turn WITH_RADOSGW_LANCEDB off where lance cannot build
  (ceph/ceph#71935)
- cmake: make SIMD_COMPILE_FLAGS a list (ceph/ceph#72657)
- cmake/boost: do not pass context-impl to the headers step
  (ceph/ceph#71249)
- rpm: let ceph-mgr-cephadm require routes (ceph/ceph#73051)
- test/mds: widen result waits in ReleaseAwait (ceph/ceph#70463)
- qa/lsan.supp: match OpenSSL error state on ERR_set_mark
  (ceph/ceph#71460)

Signed-off-by: Sun Yuechi <[email protected]>
misaka00251 pushed a commit to openRuyi-Project/openRuyi that referenced this pull request Oct 28, 2026
The new snapshot brings in these fixes:
- osd/PeeringState: fix the divergence check against olog.head
  (ceph/ceph#70149)
- osd: assert OI_ATTR is present in rollback_setattrs (ceph/ceph#70965)
- osdc: fix ReplicaSplitOp chunk distribution, reassembly and
  small multi-op reads (ceph/ceph#70207)
- erasure-code/isa: default the technique when the profile has none
  (ceph/ceph#72215)
- mount.ceph: report kernels without aes256k key support
  (ceph/ceph#72159)
- rgw/es: require both major and minor in the ES version
  (ceph/ceph#70007)
- build: turn WITH_RADOSGW_LANCEDB off where lance cannot build
  (ceph/ceph#71935)
- cmake: make SIMD_COMPILE_FLAGS a list (ceph/ceph#72657)
- cmake/boost: do not pass context-impl to the headers step
  (ceph/ceph#71249)
- rpm: let ceph-mgr-cephadm require routes (ceph/ceph#73051)
- test/mds: widen result waits in ReleaseAwait (ceph/ceph#70463)
- qa/lsan.supp: match OpenSSL error state on ERR_set_mark
  (ceph/ceph#71460)

Signed-off-by: Sun Yuechi <[email protected]>
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