Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/protobuf-c.spec'], chrootPath='/var/lib/mock/dist-an23-build-272988-64181/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/protobuf-c.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1612310400 Wrote: /builddir/build/SRPMS/protobuf-c-1.3.0-6.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/protobuf-c.spec'], chrootPath='/var/lib/mock/dist-an23-build-272988-64181/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/protobuf-c.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1612310400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GjQm9b + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf protobuf-c-1.3.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/protobuf-c-1.3.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd protobuf-c-1.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.0NBK6G + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd protobuf-c-1.3.0 + autoreconf -ifv autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS} autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. libtoolize: copying file 'build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS} autoreconf: running: /usr/bin/autoconf --force configure.ac:14: warning: The macro `AC_PROG_CC_STDC' is obsolete. configure.ac:14: You should run autoupdate. ./lib/autoconf/c.m4:1666: AC_PROG_CC_STDC is expanded from... configure.ac:14: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:14: installing 'build-aux/compile' configure.ac:13: installing 'build-aux/missing' Makefile.am: installing 'build-aux/depcomp' autoreconf: Leaving directory '.' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-06-07 22:41:02.079938835 +0800 +++ ./configure 2023-06-07 22:41:02.959965920 +0800 @@ -1810,7 +1810,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-06-07 22:41:02.959965920 +0800 +++ ./configure 2023-06-07 22:41:03.005967336 +0800 @@ -8109,7 +8109,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -19473,7 +19473,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f ./build-aux/config.guess ++ basename ./build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess ./build-aux/config.guess '/usr/lib/rpm/anolis/config.guess' -> './build-aux/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f ./build-aux/config.sub ++ basename ./build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./build-aux/config.sub '/usr/lib/rpm/anolis/config.sub' -> './build-aux/config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld"~' ./build-aux/ltmain.sh ++ dirname ./configure + /usr/lib/rpm/anolis/force-as-needed-for-shared-lib-in-libtool . Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/anolis/fix-libtool-ltmain-from-overlinking ++ dirname ./configure + /usr/lib/rpm/anolis/fix-libtool-from-moving-options-after-libs . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/anolis/fix-dlsearch-path-in-libtool . lib64 + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for x86_64-Anolis-linux-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... none checking whether ln -s works... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether make supports nested variables... (cached) yes checking build system type... x86_64-Anolis-linux-gnu checking host system type... x86_64-Anolis-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-Anolis-linux-gnu file names to x86_64-Anolis-linux-gnu format... func_convert_file_noop checking how to convert x86_64-Anolis-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-Anolis-linux-file... no checking for file... file checking for x86_64-Anolis-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-Anolis-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-Anolis-linux-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-Anolis-linux-strip... no checking for strip... strip checking for x86_64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 8115: -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p': No such file or directory ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether C compiler accepts "-Wc99-c11-compat"... yes checking whether C compiler accepts "-Werror=incompatible-pointer-types"... yes checking whether C compiler accepts "-Werror=int-conversion"... yes checking whether C compiler accepts "-Wnull-dereference"... yes checking for doxygen... no checking for x86_64-Anolis-linux-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for protobuf... yes checking for google/protobuf/compiler/command_line_interface.h... yes checking for protoc... /usr/bin/protoc checking if LD -Wl,--version-script works... yes checking whether self tests are run under valgrind... no checking whether to build with code coverage support... no checking whether byte ordering is bigendian... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating protobuf-c/libprotobuf-c.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands protobuf-c 1.3.0 CC: gcc CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection CXX: g++ CXXFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 LIBS: prefix: /usr sysconfdir: /etc libdir: /usr/lib64 includedir: /usr/include pkgconfigdir: ${libdir}/pkgconfig bigendian: no protobuf version: libprotoc 3.19.6 + /usr/bin/make -O -j80 V=1 VERBOSE=1 /usr/bin/protoc -I. --cpp_out=. ./t/test-full.proto [libprotobuf WARNING google/protobuf/compiler/parser.cc:649] No syntax specified for the proto file: t/test-full.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) /usr/bin/protoc -I. --cpp_out=. ./t/test-full.proto [libprotobuf WARNING google/protobuf/compiler/parser.cc:649] No syntax specified for the proto file: t/test-full.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-main.o `test -f 'protoc-c/main.cc' || echo './'`protoc-c/main.cc g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_bytes_field.o `test -f 'protoc-c/c_bytes_field.cc' || echo './'`protoc-c/c_bytes_field.cc In file included from ./protoc-c/c_bytes_field.h:68, from protoc-c/c_bytes_field.cc:63: ./protoc-c/c_field.h:120:3: error: 'scoped_array' does not name a type 120 | scoped_array > field_generators_; | ^~~~~~~~~~~~ make: *** [Makefile:1367: protoc-c/protoc_gen_c-c_bytes_field.o] Error 1 make: *** Waiting for unfinished jobs.... g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_enum_field.o `test -f 'protoc-c/c_enum_field.cc' || echo './'`protoc-c/c_enum_field.cc In file included from ./protoc-c/c_enum_field.h:68, from protoc-c/c_enum_field.cc:63: ./protoc-c/c_field.h:120:3: error: 'scoped_array' does not name a type 120 | scoped_array > field_generators_; | ^~~~~~~~~~~~ make: *** [Makefile:1395: protoc-c/protoc_gen_c-c_enum_field.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_generator.o `test -f 'protoc-c/c_generator.cc' || echo './'`protoc-c/c_generator.cc In file included from ./protoc-c/c_file.h:69, from protoc-c/c_generator.cc:68: ./protoc-c/c_field.h:120:3: error: 'scoped_array' does not name a type 120 | scoped_array > field_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:101:3: error: 'scoped_array' does not name a type 101 | scoped_array > message_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:102:3: error: 'scoped_array' does not name a type 102 | scoped_array > enum_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:103:3: error: 'scoped_array' does not name a type 103 | scoped_array > service_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:104:3: error: 'scoped_array' does not name a type 104 | scoped_array > extension_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:107:3: error: 'vector' does not name a type 107 | vector package_parts_; | ^~~~~~ protoc-c/c_generator.cc:83:39: error: 'vector' has not been declared 83 | void ParseOptions(const string& text, vector >* output) { | ^~~~~~ protoc-c/c_generator.cc:83:45: error: expected ',' or '...' before '<' token 83 | void ParseOptions(const string& text, vector >* output) { | ^ protoc-c/c_generator.cc: In function 'void google::protobuf::compiler::c::ParseOptions(const std::string&, int)': protoc-c/c_generator.cc:84:3: error: 'vector' was not declared in this scope 84 | vector parts; | ^~~~~~ protoc-c/c_generator.cc:84:3: note: suggested alternatives: In file included from /usr/include/c++/12/vector:64, from /usr/include/google/protobuf/compiler/code_generator.h:43, from ./protoc-c/c_generator.h:69, from protoc-c/c_generator.cc:63: /usr/include/c++/12/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ protoc-c/c_generator.cc:84:16: error: expected primary-expression before '>' token 84 | vector parts; | ^ protoc-c/c_generator.cc:84:18: error: 'parts' was not declared in this scope 84 | vector parts; | ^~~~~ protoc-c/c_generator.cc:89:5: error: 'pair' was not declared in this scope; did you mean 'std::pair'? 89 | pair value; | ^~~~ | std::pair In file included from /usr/include/c++/12/string:47, from ./protoc-c/c_generator.h:68: /usr/include/c++/12/bits/stl_iterator.h:2593:12: note: 'std::pair' declared here 2593 | struct pair; | ^~~~ protoc-c/c_generator.cc:89:16: error: expected primary-expression before ',' token 89 | pair value; | ^ protoc-c/c_generator.cc:89:24: error: expected primary-expression before '>' token 89 | pair value; | ^ protoc-c/c_generator.cc:89:26: error: 'value' was not declared in this scope 89 | pair value; | ^~~~~ protoc-c/c_generator.cc:97:5: error: 'output' was not declared in this scope 97 | output->push_back(value); | ^~~~~~ protoc-c/c_generator.cc: In member function 'virtual bool google::protobuf::compiler::c::CGenerator::Generate(const google::protobuf::FileDescriptor*, const std::string&, google::protobuf::compiler::OutputDirectory*, std::string*) const': protoc-c/c_generator.cc:108:3: error: 'vector' was not declared in this scope 108 | vector > options; | ^~~~~~ protoc-c/c_generator.cc:108:3: note: suggested alternatives: /usr/include/c++/12/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ protoc-c/c_generator.cc:108:10: error: 'pair' was not declared in this scope; did you mean 'std::pair'? 108 | vector > options; | ^~~~ | std::pair /usr/include/c++/12/bits/stl_iterator.h:2593:12: note: 'std::pair' declared here 2593 | struct pair; | ^~~~ protoc-c/c_generator.cc:108:21: error: expected primary-expression before ',' token 108 | vector > options; | ^ protoc-c/c_generator.cc:108:29: error: expected primary-expression before '>' token 108 | vector > options; | ^ protoc-c/c_generator.cc:108:31: error: expected primary-expression before '>' token 108 | vector > options; | ^ protoc-c/c_generator.cc:108:33: error: 'options' was not declared in this scope 108 | vector > options; | ^~~~~~~ protoc-c/c_generator.cc:152:5: error: 'scoped_ptr' was not declared in this scope 152 | scoped_ptr output( | ^~~~~~~~~~ protoc-c/c_generator.cc:152:40: error: expected primary-expression before '>' token 152 | scoped_ptr output( | ^ protoc-c/c_generator.cc:152:42: error: 'output' was not declared in this scope 152 | scoped_ptr output( | ^~~~~~ protoc-c/c_generator.cc:160:5: error: 'scoped_ptr' was not declared in this scope 160 | scoped_ptr output( | ^~~~~~~~~~ protoc-c/c_generator.cc:160:40: error: expected primary-expression before '>' token 160 | scoped_ptr output( | ^ protoc-c/c_generator.cc:160:42: error: 'output' was not declared in this scope 160 | scoped_ptr output( | ^~~~~~ make: *** [Makefile:1451: protoc-c/protoc_gen_c-c_generator.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_field.o `test -f 'protoc-c/c_field.cc' || echo './'`protoc-c/c_field.cc In file included from protoc-c/c_field.cc:63: ./protoc-c/c_field.h:120:3: error: 'scoped_array' does not name a type 120 | scoped_array > field_generators_; | ^~~~~~~~~~~~ protoc-c/c_field.cc: In constructor 'google::protobuf::compiler::c::FieldGeneratorMap::FieldGeneratorMap(const google::protobuf::Descriptor*)': protoc-c/c_field.cc:191:5: error: class 'google::protobuf::compiler::c::FieldGeneratorMap' does not have any field named 'field_generators_' 191 | field_generators_( | ^~~~~~~~~~~~~~~~~ protoc-c/c_field.cc:192:11: error: 'scoped_ptr' does not name a type 192 | new scoped_ptr[descriptor->field_count()]) { | ^~~~~~~~~~ protoc-c/c_field.cc:192:36: error: expected primary-expression before '>' token 192 | new scoped_ptr[descriptor->field_count()]) { | ^ protoc-c/c_field.cc:192:48: error: expected ',' before '->' token 192 | new scoped_ptr[descriptor->field_count()]) { | ^~ | , protoc-c/c_field.cc:192:48: error: expected identifier before '->' token 192 | new scoped_ptr[descriptor->field_count()]) { | ^~ protoc-c/c_field.cc: In lambda function: protoc-c/c_field.cc:192:64: error: expected '{' before ')' token 192 | new scoped_ptr[descriptor->field_count()]) { | ^ protoc-c/c_field.cc: In constructor 'google::protobuf::compiler::c::FieldGeneratorMap::FieldGeneratorMap(const google::protobuf::Descriptor*)': protoc-c/c_field.cc:195:5: error: 'field_generators_' was not declared in this scope; did you mean 'FieldGenerator'? 195 | field_generators_[i].reset(MakeGenerator(descriptor->field(i))); | ^~~~~~~~~~~~~~~~~ | FieldGenerator protoc-c/c_field.cc: In member function 'const google::protobuf::compiler::c::FieldGenerator& google::protobuf::compiler::c::FieldGeneratorMap::get(const google::protobuf::FieldDescriptor*) const': protoc-c/c_field.cc:221:11: error: 'field_generators_' was not declared in this scope; did you mean 'FieldGenerator'? 221 | return *field_generators_[field->index()]; | ^~~~~~~~~~~~~~~~~ | FieldGenerator make: *** [Makefile:1423: protoc-c/protoc_gen_c-c_field.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_message_field.o `test -f 'protoc-c/c_message_field.cc' || echo './'`protoc-c/c_message_field.cc In file included from ./protoc-c/c_message_field.h:68, from protoc-c/c_message_field.cc:63: ./protoc-c/c_field.h:120:3: error: 'scoped_array' does not name a type 120 | scoped_array > field_generators_; | ^~~~~~~~~~~~ make: *** [Makefile:1493: protoc-c/protoc_gen_c-c_message_field.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_primitive_field.o `test -f 'protoc-c/c_primitive_field.cc' || echo './'`protoc-c/c_primitive_field.cc In file included from ./protoc-c/c_primitive_field.h:68, from protoc-c/c_primitive_field.cc:63: ./protoc-c/c_field.h:120:3: error: 'scoped_array' does not name a type 120 | scoped_array > field_generators_; | ^~~~~~~~~~~~ make: *** [Makefile:1507: protoc-c/protoc_gen_c-c_primitive_field.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_string_field.o `test -f 'protoc-c/c_string_field.cc' || echo './'`protoc-c/c_string_field.cc In file included from ./protoc-c/c_string_field.h:68, from protoc-c/c_string_field.cc:63: ./protoc-c/c_field.h:120:3: error: 'scoped_array' does not name a type 120 | scoped_array > field_generators_; | ^~~~~~~~~~~~ make: *** [Makefile:1535: protoc-c/protoc_gen_c-c_string_field.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_helpers.o `test -f 'protoc-c/c_helpers.cc' || echo './'`protoc-c/c_helpers.cc protoc-c/c_helpers.cc: In function 'std::string google::protobuf::compiler::c::FullNameToLower(const std::string&)': protoc-c/c_helpers.cc:180:3: error: 'vector' was not declared in this scope 180 | vector pieces; | ^~~~~~ protoc-c/c_helpers.cc:180:3: note: suggested alternatives: In file included from /usr/include/c++/12/vector:64, from protoc-c/c_helpers.cc:63: /usr/include/c++/12/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ protoc-c/c_helpers.cc:180:16: error: expected primary-expression before '>' token 180 | vector pieces; | ^ protoc-c/c_helpers.cc:180:18: error: 'pieces' was not declared in this scope 180 | vector pieces; | ^~~~~~ protoc-c/c_helpers.cc: In function 'std::string google::protobuf::compiler::c::FullNameToUpper(const std::string&)': protoc-c/c_helpers.cc:191:3: error: 'vector' was not declared in this scope 191 | vector pieces; | ^~~~~~ protoc-c/c_helpers.cc:191:3: note: suggested alternatives: /usr/include/c++/12/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ protoc-c/c_helpers.cc:191:16: error: expected primary-expression before '>' token 191 | vector pieces; | ^ protoc-c/c_helpers.cc:191:18: error: 'pieces' was not declared in this scope 191 | vector pieces; | ^~~~~~ protoc-c/c_helpers.cc: In function 'std::string google::protobuf::compiler::c::FullNameToC(const std::string&)': protoc-c/c_helpers.cc:202:3: error: 'vector' was not declared in this scope 202 | vector pieces; | ^~~~~~ protoc-c/c_helpers.cc:202:3: note: suggested alternatives: /usr/include/c++/12/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ protoc-c/c_helpers.cc:202:16: error: expected primary-expression before '>' token 202 | vector pieces; | ^ protoc-c/c_helpers.cc:202:18: error: 'pieces' was not declared in this scope 202 | vector pieces; | ^~~~~~ protoc-c/c_helpers.cc: In function 'void google::protobuf::compiler::c::PrintComment(google::protobuf::io::Printer*, std::string)': protoc-c/c_helpers.cc:217:7: error: 'vector' was not declared in this scope 217 | vector comment_lines; | ^~~~~~ protoc-c/c_helpers.cc:217:7: note: suggested alternatives: /usr/include/c++/12/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ protoc-c/c_helpers.cc:217:20: error: expected primary-expression before '>' token 217 | vector comment_lines; | ^ protoc-c/c_helpers.cc:217:22: error: 'comment_lines' was not declared in this scope 217 | vector comment_lines; | ^~~~~~~~~~~~~ protoc-c/c_helpers.cc: In function 'std::set > google::protobuf::compiler::c::MakeKeywordsMap()': protoc-c/c_helpers.cc:272:21: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 272 | for (int i = 0; i < GOOGLE_ARRAYSIZE(kKeywordList); i++) { | ^ protoc-c/c_helpers.cc: At global scope: protoc-c/c_helpers.cc:506:23: error: 'vector' has not been declared 506 | vector* result) { | ^~~~~~ protoc-c/c_helpers.cc:506:29: error: expected ',' or '...' before '<' token 506 | vector* result) { | ^ protoc-c/c_helpers.cc: In function 'void google::protobuf::compiler::c::SplitStringUsing(const std::string&, const char*, int)': protoc-c/c_helpers.cc:507:30: error: 'vector' was not declared in this scope 507 | std::back_insert_iterator< vector > it(*result); | ^~~~~~ protoc-c/c_helpers.cc:507:30: note: suggested alternatives: /usr/include/c++/12/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ protoc-c/c_helpers.cc:507:43: error: template argument 1 is invalid 507 | std::back_insert_iterator< vector > it(*result); | ^ protoc-c/c_helpers.cc:507:45: error: expected unqualified-id before '>' token 507 | std::back_insert_iterator< vector > it(*result); | ^ protoc-c/c_helpers.cc:508:43: error: 'it' was not declared in this scope; did you mean 'io'? 508 | SplitStringToIteratorUsing(full, delim, it); | ^~ | io protoc-c/c_helpers.cc: In function 'std::string google::protobuf::compiler::c::CEscape(const std::string&)': protoc-c/c_helpers.cc:562:3: error: 'scoped_array' was not declared in this scope 562 | scoped_array dest(new char[dest_length]); | ^~~~~~~~~~~~ protoc-c/c_helpers.cc:562:16: error: expected primary-expression before 'char' 562 | scoped_array dest(new char[dest_length]); | ^~~~ protoc-c/c_helpers.cc:564:35: error: 'dest' was not declared in this scope 564 | dest.get(), dest_length, false); | ^~~~ protoc-c/c_helpers.cc: At global scope: protoc-c/c_helpers.cc:518:12: warning: 'int google::protobuf::compiler::c::CEscapeInternal(const char*, int, char*, int, bool)' defined but not used [-Wunused-function] 518 | static int CEscapeInternal(const char* src, int src_len, char* dest, | ^~~~~~~~~~~~~~~ make: *** [Makefile:1465: protoc-c/protoc_gen_c-c_helpers.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_file.o `test -f 'protoc-c/c_file.cc' || echo './'`protoc-c/c_file.cc In file included from ./protoc-c/c_file.h:69, from protoc-c/c_file.cc:64: ./protoc-c/c_field.h:120:3: error: 'scoped_array' does not name a type 120 | scoped_array > field_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:101:3: error: 'scoped_array' does not name a type 101 | scoped_array > message_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:102:3: error: 'scoped_array' does not name a type 102 | scoped_array > enum_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:103:3: error: 'scoped_array' does not name a type 103 | scoped_array > service_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:104:3: error: 'scoped_array' does not name a type 104 | scoped_array > extension_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_file.h:107:3: error: 'vector' does not name a type 107 | vector package_parts_; | ^~~~~~ In file included from protoc-c/c_file.cc:69: ./protoc-c/c_message.h:129:3: error: 'scoped_array' does not name a type 129 | scoped_array > nested_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_message.h:130:3: error: 'scoped_array' does not name a type 130 | scoped_array > enum_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_message.h:131:3: error: 'scoped_array' does not name a type 131 | scoped_array > extension_generators_; | ^~~~~~~~~~~~ protoc-c/c_file.cc: In constructor 'google::protobuf::compiler::c::FileGenerator::FileGenerator(const google::protobuf::FileDescriptor*, const std::string&)': protoc-c/c_file.cc:85:5: error: class 'google::protobuf::compiler::c::FileGenerator' does not have any field named 'message_generators_' 85 | message_generators_( | ^~~~~~~~~~~~~~~~~~~ protoc-c/c_file.cc:86:11: error: 'scoped_ptr' does not name a type 86 | new scoped_ptr[file->message_type_count()]), | ^~~~~~~~~~ protoc-c/c_file.cc:86:38: error: expected primary-expression before '>' token 86 | new scoped_ptr[file->message_type_count()]), | ^ protoc-c/c_file.cc:86:44: error: expected ',' before '->' token 86 | new scoped_ptr[file->message_type_count()]), | ^~ | , protoc-c/c_file.cc:86:44: error: expected identifier before '->' token 86 | new scoped_ptr[file->message_type_count()]), | ^~ protoc-c/c_file.cc: In lambda function: protoc-c/c_file.cc:86:67: error: expected '{' before ')' token 86 | new scoped_ptr[file->message_type_count()]), | ^ protoc-c/c_file.cc: In constructor 'google::protobuf::compiler::c::FileGenerator::FileGenerator(const google::protobuf::FileDescriptor*, const std::string&)': protoc-c/c_file.cc:87:5: error: class 'google::protobuf::compiler::c::FileGenerator' does not have any field named 'enum_generators_' 87 | enum_generators_( | ^~~~~~~~~~~~~~~~ protoc-c/c_file.cc:88:11: error: 'scoped_ptr' does not name a type 88 | new scoped_ptr[file->enum_type_count()]), | ^~~~~~~~~~ protoc-c/c_file.cc:88:35: error: expected primary-expression before '>' token 88 | new scoped_ptr[file->enum_type_count()]), | ^ protoc-c/c_file.cc:88:41: error: expected ',' before '->' token 88 | new scoped_ptr[file->enum_type_count()]), | ^~ | , protoc-c/c_file.cc:88:41: error: expected identifier before '->' token 88 | new scoped_ptr[file->enum_type_count()]), | ^~ protoc-c/c_file.cc: In lambda function: protoc-c/c_file.cc:88:61: error: expected '{' before ')' token 88 | new scoped_ptr[file->enum_type_count()]), | ^ protoc-c/c_file.cc: In constructor 'google::protobuf::compiler::c::FileGenerator::FileGenerator(const google::protobuf::FileDescriptor*, const std::string&)': protoc-c/c_file.cc:89:5: error: class 'google::protobuf::compiler::c::FileGenerator' does not have any field named 'service_generators_' 89 | service_generators_( | ^~~~~~~~~~~~~~~~~~~ protoc-c/c_file.cc:90:11: error: 'scoped_ptr' does not name a type 90 | new scoped_ptr[file->service_count()]), | ^~~~~~~~~~ protoc-c/c_file.cc:90:38: error: expected primary-expression before '>' token 90 | new scoped_ptr[file->service_count()]), | ^ protoc-c/c_file.cc:90:44: error: expected ',' before '->' token 90 | new scoped_ptr[file->service_count()]), | ^~ | , protoc-c/c_file.cc:90:44: error: expected identifier before '->' token 90 | new scoped_ptr[file->service_count()]), | ^~ protoc-c/c_file.cc: In lambda function: protoc-c/c_file.cc:90:62: error: expected '{' before ')' token 90 | new scoped_ptr[file->service_count()]), | ^ protoc-c/c_file.cc: In constructor 'google::protobuf::compiler::c::FileGenerator::FileGenerator(const google::protobuf::FileDescriptor*, const std::string&)': protoc-c/c_file.cc:91:5: error: class 'google::protobuf::compiler::c::FileGenerator' does not have any field named 'extension_generators_' 91 | extension_generators_( | ^~~~~~~~~~~~~~~~~~~~~ protoc-c/c_file.cc:92:11: error: 'scoped_ptr' does not name a type 92 | new scoped_ptr[file->extension_count()]) { | ^~~~~~~~~~ protoc-c/c_file.cc:92:40: error: expected primary-expression before '>' token 92 | new scoped_ptr[file->extension_count()]) { | ^ protoc-c/c_file.cc:92:46: error: expected ',' before '->' token 92 | new scoped_ptr[file->extension_count()]) { | ^~ | , protoc-c/c_file.cc:92:46: error: expected identifier before '->' token 92 | new scoped_ptr[file->extension_count()]) { | ^~ protoc-c/c_file.cc: In lambda function: protoc-c/c_file.cc:92:66: error: expected '{' before ')' token 92 | new scoped_ptr[file->extension_count()]) { | ^ protoc-c/c_file.cc: In constructor 'google::protobuf::compiler::c::FileGenerator::FileGenerator(const google::protobuf::FileDescriptor*, const std::string&)': protoc-c/c_file.cc:95:5: error: 'message_generators_' was not declared in this scope; did you mean 'MessageGenerator'? 95 | message_generators_[i].reset( | ^~~~~~~~~~~~~~~~~~~ | MessageGenerator protoc-c/c_file.cc:100:5: error: 'enum_generators_' was not declared in this scope; did you mean 'EnumGenerator'? 100 | enum_generators_[i].reset( | ^~~~~~~~~~~~~~~~ | EnumGenerator protoc-c/c_file.cc:105:5: error: 'service_generators_' was not declared in this scope; did you mean 'ServiceGenerator'? 105 | service_generators_[i].reset( | ^~~~~~~~~~~~~~~~~~~ | ServiceGenerator protoc-c/c_file.cc:110:5: error: 'extension_generators_' was not declared in this scope; did you mean 'ExtensionGenerator'? 110 | extension_generators_[i].reset( | ^~~~~~~~~~~~~~~~~~~~~ | ExtensionGenerator protoc-c/c_file.cc:114:44: error: 'package_parts_' was not declared in this scope 114 | SplitStringUsing(file_->package(), ".", &package_parts_); | ^~~~~~~~~~~~~~ protoc-c/c_file.cc: In member function 'void google::protobuf::compiler::c::FileGenerator::GenerateHeader(google::protobuf::io::Printer*)': protoc-c/c_file.cc:167:5: error: 'message_generators_' was not declared in this scope; did you mean 'MessageGenerator'? 167 | message_generators_[i]->GenerateStructTypedef(printer); | ^~~~~~~~~~~~~~~~~~~ | MessageGenerator protoc-c/c_file.cc:175:5: error: 'message_generators_' was not declared in this scope; did you mean 'MessageGenerator'? 175 | message_generators_[i]->GenerateEnumDefinitions(printer); | ^~~~~~~~~~~~~~~~~~~ | MessageGenerator protoc-c/c_file.cc:178:5: error: 'enum_generators_' was not declared in this scope; did you mean 'EnumGenerator'? 178 | enum_generators_[i]->GenerateDefinition(printer); | ^~~~~~~~~~~~~~~~ | EnumGenerator protoc-c/c_file.cc:184:5: error: 'message_generators_' was not declared in this scope; did you mean 'MessageGenerator'? 184 | message_generators_[i]->GenerateStructDefinition(printer); | ^~~~~~~~~~~~~~~~~~~ | MessageGenerator protoc-c/c_file.cc:188:5: error: 'message_generators_' was not declared in this scope; did you mean 'MessageGenerator'? 188 | message_generators_[i]->GenerateHelperFunctionDeclarations(printer, false); | ^~~~~~~~~~~~~~~~~~~ | MessageGenerator protoc-c/c_file.cc:193:5: error: 'message_generators_' was not declared in this scope; did you mean 'MessageGenerator'? 193 | message_generators_[i]->GenerateClosureTypedef(printer); | ^~~~~~~~~~~~~~~~~~~ | MessageGenerator protoc-c/c_file.cc:199:5: error: 'service_generators_' was not declared in this scope; did you mean 'ServiceGenerator'? 199 | service_generators_[i]->GenerateMainHFile(printer); | ^~~~~~~~~~~~~~~~~~~ | ServiceGenerator protoc-c/c_file.cc:204:5: error: 'extension_generators_' was not declared in this scope; did you mean 'ExtensionGenerator'? 204 | extension_generators_[i]->GenerateDeclaration(printer); | ^~~~~~~~~~~~~~~~~~~~~ | ExtensionGenerator protoc-c/c_file.cc:209:5: error: 'enum_generators_' was not declared in this scope; did you mean 'EnumGenerator'? 209 | enum_generators_[i]->GenerateDescriptorDeclarations(printer); | ^~~~~~~~~~~~~~~~ | EnumGenerator protoc-c/c_file.cc:212:5: error: 'message_generators_' was not declared in this scope; did you mean 'MessageGenerator'? 212 | message_generators_[i]->GenerateDescriptorDeclarations(printer); | ^~~~~~~~~~~~~~~~~~~ | MessageGenerator protoc-c/c_file.cc:215:5: error: 'service_generators_' was not declared in this scope; did you mean 'ServiceGenerator'? 215 | service_generators_[i]->GenerateDescriptorDeclarations(printer); | ^~~~~~~~~~~~~~~~~~~ | ServiceGenerator protoc-c/c_file.cc: In member function 'void google::protobuf::compiler::c::FileGenerator::GenerateSource(google::protobuf::io::Printer*)': protoc-c/c_file.cc:263:5: error: 'message_generators_' was not declared in this scope; did you mean 'MessageGenerator'? 263 | message_generators_[i]->GenerateHelperFunctionDefinitions(printer, false); | ^~~~~~~~~~~~~~~~~~~ | MessageGenerator protoc-c/c_file.cc:266:5: error: 'message_generators_' was not declared in this scope; did you mean 'MessageGenerator'? 266 | message_generators_[i]->GenerateMessageDescriptor(printer); | ^~~~~~~~~~~~~~~~~~~ | MessageGenerator protoc-c/c_file.cc:269:5: error: 'enum_generators_' was not declared in this scope; did you mean 'EnumGenerator'? 269 | enum_generators_[i]->GenerateEnumDescriptor(printer); | ^~~~~~~~~~~~~~~~ | EnumGenerator protoc-c/c_file.cc:272:5: error: 'service_generators_' was not declared in this scope; did you mean 'ServiceGenerator'? 272 | service_generators_[i]->GenerateCFile(printer); | ^~~~~~~~~~~~~~~~~~~ | ServiceGenerator make: *** [Makefile:1437: protoc-c/protoc_gen_c-c_file.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_extension.o `test -f 'protoc-c/c_extension.cc' || echo './'`protoc-c/c_extension.cc g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o t/generated-code2/cxx_generate_packed_data-cxx-generate-packed-data.o `test -f 't/generated-code2/cxx-generate-packed-data.cc' || echo './'`t/generated-code2/cxx-generate-packed-data.cc t/generated-code2/cxx-generate-packed-data.cc: In function 'void dump_test_unknown_fields()': t/generated-code2/cxx-generate-packed-data.cc:1001:36: error: 'Reflection' in 'class google::protobuf::Message' does not name a type 1001 | const google::protobuf::Message::Reflection *reflection = mess.GetReflection(); | ^~~~~~~~~~ t/generated-code2/cxx-generate-packed-data.cc:1002:43: error: 'reflection' was not declared in this scope 1002 | google::protobuf::UnknownFieldSet *fs = reflection->MutableUnknownFields(&mess); | ^~~~~~~~~~ make: *** [Makefile:1563: t/generated-code2/cxx_generate_packed_data-cxx-generate-packed-data.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_message.o `test -f 'protoc-c/c_message.cc' || echo './'`protoc-c/c_message.cc In file included from ./protoc-c/c_message.h:68, from protoc-c/c_message.cc:65: ./protoc-c/c_field.h:120:3: error: 'scoped_array' does not name a type 120 | scoped_array > field_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_message.h:129:3: error: 'scoped_array' does not name a type 129 | scoped_array > nested_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_message.h:130:3: error: 'scoped_array' does not name a type 130 | scoped_array > enum_generators_; | ^~~~~~~~~~~~ ./protoc-c/c_message.h:131:3: error: 'scoped_array' does not name a type 131 | scoped_array > extension_generators_; | ^~~~~~~~~~~~ protoc-c/c_message.cc: In constructor 'google::protobuf::compiler::c::MessageGenerator::MessageGenerator(const google::protobuf::Descriptor*, const std::string&)': protoc-c/c_message.cc:86:5: error: class 'google::protobuf::compiler::c::MessageGenerator' does not have any field named 'nested_generators_' 86 | nested_generators_(new scoped_ptr[ | ^~~~~~~~~~~~~~~~~~ protoc-c/c_message.cc:86:28: error: 'scoped_ptr' does not name a type 86 | nested_generators_(new scoped_ptr[ | ^~~~~~~~~~ protoc-c/c_message.cc:86:55: error: expected primary-expression before '>' token 86 | nested_generators_(new scoped_ptr[ | ^ protoc-c/c_message.cc:87:17: error: expected ',' before '->' token 87 | descriptor->nested_type_count()]), | ^~ | , protoc-c/c_message.cc:87:17: error: expected identifier before '->' token 87 | descriptor->nested_type_count()]), | ^~ protoc-c/c_message.cc: In lambda function: protoc-c/c_message.cc:87:39: error: expected '{' before ')' token 87 | descriptor->nested_type_count()]), | ^ protoc-c/c_message.cc: In constructor 'google::protobuf::compiler::c::MessageGenerator::MessageGenerator(const google::protobuf::Descriptor*, const std::string&)': protoc-c/c_message.cc:88:5: error: class 'google::protobuf::compiler::c::MessageGenerator' does not have any field named 'enum_generators_' 88 | enum_generators_(new scoped_ptr[ | ^~~~~~~~~~~~~~~~ protoc-c/c_message.cc:88:26: error: 'scoped_ptr' does not name a type 88 | enum_generators_(new scoped_ptr[ | ^~~~~~~~~~ protoc-c/c_message.cc:88:50: error: expected primary-expression before '>' token 88 | enum_generators_(new scoped_ptr[ | ^ protoc-c/c_message.cc:89:17: error: expected ',' before '->' token 89 | descriptor->enum_type_count()]), | ^~ | , protoc-c/c_message.cc:89:17: error: expected identifier before '->' token 89 | descriptor->enum_type_count()]), | ^~ protoc-c/c_message.cc: In lambda function: protoc-c/c_message.cc:89:37: error: expected '{' before ')' token 89 | descriptor->enum_type_count()]), | ^ protoc-c/c_message.cc: In constructor 'google::protobuf::compiler::c::MessageGenerator::MessageGenerator(const google::protobuf::Descriptor*, const std::string&)': protoc-c/c_message.cc:90:5: error: class 'google::protobuf::compiler::c::MessageGenerator' does not have any field named 'extension_generators_' 90 | extension_generators_(new scoped_ptr[ | ^~~~~~~~~~~~~~~~~~~~~ protoc-c/c_message.cc:90:31: error: 'scoped_ptr' does not name a type 90 | extension_generators_(new scoped_ptr[ | ^~~~~~~~~~ protoc-c/c_message.cc:90:60: error: expected primary-expression before '>' token 90 | extension_generators_(new scoped_ptr[ | ^ protoc-c/c_message.cc:91:17: error: expected ',' before '->' token 91 | descriptor->extension_count()]) { | ^~ | , protoc-c/c_message.cc:91:17: error: expected identifier before '->' token 91 | descriptor->extension_count()]) { | ^~ protoc-c/c_message.cc: In lambda function: protoc-c/c_message.cc:91:37: error: expected '{' before ')' token 91 | descriptor->extension_count()]) { | ^ protoc-c/c_message.cc: In constructor 'google::protobuf::compiler::c::MessageGenerator::MessageGenerator(const google::protobuf::Descriptor*, const std::string&)': protoc-c/c_message.cc:94:5: error: 'nested_generators_' was not declared in this scope; did you mean 'field_generators_'? 94 | nested_generators_[i].reset( | ^~~~~~~~~~~~~~~~~~ | field_generators_ protoc-c/c_message.cc:99:5: error: 'enum_generators_' was not declared in this scope; did you mean 'EnumGenerator'? 99 | enum_generators_[i].reset( | ^~~~~~~~~~~~~~~~ | EnumGenerator protoc-c/c_message.cc:104:5: error: 'extension_generators_' was not declared in this scope; did you mean 'ExtensionGenerator'? 104 | extension_generators_[i].reset( | ^~~~~~~~~~~~~~~~~~~~~ | ExtensionGenerator protoc-c/c_message.cc: In member function 'void google::protobuf::compiler::c::MessageGenerator::GenerateStructTypedef(google::protobuf::io::Printer*)': protoc-c/c_message.cc:117:5: error: 'nested_generators_' was not declared in this scope; did you mean 'field_generators_'? 117 | nested_generators_[i]->GenerateStructTypedef(printer); | ^~~~~~~~~~~~~~~~~~ | field_generators_ protoc-c/c_message.cc: In member function 'void google::protobuf::compiler::c::MessageGenerator::GenerateEnumDefinitions(google::protobuf::io::Printer*)': protoc-c/c_message.cc:124:5: error: 'nested_generators_' was not declared in this scope; did you mean 'field_generators_'? 124 | nested_generators_[i]->GenerateEnumDefinitions(printer); | ^~~~~~~~~~~~~~~~~~ | field_generators_ protoc-c/c_message.cc:128:5: error: 'enum_generators_' was not declared in this scope; did you mean 'EnumGenerator'? 128 | enum_generators_[i]->GenerateDefinition(printer); | ^~~~~~~~~~~~~~~~ | EnumGenerator protoc-c/c_message.cc: In member function 'void google::protobuf::compiler::c::MessageGenerator::GenerateStructDefinition(google::protobuf::io::Printer*)': protoc-c/c_message.cc:136:5: error: 'nested_generators_' was not declared in this scope; did you mean 'field_generators_'? 136 | nested_generators_[i]->GenerateStructDefinition(printer); | ^~~~~~~~~~~~~~~~~~ | field_generators_ protoc-c/c_message.cc: In member function 'void google::protobuf::compiler::c::MessageGenerator::GenerateHelperFunctionDeclarations(google::protobuf::io::Printer*, bool)': protoc-c/c_message.cc:257:5: error: 'nested_generators_' was not declared in this scope; did you mean 'field_generators_'? 257 | nested_generators_[i]->GenerateHelperFunctionDeclarations(printer, true); | ^~~~~~~~~~~~~~~~~~ | field_generators_ protoc-c/c_message.cc: In member function 'void google::protobuf::compiler::c::MessageGenerator::GenerateDescriptorDeclarations(google::protobuf::io::Printer*)': protoc-c/c_message.cc:296:5: error: 'nested_generators_' was not declared in this scope; did you mean 'field_generators_'? 296 | nested_generators_[i]->GenerateDescriptorDeclarations(printer); | ^~~~~~~~~~~~~~~~~~ | field_generators_ protoc-c/c_message.cc:300:5: error: 'enum_generators_' was not declared in this scope; did you mean 'EnumGenerator'? 300 | enum_generators_[i]->GenerateDescriptorDeclarations(printer); | ^~~~~~~~~~~~~~~~ | EnumGenerator protoc-c/c_message.cc: In member function 'void google::protobuf::compiler::c::MessageGenerator::GenerateClosureTypedef(google::protobuf::io::Printer*)': protoc-c/c_message.cc:306:5: error: 'nested_generators_' was not declared in this scope; did you mean 'field_generators_'? 306 | nested_generators_[i]->GenerateClosureTypedef(printer); | ^~~~~~~~~~~~~~~~~~ | field_generators_ protoc-c/c_message.cc: In member function 'void google::protobuf::compiler::c::MessageGenerator::GenerateHelperFunctionDefinitions(google::protobuf::io::Printer*, bool)': protoc-c/c_message.cc:330:5: error: 'nested_generators_' was not declared in this scope; did you mean 'field_generators_'? 330 | nested_generators_[i]->GenerateHelperFunctionDefinitions(printer, true); | ^~~~~~~~~~~~~~~~~~ | field_generators_ protoc-c/c_message.cc: In member function 'void google::protobuf::compiler::c::MessageGenerator::GenerateMessageDescriptor(google::protobuf::io::Printer*)': protoc-c/c_message.cc:404:7: error: 'nested_generators_' was not declared in this scope; did you mean 'field_generators_'? 404 | nested_generators_[i]->GenerateMessageDescriptor(printer); | ^~~~~~~~~~~~~~~~~~ | field_generators_ protoc-c/c_message.cc:408:7: error: 'enum_generators_' was not declared in this scope; did you mean 'EnumGenerator'? 408 | enum_generators_[i]->GenerateEnumDescriptor(printer); | ^~~~~~~~~~~~~~~~ | EnumGenerator make: *** [Makefile:1479: protoc-c/protoc_gen_c-c_message.o] Error 1 g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_enum.o `test -f 'protoc-c/c_enum.cc' || echo './'`protoc-c/c_enum.cc g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o protoc-c/protoc_gen_c-c_service.o `test -f 'protoc-c/c_service.cc' || echo './'`protoc-c/c_service.cc g++ -DHAVE_CONFIG_H -I. -include ./config.h -I./protobuf-c -I. -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o t/generated_code2_cxx_generate_packed_data-test-full.pb.o `test -f 't/test-full.pb.cc' || echo './'`t/test-full.pb.cc error: Bad exit status from /var/tmp/rpm-tmp.0NBK6G (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.0NBK6G (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/protobuf-c.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/protobuf-c.spec