abseil-cpp icon indicating copy to clipboard operation
abseil-cpp copied to clipboard

GCC 14: abseil-src/absl/numeric/internal/bits.h:309:24: error: '__builtin_ctzs' needs isa option -mbmi

Open fruffy opened this issue 9 months ago • 0 comments

Describe the issue

Our CI on Fedora 40, which ships GCC 14 now, has been hitting abseil-src/absl/numeric/internal/bits.h:309:24: error: '__builtin_ctzs' needs isa option -mbmi recently in the Abseil library. https://github.com/p4lang/p4c/actions/runs/8880814585/job/24381737348

We are not sure how to fix this problem (discussion at https://github.com/p4lang/p4c/pull/4638). Currently, we use -march=native but that seems like a big hammer. Do you by any further advice on how to resolve this problem?

Steps to reproduce the problem

Compile Abseil on Fedora 40 with GCC 14

What version of Abseil are you using?

20240116.1

What operating system and version are you using?

Fedora 40

What compiler and version are you using?

gcc-14.0.1-0.15.fc40.x86_64

What build system are you using?

cmake-3.28.2-1.fc40.x86_64

Additional context

No response

fruffy avatar Apr 29 '24 15:04 fruffy