Menu

#211 5.18.16: build fails with gcc 12.0.0.0

autogen
closed
None
1
2022-02-28
2022-01-27
No

Looks like autogen build fails with latest gcc 12.

+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --disable-silent-rules --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 --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-rpath --disable-static
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

                                                                      A    U    T    O    G    E    N

GNU AutoGen-5.18.16                                                                                                                                      libopts.la-42:1:17
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
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-redhat-linux-gnu-gcc... /usr/bin/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 /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to enable C11 features... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking dependency style of /usr/bin/gcc... none
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 minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
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 /usr/bin/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/gcc-nm
checking the name lister (/usr/bin/gcc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-redhat-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-redhat-linux-gnu-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-redhat-linux-gnu-dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-redhat-linux-gnu-ar... /usr/bin/gcc-ar
checking for archiver @FILE support... @
checking for x86_64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-redhat-linux-gnu-ranlib... /usr/bin/gcc-ranlib
checking command to parse /usr/bin/gcc-nm output from /usr/bin/gcc object... 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-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc option to produce PIC... -fPIC -DPIC
checking if /usr/bin/gcc PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/gcc static flag -static works... no
checking if /usr/bin/gcc supports -c -o file.o... yes
checking if /usr/bin/gcc supports -c -o file.o... (cached) yes
checking whether the /usr/bin/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 if malloc debugging is wanted... no
checking for /usr/bin/gcc options needed to detect all undeclared functions... none needed
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgets_unlocked is declared... yes
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking for texi2html... :
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for dlopen in -ldl... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for uid_t in sys/types.h... yes
checking for long double with more range or precision than double... yes
checking for long long... yes
checking for uintmax_t... yes
checking for size_t... (cached) yes
checking for wchar_t... yes
checking size of char*... 8
checking size of int... 4
checking size of long... 8
checking size of short... 2
checking for unsigned long long int... yes
checking for struct stat.st_mtim... yes
checking for struct stat.st_mtimensec... no
checking for struct stat.st_mtimespec... no
checking for strchr... yes
checking for strlcpy... no
checking for snprintf... yes
checking for dlopen... yes
checking for utimensat... yes
checking for clock_gettime... yes
checking for library containing copysign... none required
checking for library containing copysignl... none required
checking for library containing modfl... none required
checking for libio.h... no
checking for ctype.h... yes
checking for assert.h... yes
checking for sys/resource.h... yes
checking whether sigsetjmp is declared... yes
checking whether sys_siglist is declared... no
checking for putenv... yes
checking for getdate_r... yes
checking for utimes... yes
checking for futimes... yes
checking for inline... (cached) inline
checking for long long int... yes
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/grep -E
checking for fgrep... (cached) /usr/bin/grep -F
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for vprintf... yes
checking for x86_64-redhat-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: checking for guile 2.2
configure: found guile 2.2
checking for ld... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking host CPU and C ABI... x86_64
checking for the common suffixes of directories in the library search path... lib64,lib64
checking for egrep... (cached) /usr/bin/grep -E
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/mman.h... yes
checking for sys/param.h... yes
checking for sys/poll.h... yes
checking for sys/procset.h... no
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/stropts.h... no
checking for sys/time.h... yes
checking for sys/un.h... yes
checking for sys/wait.h... yes
checking for dlfcn.h... (cached) yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for libgen.h... yes
checking for libintl.h... yes
checking for memory.h... yes
checking for netinet/in.h... yes
checking for setjmp.h... yes
checking for stdbool.h... yes
checking for sysexits.h... yes
checking for unistd.h... (cached) yes
checking for utime.h... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking for limits.h... yes
checking for inttypes.h... (cached) yes
checking for working stdnoreturn.h... yes
checking for runetype.h... no
checking for wchar.h... yes
checking for wchar_t... (cached) yes
checking for wint_t... yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for intptr_t... yes
checking for uintptr_t... yes
checking for uint_t... no
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for ptrdiff_t... yes
checking size of char *... 8
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of short... (cached) 2
checking for pathfind in -lgen... no
checking for gettext in -lintl... no
checking for working fork... yes
checking for working vfork... (cached) yes
checking for mmap... yes
checking for canonicalize_file_name... yes
checking for snprintf... (cached) yes
checking for strdup... yes
checking for strchr... (cached) yes
checking for strrchr... yes
checking for strsignal... yes
checking for fchmod... yes
checking for fstat... yes
checking for chmod... yes
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking whether shell scripts are desired... yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking whether using shell scripts... yes
checking whether statically link autogen to libopts... no
checking whether setjmp() links okay... yes
checking whether __attribute__((format_arg(n))) works... yes
checking whether sigsetjmp() links okay... yes
checking whether with-libxml2 was specified... no
checking whether with-libxml2-cflags was specified... no
checking whether with-libxml2-libs was specified... no
configure: xml2-config used for CFLAGS: -I/usr/include/libxml2
configure: xml2-config used for LIBS: -lxml2 -lz -llzma -lm
checking whether libxml2 can be linked with... yes
checking whether sysinfo(2) is Solaris... no
checking whether specify an autogen timeout... no
checking whether strcspn matches prototype and works... no
checking whether uname(2) is POSIX... yes
checking whether runtime library dirs can be specified... -Wl,-R${libdir}
checking whether wanting autogen debugging... no
checking whether name of the packager of this software is supplied... no
checking whether packager-specific version information is supplied... no
checking whether bug reporting URI/e-mail/etc. is supplied... no
checking for GUILE... yes
checking whether a reg expr header is specified... no
checking whether with-libregex was specified... no
checking whether with-libregex-cflags was specified... no
checking whether with-libregex-libs was specified... no
checking whether libregex functions properly... yes
checking whether pathfind(3) works... no
checking whether /dev/zero is readable device... crw-rw-rw- 1 root root 1, 5 Jan 16 22:45 /dev/zero
checking whether we have a functional realpath(3C)... yes
checking whether strftime() works... yes
checking whether fopen accepts "b" mode... yes
checking whether fopen accepts "t" mode... yes
checking whether not wanting optional option args... yes
checking for fopencookie... yes
checking for static inline... static inline
checking for working stdnoreturn.h... (cached) yes
checking if malloc debugging is wanted... no
checking for gawk... (cached) gawk
checking for runetype.h... (cached) no
checking for wchar.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for wchar_t... (cached) yes
checking for wint_t... (cached) yes
checking for long double... yes
checking for strtoul... yes
checking for ldexpl... yes
checking for frexpl... yes
checking for log in -lm... yes
checking for copysign... yes
checking for copysignl... yes
checking whether ln -s works... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating autoopts/mk-autoopts-pc
config.status: creating autoopts/autoopts-config
config.status: creating autoopts/tpl/tpl-config.tlib
config.status: creating doc/auto_gen.tpl
config.status: creating autoopts/test/defs
config.status: creating config/mk-shdefs
config.status: creating pkg/pkg-env
config.status: creating Makefile
config.status: creating agen5/Makefile
config.status: creating agen5/test/Makefile
config.status: creating autoopts/Makefile
config.status: creating autoopts/test/Makefile
config.status: creating columns/Makefile
config.status: creating compat/Makefile
config.status: creating doc/Makefile
config.status: creating getdefs/Makefile
config.status: creating getdefs/test/Makefile
config.status: creating pkg/Makefile
config.status: creating snprintfv/Makefile
config.status: creating xml2ag/Makefile
config.status: creating xml2ag/test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing stamp-h commands
------------------------------------------------------------------------
Configuration:

  Source code location:   .
  Compiler:               /usr/bin/gcc
  Compiler flags:         -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wno-implicit-fallthrough -Wno-format-overflow -Wno-format-truncation -Wno-format-contains-nul -fno-strict-aliasing
  Host System Type:       x86_64-redhat-linux-gnu
  Install path:           /usr

  See config.h for further configuration information.
------------------------------------------------------------------------

+ /usr/bin/make -O -j12 V=1 VERBOSE=1 MAKEINFOFLAGS=--no-split
/bin/sh config/mk-shdefs config/shdefs
+ exec
++ mktemp --suffix=.tdir -d /tmp/shdefs-XXXXXXXXX
+ tmp=/tmp/shdefs-trjPM8Mjv.tdir
+ exec
config.status: creating shdef-temp
/usr/bin/make  all-recursive
Making all in compat
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/compat'
:
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/compat'
Making all in snprintfv
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/snprintfv'
for f in filament.c format.c printf.c mem.c stream.c custom.c ; do echo "#include \"$f\"" ; done > snv.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/snprintfv'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/snprintfv'
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -I..   -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wno-implicit-fallthrough -Wno-format-overflow -Wno-format-truncation -Wno-format-contains-nul -fno-strict-aliasing -c -o snv.lo snv.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I.. -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wno-implicit-fallthrough -Wno-format-overflow -Wno-format-truncation -Wno-format-contains-nul -fno-strict-aliasing -c snv.c  -fPIC -DPIC -o .libs/snv.o
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/snprintfv'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/snprintfv'
/bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wno-implicit-fallthrough -Wno-format-overflow -Wno-format-truncation -Wno-format-contains-nul -fno-strict-aliasing -no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1 -o libsnprintfv.la  snv.lo  -lm -ldl
libtool: link: /usr/bin/gcc-ar cru .libs/libsnprintfv.a .libs/snv.o
libtool: link: /usr/bin/gcc-ranlib .libs/libsnprintfv.a
libtool: link: ( cd ".libs" && rm -f "libsnprintfv.la" && ln -s "../libsnprintfv.la" "libsnprintfv.la" )
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/snprintfv'
Making all in autoopts
/usr/bin/make  all-recursive
Making all in test
make[4]: Nothing to be done for 'all'.
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/autoopts'
LGCFLAGS="-I/usr/include/guile/2.2 " \
AGexe="/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/agen5/autogen" GDexe="/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/getdefs/getdefs" CLexe="/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/columns/columns" srcdir="."     top_srcdir=".." builddir="." top_builddir=".." AO_AGE="17"     AO_CURRENT="42" AO_REVISION="1" POSIX_SHELL="/usr/bin/bash" \
    /usr/bin/bash ./mk-tpl-config.sh tpl-config-stamp autoopts/options.h autoopts/usage-txt.h genshell.h option-xat-attribute.h option-value-type.h ao-strs.h ag-char-map.h save-flags.h autoopts.h project.h proto.h parse-duration.c ao-strs.c option-value-type.c option-xat-attribute.c save-flags.c autoopts.c alias.c    boolean.c   check.c     configfile.c cook.c enum.c     env.c       file.c      find.c       genshell.c load.c     makeshell.c nested.c    numeric.c    pgusage.c putshell.c reset.c     restore.c   save.c       sort.c stack.c    streqvcmp.c text_mmap.c time.c       tokenize.c usage.c    version.c   init.c
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/autoopts'
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/autogen-5.18.16/autoopts'
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../autoopts  -DPKGDATADIR='"/usr/share/autogen"' -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wno-implicit-fallthrough -Wno-format-overflow -Wno-format-truncation -Wno-format-contains-nul -fno-strict-aliasing -Wall -Werror -Wcast-align -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -Wstrict-aliasing=3 -Wextra -Wno-cast-qual -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wno-implicit-fallthrough -Wno-format-overflow -Wno-format-truncation -Wno-format-contains-nul -fno-strict-aliasing -c -o libopts_la-libopts.lo `test -f 'libopts.c' || echo './'`libopts.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../autoopts -DPKGDATADIR=\"/usr/share/autogen\" -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wno-implicit-fallthrough -Wno-format-overflow -Wno-format-truncation -Wno-format-contains-nul -fno-strict-aliasing -Wall -Werror -Wcast-align -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -Wstrict-aliasing=3 -Wextra -Wno-cast-qual -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wno-implicit-fallthrough -Wno-format-overflow -Wno-format-truncation -Wno-format-contains-nul -fno-strict-aliasing -c libopts.c  -fPIC -DPIC -o .libs/libopts_la-libopts.o
In file included from libopts.c:26:
configfile.c: In function 'trim_xml_text':
configfile.c:814:16: error: dangling pointer 'etext_30' to 'z' may be used [-Werror=dangling-pointer=]
  814 |         return etext;
      |                ^~~~~
configfile.c:796:14: note: 'z' declared here
  796 |         char z[64], *pz = z;
      |              ^
In file included from ../autoopts/project.h:31,
                 from libopts.c:2:
../autoopts/ag-char-map.h:179:39: error: dangling pointer 'etext_30' to 'z' may be used [-Werror=dangling-pointer=]
  179 | #define SPN_WHITESPACE_BACK(s,e)      spn_ag_char_map_back(s, e, 12)
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
configfile.c:796:14: note: 'z' declared here
  796 |         char z[64], *pz = z;
      |              ^
configfile.c:817:16: error: dangling pointer 'etext_30' to 'z' may be used [-Werror=dangling-pointer=]
  817 |         char * result = etext + nm_len;
      |                ^~~~~~
configfile.c:796:14: note: 'z' declared here
  796 |         char z[64], *pz = z;
      |              ^
configfile.c:813:8: error: dangling pointer 'etext_30' to 'z' may be used [-Werror=dangling-pointer=]
  813 |     if (etext == NULL)
      |        ^
configfile.c:796:14: note: 'z' declared here
  796 |         char z[64], *pz = z;
      |              ^
configfile.c:822:16: error: dangling pointer 'etext_8' to 'z' may be used [-Werror=dangling-pointer=]
  822 |         *etext = NUL;
configfile.c:796:14: note: 'z' declared here
  796 |         char z[64], *pz = z;
      |              ^
cc1: all warnings being treated as errors
make[4]: *** [Makefile:717: libopts_la-libopts.lo] Error 1

Discussion

  • Bruce Korb

    Bruce Korb - 2022-02-28
    • status: open --> closed
    • assigned_to: Bruce Korb
     
  • Bruce Korb

    Bruce Korb - 2022-02-28

    GCC bug

     

Log in to post a comment.

MongoDB Logo MongoDB