# Compiling Zeek-8.1 for Rocky linux with GCC-11 fails

**URL:** <https://community.zeek.org/t/compiling-zeek-8-1-for-rocky-linux-with-gcc-11-fails/7935>\
**Category:** Zeek\
**Created:** [January 13, 2026, 12:06pm UTC](https://community.zeek.org/t/compiling-zeek-8-1-for-rocky-linux-with-gcc-11-fails/7935 "2026-01-13T12:06:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![redbaron](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@redbaron](https://community.zeek.org/u/redbaron)\
**Post date:** [January 13, 2026, 12:06pm UTC](https://community.zeek.org/t/compiling-zeek-8-1-for-rocky-linux-with-gcc-11-fails/7935/1 "2026-01-13T12:06:08Z")

</div>

Hi,

I was trying to build Zeek-8.1 RPM for Rocky 8 and 9 but it is failing at compile stage.

For context, we build Zeek RPMs for Rocky8/9 using a spec file and `rpmbuild`tool.

Zeek-8.0.3 was built with GCC-10 (`toolset-gcc-10`) on Rocky8 and standard GCC-11 on Rocky9.

With Zeek-8.1, GCC-10 gives an error on Rocky8 (`parameter packs not expanded with ‘…’`) so I am using GCC-11 (`toolset-gcc-11`).

However, both Rocky8 and 9 builds are failing

```auto
[3%] Building CXX object auxil/spicy/hilti/toolchain/CMakeFiles/hilti-objects.dir/src/ast/operator.cc.o
/home/admin/rpmbuild/BUILD/zeek-8.1.0/auxil/spicy/hilti/toolchain/src/ast/operator.cc: In function 'std::string {anonymous}::printOperator(hilti::operator_::Kind, const Expressions&, bool, const hilti::Meta&)':
/home/admin/rpmbuild/BUILD/zeek-8.1.0/auxil/spicy/hilti/toolchain/src/ast/operator.cc:96:53: error: no match for 'operator|' (operand types are 'hilti::node::Range<hilti::type::tuple::Element>' and 'std::ranges::views::__adaptor::_Partial<std::ranges::views::_Transform, {anonymous}::printOperator(hilti::operator_::Kind, const Expressions&, bool, const hilti::Meta&)::<lambda(const auto:52&)> >')
   96 | args = util::join(ttype->elements() | std::views::transform([&render_one](const auto& x) {
      | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | | |
      | | std::ranges::views::__adaptor::_Partial<std::ranges::views::_Transform, {anonymous}::printOperator(hilti::operator_::Kind, const Expressions&, bool, const hilti::Meta&)::<lambda(const auto:52&)> >
      | hilti::node::Range<hilti::type::tuple::Element>
   97 | return render_one(x->type());
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   98 | }),
      | ~~                 

.... long error chain .....

8.1.0/auxil/spicy/hilti/toolchain/src/ast/operator.cc:158:117: required from here
/opt/rh/gcc-toolset-11/root/usr/include/c++/11/ranges:747:13: required for the satisfaction of '__adaptor_invocable<_Self, _Range>' [with _Self = std::ranges::views::__adaptor::_Partial<std::ranges::views::_Transform, <unnamed>::printOperator::._anon_207>; _Range = hilti::node::Range<hilti::type::operand_list::Operand>]
/opt/rh/gcc-toolset-11/root/usr/include/c++/11/ranges:748:9: in requirements [with _Args = {hilti::node::Range<hilti::type::operand_list::Operand>}; _Adaptor = std::ranges::views::__adaptor::_Partial<std::ranges::views::_Transform, <unnamed>::printOperator::._anon_207>]
/opt/rh/gcc-toolset-11/root/usr/include/c++/11/ranges:748:44: note: the required expression 'declval<_Adaptor>()((declval<_Args>)()...)' is invalid
  748 | = requires { std::declval<_Adaptor>()(declval<_Args>()...); };
      | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-changes-meaning' may have been intended to silence earlier diagnostics
make[3]: *** [auxil/spicy/hilti/toolchain/CMakeFiles/hilti-objects.dir/build.make:360: auxil/spicy/hilti/toolchain/CMakeFiles/hilti-objects.dir/src/ast/operator.cc.o] Error 1
make[3]: Leaving directory '/home/admin/rpmbuild/BUILD/zeek-8.1.0/build'
make[2]: *** [CMakeFiles/Makefile2:5381: auxil/spicy/hilti/toolchain/CMakeFiles/hilti-objects.dir/all] Error 2

```

The build section of spec file is

```auto
%build
./configure --prefix=%{_prefix} --binary-package --enable-static-broker --disable-broker-tests --disable-btest --disable-btest-pcaps --with-python=/usr/bin/python3.11 --enable-jemalloc --disable-cpp-tests --build-type=Release
make

```

Any ideas on how to proceed with build?

Thanks

---

<div class="post-metadata">

**Author:** ![redbaron](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@redbaron](https://community.zeek.org/u/redbaron)\
**Post date:** [January 13, 2026, 12:21pm UTC](https://community.zeek.org/t/compiling-zeek-8-1-for-rocky-linux-with-gcc-11-fails/7935/2 "2026-01-13T12:21:49Z")

</div>

The build has progressed beyond the failure point when using `gcc-toolset-12`.

So probably Zeek-8.1 needs GCC-12 minimum to compile.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Bannier](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/benjamin_bannier/32/595_2.png) [@Benjamin\_Bannier](https://community.zeek.org/u/Benjamin_Bannier)\
**Post date:** [January 13, 2026, 3:21pm UTC](https://community.zeek.org/t/compiling-zeek-8-1-for-rocky-linux-with-gcc-11-fails/7935/3 "2026-01-13T15:21:11Z")

</div>

> [@redbaron](#):
>
> So probably Zeek-8.1 needs GCC-12 minimum to compile.

Yes exactly, zeek-8.1.0 requires at least gcc-12, see e.g., the [`CHANGES` file](https://github.com/zeek/zeek/blob/master/CHANGES#L565) or our [platform support policy](https://github.com/zeek/zeek/wiki/Zeek-Operating-System-Support-Matrix).

---

<div class="post-metadata">

**Author:** ![redbaron](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@redbaron](https://community.zeek.org/u/redbaron)\
**Post date:** [January 13, 2026, 3:42pm UTC](https://community.zeek.org/t/compiling-zeek-8-1-for-rocky-linux-with-gcc-11-fails/7935/4 "2026-01-13T15:42:57Z")

</div>

Thanks for pointing those links. I think such detail should also be part of release notes (like it was for 8.0).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [July 12, 2026, 12:06pm UTC](https://community.zeek.org/t/compiling-zeek-8-1-for-rocky-linux-with-gcc-11-fails/7935/5 "2026-07-12T12:06:44Z")

</div>

This topic was automatically closed after 80 days. New replies are no longer allowed.
