On Fri, Sep 17, 2021 at 09:27:15 +0100, Daniel P. Berrangé wrote: > On Thu, Sep 16, 2021 at 07:10:31PM +0200, Peter Krempa wrote: > > When inspecting whether https://gitlab.com/libvirt/libvirt/-/issues/9 is > > still valid I wrote a tool which outputs command options missing > > completers. Now that I had a bit of time with lot of interruptions which > > is ideal for going through such a thing I decided to clean up > > the tool and post it along with a few fixes and additions to completers. > > This series seems to have broken the build for most layered project > CI pipelines
Could you link to them? > > FAILED: tools/libvirt_shell.a.p/vsh.c.o > ccache cc -Itools/libvirt_shell.a.p -Itools -I../tools -Iinclude -I../include > -Isrc -I../src -Isrc/util -I../src/util -I. -I.. -I/usr/include/libxml2 > -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include > -I/usr/include/gio-unix-2.0/ -fdiagnostics-color=always -pipe > -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O2 -g -Werror > -fasynchronous-unwind-tables -fexceptions -fipa-pure-const -fno-common > -Waddress -Waggressive-loop-optimizations > -Walloc-size-larger-than=9223372036854775807 -Walloca -Warray-bounds=2 > -Wattributes -Wbool-compare -Wbool-operation -Wbuiltin-declaration-mismatch > -Wbuiltin-macro-redefined -Wcast-align -Wcast-align=strict > -Wno-cast-function-type -Wchar-subscripts -Wclobbered -Wcomment -Wcomments > -Wcoverage-mismatch -Wcpp -Wdangling-else -Wdate-time > -Wdeclaration-after-statement -Wdeprecated-declarations -Wdesignated-init > -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-zero > -Wduplicated-cond -Wduplicate-decl-specifier -Wempty-body -Wendif -labels -Wexpansion-to-defined -Wformat-contains-nul -Wformat-extra-args -Wno-format-nonliteral -Wformat-overflow=2 -Wformat-security -Wno-format-truncation -Wformat-y2k -Wformat-zero-length -Wframe-address -Wframe-larger-than=4096 -Wfree-nonheap-object -Whsa -Wif-not-aligned -Wignored-attributes -Wignored-qualifiers -Wimplicit -Wimplicit-fallthrough=5 -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self -Winline -Wint-conversion -Wint-in-bool-context -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wjump-misses-init -Wlogical-not-parentheses -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wmultistatement-macros -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare -Wnormalized=nfc -Wnull-dereference -Wod r -Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wpacked-not-aligned -Wparentheses -Wpointer-arith -Wpointer-compare -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi -Wrestrict -Wreturn-local-addr -Wreturn-type -Wscalar-storage-order -Wsequence-point -Wshadow -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value -Wshift-overflow=2 -Wno-sign-compare -Wsizeof-array-argument -Wsizeof-pointer-div -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wstringop-overflow=2 -Wstringop-truncation -Wsuggest-attribute=cold -Wno-suggest-attribute=const -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wno-suggest-attribute=pure -Wsuggest-final-methods -Wsuggest-final-types -Wswitch -Wswitch-bool -Wswitch-enum -Wswitch-unreachable -Wsync-nand -Wtautological-compare -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set- variable -Wunused-const-variable=2 -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvla -Wvolatile-register-var -Wwrite-strings -fstack-protector-strong -Wdouble-promotion -fPIC -pthread -MD -MQ tools/libvirt_shell.a.p/vsh.c.o -MF tools/libvirt_shell.a.p/vsh.c.o.d -o tools/libvirt_shell.a.p/vsh.c.o -c ../tools/vsh.c > ../tools/vsh.c: In function ‘vshCompleteHelpCommand’: > ../tools/vsh.c:3035:12: error: implicit declaration of function > ‘vshReadlineCommandGenerator’ [-Werror=implicit-function-declaration] > return vshReadlineCommandGenerator(); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../tools/vsh.c:3035:12: error: nested extern declaration of > ‘vshReadlineCommandGenerator’ [-Werror=nested-externs] > ../tools/vsh.c:3035:12: error: returning ‘int’ from a function with > return type ‘char **’ makes pointer from integer without a cast > [-Werror=int-conversion] > return vshReadlineCommandGenerator(); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Looks like they build without 'readline'. All of libvirt's jobs use readline btw. I've fixed it in the meanwhile, but for a more stable CI layered products should use the same set of deps we use in our CI.