-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Build
-
None
-
Storage Engines - Foundations
-
832.988
-
None
-
None
When I tried to compile WT on Fedora 44 with GCC 16.1.1, it failed with the following error.
CMAKE: cmake -G Ninja -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ..
[35/611] Building C object CMakeFiles/wt_objs.dir/src/btree/bt_delete.c.o
FAILED: [code=1] CMakeFiles/wt_objs.dir/src/btree/bt_delete.c.o
/usr/bin/ccache /usr/bin/gcc -D_GNU_SOURCE -I/home/mark/src/wiredtiger/build/include -I/home/mark/src/wiredtiger/build/config -I/home/mark/src/wiredtiger/src/include -fno-strict-aliasing -g -g3 -gdwarf-4 -ggdb3 -Og -fPIC -fdiagnostics-color=always -Wcast-align -Wdouble-promotion -Werror -Wfloat-equal -Wformat-nonliteral -Wformat-security -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-field-initializers -Wno-reserved-identifier -Wno-switch-default -Wpacked -Wpointer-arith -Wredundant-decls -Wswitch-enum -Wundef -Wuninitialized -Wunreachable-code -Wunused -Wwrite-strings -Wno-error=unsafe-loop-optimizations -Wformat-signedness -Wunused-macros -Wvariadic-macros -Wduplicated-cond -Wlogical-op -Wunused-const-variable=1 -Walloca -Walloc-zero -Wduplicated-branches -Wformat-overflow=2 -Wformat-truncation=2 -Wrestrict -Wmultistatement-macros -Waggregate-return -Wall -Wextra -Wshadow -Wsign-conversion -Wbad-function-cast -Wno-declaration-after-statement -Wjump-misses-init -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-sign -Wstrict-prototypes -MD -MT CMakeFiles/wt_objs.dir/src/btree/bt_delete.c.o -MF CMakeFiles/wt_objs.dir/src/btree/bt_delete.c.o.d -o CMakeFiles/wt_objs.dir/src/btree/bt_delete.c.o -c /home/mark/src/wiredtiger/src/btree/bt_delete.c
/home/mark/src/wiredtiger/src/btree/bt_delete.c: In function ‘__wti_delete_page_instantiate’:
/home/mark/src/wiredtiger/src/btree/bt_delete.c:661:13: error: variable ‘rip’ set but not used [-Werror=unused-but-set-variable=]
661 | WT_ROW *rip;
| ^~~
At top level:
cc1: note: unrecognized command-line option ‘-Wno-reserved-identifier’ may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
Compiler
$ gcc --version gcc (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2) Copyright (C) 2026 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- related to
-
WT-17622 Compile failing on GCC 15 (const correctness issue in handle_wiredtiger_message)
-
- Closed
-