crash
crash copied to clipboard
Fails to compile with GCC 11
I am trying to compile crash
7.3.0 at Arch Linux and the build fails. For me it looks like the old gdb does not play well with modern compilers.
TARGET: X86_64
CRASH: 7.3.0
GDB: 7.6
--2021-06-22 19:45:06-- http://ftp.gnu.org/gnu/gdb/gdb-7.6.tar.gz
Resolving ftp.gnu.org (ftp.gnu.org)... 209.51.188.20, 2001:470:142:3::b
Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31437633 (30M) [application/x-gzip]
Saving to: ‘gdb-7.6.tar.gz’
0K ........ ........ ........ ........ ........ ........ 10% 4.87M 6s
3072K ........ ........ ........ ........ ........ ........ 20% 17.9M 3s
6144K ........ ........ ........ ........ ........ ........ 30% 17.8M 2s
9216K ........ ........ ........ ........ ........ ........ 40% 17.5M 2s
12288K ........ ........ ........ ........ ........ ........ 50% 19.0M 1s
15360K ........ ........ ........ ........ ........ ........ 60% 9.79M 1s
18432K ........ ........ ........ ........ ........ ........ 70% 13.1M 1s
21504K ........ ........ ........ ........ ........ ........ 80% 11.9M 1s
24576K ........ ........ ........ ........ ........ ........ 90% 17.1M 0s
27648K ........ ........ ........ ........ ........ ....... 100% 23.0M=2.4s
2021-06-22 19:45:09 (12.6 MB/s) - ‘gdb-7.6.tar.gz’ saved [31437633/31437633]
if [ -f gdb-7.6.patch ] && [ -s gdb-7.6.patch ]; then \
patch -p0 < gdb-7.6.patch; cp gdb-7.6.patch gdb-7.6; fi
patching file gdb-7.6/libiberty/Makefile.in
patching file gdb-7.6/opcodes/i386-dis.c
patching file gdb-7.6/gdb/dwarf2read.c
patching file gdb-7.6/gdb/amd64-linux-nat.c
patching file gdb-7.6/gdb/symfile.c
patching file gdb-7.6/gdb/cli/cli-cmds.c
patching file gdb-7.6/gdb/psymtab.c
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/gdb/c-typeprint.c
patching file gdb-7.6/gdb/xml-syscall.c
patching file gdb-7.6/gdb/exceptions.c
patching file gdb-7.6/gdb/valprint.h
patching file gdb-7.6/gdb/target.c
patching file gdb-7.6/gdb/printcmd.c
patching file gdb-7.6/gdb/ui-file.c
patching file gdb-7.6/gdb/main.c
patching file gdb-7.6/gdb/valprint.c
patching file gdb-7.6/gdb/Makefile.in
patching file gdb-7.6/gdb/c-lang.c
patching file gdb-7.6/readline/rltypedefs.h
patching file gdb-7.6/readline/readline.h
patching file gdb-7.6/readline/misc.c
patching file gdb-7.6/Makefile.in
patching file gdb-7.6/gdb/defs.h
patching file gdb-7.6/bfd/elflink.c
patching file gdb-7.6/gdb/s390-nat.c
patching file gdb-7.6/gdb/printcmd.c
patching file gdb-7.6/bfd/bfd-in.h
patching file gdb-7.6/bfd/bfd-in2.h
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/gdb/aarch64-linux-nat.c
patching file gdb-7.6/sim/igen/Makefile.in
patching file gdb-7.6/sim/mips/cp1.c
patching file gdb-7.6/sim/mips/sim-main.h
patching file gdb-7.6/readline/util.c
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/opcodes/i386-dis.c
patching file gdb-7.6/bfd/coff-i386.c
patching file gdb-7.6/bfd/coff-x86_64.c
patching file gdb-7.6/opcodes/arm-dis.c
patching file gdb-7.6/bfd/elf64-ppc.c
patching file gdb-7.6/include/opcode/ppc.h
patching file gdb-7.6/opcodes/mips-dis.c
patching file gdb-7.6/gdb/ada-lang.c
patching file gdb-7.6/gdb/linux-record.c
patching file gdb-7.6/gdb/inflow.c
patching file gdb-7.6/gdb/printcmd.c
patching file gdb-7.6/gdb/c-typeprint.c
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/bfd/elf64-s390.c
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/bfd/configure
patching file gdb-7.6/opcodes/configure
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/gdb/common/linux-ptrace.c
patching file gdb-7.6/gdb/features/aarch64.c
patching file gdb-7.6/gdb/aarch64-linux-nat.c
patching file gdb-7.6/gdb/aarch64-tdep.c
patching file gdb-7.6/gdb/symtab.c
patching file gdb-7.6/gdb/mips-tdep.c
if [ "x86_64" = "ppc64le" ] && [ -f gdb-7.6-ppc64le-support.patch ]; then \
patch -d gdb-7.6 -p1 -F0 < gdb-7.6-ppc64le-support.patch ; \
fi
if [ "x86_64" = "x86_64" ] && [ "X86_64" = "PPC64" ] && [ -f gdb-7.6-ppc64le-support.patch ]; then \
patch -d gdb-7.6 -p1 -F0 < gdb-7.6-ppc64le-support.patch ; \
fi
if [ -f /usr/include/proc_service.h ]; then \
grep 'extern ps_err_e ps_get_thread_area (struct' /usr/include/proc_service.h; \
if [ $? -eq 0 ]; then \
patch -p0 < gdb-7.6-proc_service.h.patch; \
fi; \
fi
extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
patching file gdb-7.6/gdb/gdb_proc_service.h
patching file gdb-7.6/gdb/amd64-linux-nat.c
patching file gdb-7.6/gdb/aarch64-linux-nat.c
Hunk #1 succeeded at 751 (offset 1 line).
patching file gdb-7.6/gdb/arm-linux-nat.c
patching file gdb-7.6/gdb/i386-linux-nat.c
patching file gdb-7.6/gdb/mips-linux-nat.c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
*** This configuration is not supported in the following subdirectories:
sim
(Any other directories should still work fine.)
checking for default BUILD_CONFIG...
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for readelf... readelf
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gcj... no
checking for gfortran... no
checking for gccgo... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for objdump... objdump
checking for ranlib... ranlib
checking for readelf... readelf
checking for strip... strip
checking for windres... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... host tool
checking where to find the target c++... host tool
checking where to find the target c++ for libstdc++... host tool
checking where to find the target dlltool... host tool
checking where to find the target gcc... host tool
checking where to find the target gcj... host tool
checking where to find the target gfortran... host tool
checking where to find the target gccgo... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
Configuring in ./libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo --split-size=5000000
checking for perl... perl
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking how to run the C preprocessor... gcc -E
checking whether gcc supports -W... yes
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wc++-compat... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -pedantic ... yes
checking whether gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking whether byte ordering is bigendian... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for sys/file.h... no
checking for sys/param.h... no
checking for limits.h... no
checking for stdlib.h... (cached) no
checking for malloc.h... no
checking for string.h... (cached) no
checking for unistd.h... (cached) no
checking for strings.h... (cached) no
checking for sys/time.h... no
checking for time.h... no
checking for sys/resource.h... no
checking for sys/stat.h... (cached) no
checking for sys/mman.h... no
checking for fcntl.h... no
checking for alloca.h... no
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... no
checking for sys/systemcfg.h... no
checking for stdint.h... (cached) no
checking for stdio_ext.h... no
checking for process.h... no
checking for sys/prctl.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking size of int... 4
checking for a 64-bit type... unsigned long
checking for intptr_t... no
checking for uintptr_t... no
checking for ssize_t... yes
checking for pid_t... yes
checking for library containing strerror... none required
checking for asprintf... yes
checking for atexit... yes
checking for basename... yes
checking for bcmp... yes
checking for bcopy... yes
checking for bsearch... yes
checking for bzero... yes
checking for calloc... yes
checking for clock... yes
checking for ffs... yes
checking for getcwd... yes
checking for getpagesize... yes
checking for gettimeofday... yes
checking for index... yes
checking for insque... yes
checking for memchr... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmem... yes
checking for memmove... yes
checking for mempcpy... yes
checking for memset... yes
checking for mkstemps... yes
checking for putenv... yes
checking for random... yes
checking for rename... yes
checking for rindex... yes
checking for setenv... yes
checking for snprintf... yes
checking for sigsetmask... yes
checking for stpcpy... yes
checking for stpncpy... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strndup... yes
checking for strnlen... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for strverscmp... yes
checking for tmpnam... yes
checking for vasprintf... yes
checking for vfprintf... yes
checking for vprintf... yes
checking for vsnprintf... yes
checking for vsprintf... yes
checking for waitpid... yes
checking for setproctitle... no
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... 1
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for _doprnt... no
checking for sys_errlist... no
checking for sys_nerr... no
checking for sys_siglist... no
checking for external symbol _system_configuration... no
checking for __fsetlocking... yes
checking for canonicalize_file_name... yes
checking for dup3... yes
checking for getrlimit... yes
checking for getrusage... yes
checking for getsysinfo... no
checking for gettimeofday... (cached) yes
checking for on_exit... yes
checking for psignal... yes
checking for pstat_getdynamic... no
checking for pstat_getstatic... no
checking for realpath... yes
checking for setrlimit... yes
checking for sbrk... yes
checking for spawnve... no
checking for spawnvpe... no
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for sysctl... no
checking for sysmp... no
checking for table... no
checking for times... yes
checking for wait3... yes
checking for wait4... yes
checking whether basename is declared... no
checking whether ffs is declared... no
checking whether asprintf is declared... no
checking whether vasprintf is declared... no
checking whether snprintf is declared... yes
checking whether vsnprintf is declared... yes
checking whether calloc is declared... yes
checking whether getenv is declared... yes
checking whether getopt is declared... no
checking whether malloc is declared... yes
checking whether realloc is declared... yes
checking whether sbrk is declared... no
checking whether strverscmp is declared... no
checking whether canonicalize_file_name must be declared... yes
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) no
checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for working strncmp... no
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
Configuring in ./intl
configure: creating cache ./config.cache
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for x86_64-unknown-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 3.7.6, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for aclocal... aclocal
checking for autoconf... autoconf
checking for autoheader... autoheader
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.intl
config.status: creating config.h
config.status: executing default-1 commands
Configuring in ./bfd
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for library containing strerror... none required
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for ld option to reload object files... -r
checking for x86_64-unknown-linux-gnu-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-unknown-linux-gnu-ar... (cached) ar
checking for x86_64-unknown-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-unknown-linux-gnu-ranlib... (cached) ranlib
checking command to parse nm output from gcc object... ok
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... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
Setting warning flags = -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to install libbfd... yes
checking whether NLS is requested... yes
checking for catalogs to be installed... da es fi fr id ja ro ru rw sv tr uk vi zh_CN da es fi fr id ja ro ru rw sv tr uk vi zh_CN
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking size of long long... 8
checking size of void *... 8
checking size of long... 8
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/stat.h... (cached) yes
looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int_least32_t... yes
checking for int_fast32_t... yes
checking for uint64_t... yes
checking what to include in bfd_stdint.h... stdint.h (already complete)
checking whether time.h and sys/time.h may both be included... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for dlfcn.h... (cached) yes
checking whether string.h and strings.h may both be included... yes
checking for fcntl... yes
checking for getpagesize... yes
checking for setitimer... yes
checking for sysconf... yes
checking for fdopen... yes
checking for getuid... yes
checking for getgid... yes
checking for fileno... yes
checking for strtoull... yes
checking whether basename is declared... yes
checking whether ftello is declared... yes
checking whether ftello64 is declared... yes
checking whether fseeko is declared... yes
checking whether fseeko64 is declared... yes
checking whether ffs is declared... yes
checking whether free is declared... yes
checking whether getenv is declared... yes
checking whether malloc is declared... yes
checking whether realloc is declared... yes
checking whether stpcpy is declared... yes
checking whether strstr is declared... yes
checking whether snprintf is declared... yes
checking whether vsnprintf is declared... yes
checking for library containing zlibVersion... -lz
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking sys/procfs.h usability... yes
checking sys/procfs.h presence... yes
checking for sys/procfs.h... yes
checking for prstatus_t in sys/procfs.h... yes
checking for prstatus32_t in sys/procfs.h... no
checking for prstatus_t.pr_who in sys/procfs.h... no
checking for prstatus32_t.pr_who in sys/procfs.h... no
checking for pstatus_t in sys/procfs.h... no
checking for pxstatus_t in sys/procfs.h... no
checking for pstatus32_t in sys/procfs.h... no
checking for prpsinfo_t in sys/procfs.h... yes
checking for prpsinfo_t.pr_pid in sys/procfs.h... yes
checking for prpsinfo32_t in sys/procfs.h... no
checking for prpsinfo32_t.pr_pid in sys/procfs.h... no
checking for psinfo_t in sys/procfs.h... no
checking for psinfo_t.pr_pid in sys/procfs.h... no
checking for psinfo32_t in sys/procfs.h... no
checking for psinfo32_t.pr_pid in sys/procfs.h... no
checking for lwpstatus_t in sys/procfs.h... no
checking for lwpxstatus_t in sys/procfs.h... no
checking for lwpstatus_t.pr_context in sys/procfs.h... no
checking for lwpstatus_t.pr_reg in sys/procfs.h... no
checking for lwpstatus_t.pr_fpreg in sys/procfs.h... no
checking for win32_pstatus_t in sys/procfs.h... no
checking linker --as-needed support... yes
checking for cos in -lm... yes
checking for gcc version with buggy 64-bit support... no
checking for ftello... yes
checking for ftello64... yes
checking for fseeko... yes
checking for fseeko64... yes
checking for fopen64... yes
checking size of off_t... 8
checking file_ptr type... BFD_HOST_64_BIT
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for madvise... yes
checking for mprotect... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating bfd-in3.h
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
if [ x"" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./regex.c -o regex.o
./regex.c: In function ‘byte_regex_compile’:
./regex.c:154:53: warning: right-hand operand of comma expression has no effect [-Wunused-value]
154 | # define bzero(s, n) (memset (s, '\0', n), (s))
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
./regex.c:3126:13: note: in expansion of macro ‘bzero’
3126 | bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH);
| ^~~~~
./regex.c: In function ‘byte_re_compile_fastmap’:
./regex.c:154:53: warning: right-hand operand of comma expression has no effect [-Wunused-value]
154 | # define bzero(s, n) (memset (s, '\0', n), (s))
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
./regex.c:4584:3: note: in expansion of macro ‘bzero’
4584 | bzero (fastmap, 1 << BYTEWIDTH); /* Assume nothing's valid. */
| ^~~~~
In file included from ./regex.c:640:
./regex.c: In function ‘byte_re_match_2_internal’:
./regex.c:6699:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
6699 | is_a_jump_n = true;
./regex.c:6700:19: note: here
6700 | case pop_failure_jump:
| ^~~~
./regex.c:7122:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
7122 | if ((re_opcode_t) p[-1] != pop_failure_jump)
| ^
./regex.c:7137:9: note: here
7137 | case pop_failure_jump:
| ^~~~
./regex.c:1778:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
1778 | set_regs_matched_done = 0; \
| ~~~~~~~~~~~~~~~~~~~~~~^~~
./regex.c:7149:13: note: in expansion of macro ‘POP_FAILURE_POINT’
7149 | POP_FAILURE_POINT (sdummy, pdummy,
| ^~~~~~~~~~~~~~~~~
./regex.c:7155:9: note: here
7155 | unconditional_jump:
| ^~~~~~~~~~~~~~~~~~
./regex.c:7455:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
7455 | is_a_jump_n = true;
./regex.c:7456:17: note: here
7456 | case maybe_pop_jump:
| ^~~~
./regex.c: In function ‘byte_common_op_match_null_string_p’:
./regex.c:7720:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
7720 | p1 += 2 * OFFSET_ADDRESS_SIZE;
| ^
./regex.c:7722:5: note: here
7722 | default:
| ^~~~~~~
./regex.c: In function ‘byte_regex_compile’:
./regex.c:2493:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
2493 | if ((syntax & RE_BK_PLUS_QM)
| ^
./regex.c:2496:9: note: here
2496 | handle_plus:
| ^~~~~~~~~~~
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cplus-dem.c -o cplus-dem.o
./cplus-dem.c:55:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
55 | void * malloc ();
| ^~~~
./cplus-dem.c:55:8: warning: declaration of built-in function ‘malloc’ without a prototype; expected ‘void *(long unsigned int)’ [-Wbuiltin-declaration-mismatch]
55 | void * malloc ();
| ^~~~~~
./cplus-dem.c:56:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
56 | void * realloc ();
| ^~~~
./cplus-dem.c:56:8: warning: declaration of built-in function ‘realloc’ without a prototype; expected ‘void *(void *, long unsigned int)’ [-Wbuiltin-declaration-mismatch]
56 | void * realloc ();
| ^~~~~~~
./cplus-dem.c: In function ‘code_for_qualifier’:
./cplus-dem.c:578:3: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
578 | abort ();
| ^~~~~
./cplus-dem.c:64:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
63 | #include "libiberty.h"
+++ |+#include <stdlib.h>
64 |
./cplus-dem.c:578:3: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
578 | abort ();
| ^~~~~
./cplus-dem.c:578:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./cplus-dem.c: In function ‘qualifier_string’:
./cplus-dem.c:618:3: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
618 | abort ();
| ^~~~~
./cplus-dem.c:618:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./cplus-dem.c: In function ‘squangle_mop_up’:
./cplus-dem.c:1220:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
1220 | free ((char *) work -> btypevec);
| ^~~~
./cplus-dem.c:1220:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1220:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
./cplus-dem.c:1220:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1224:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1224 | free ((char *) work -> ktypevec);
| ^~~~
./cplus-dem.c:1224:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘delete_non_B_K_work_stuff’:
./cplus-dem.c:1305:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1305 | free ((char *) work -> typevec);
| ^~~~
./cplus-dem.c:1305:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1314:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1314 | free ((char*) work->tmpl_argvec[i]);
| ^~~~
./cplus-dem.c:1314:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1316:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1316 | free ((char*) work->tmpl_argvec);
| ^~~~
./cplus-dem.c:1316:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1322:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1322 | free ((char*) work->previous_argument);
| ^~~~
./cplus-dem.c:1322:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘demangle_template_value_parm’:
./cplus-dem.c:2047:19: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
2047 | free (q);
| ^~~~
./cplus-dem.c:2047:19: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:2051:15: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
2051 | free (p);
| ^~~~
./cplus-dem.c:2051:15: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘gnu_special’:
./cplus-dem.c:3086:15: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
3086 | free (method);
| ^~~~
./cplus-dem.c:3086:15: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘recursively_demangle’:
./cplus-dem.c:3142:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
3142 | free (recurse_dem);
| ^~~~
./cplus-dem.c:3142:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:3148:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
3148 | free (recurse);
| ^~~~
./cplus-dem.c:3148:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘demangle_qualified’:
./cplus-dem.c:3313:20: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
3313 | qualifiers = atoi (num);
| ^~~~
./cplus-dem.c: In function ‘do_hpacc_template_literal’:
./cplus-dem.c:4113:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4113 | free (recurse_dem);
| ^~~~
./cplus-dem.c:4113:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:4120:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4120 | free (recurse);
| ^~~~
./cplus-dem.c:4120:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘forget_B_and_K_types’:
./cplus-dem.c:4325:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4325 | free (work -> ktypevec[i]);
| ^~~~
./cplus-dem.c:4325:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:4335:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4335 | free (work -> btypevec[i]);
| ^~~~
./cplus-dem.c:4335:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘forget_types’:
./cplus-dem.c:4352:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4352 | free (work -> typevec[i]);
| ^~~~
./cplus-dem.c:4352:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘demangle_nested_args’:
./cplus-dem.c:4551:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4551 | free ((char *) work->previous_argument);
| ^~~~
./cplus-dem.c:4551:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘string_delete’:
./cplus-dem.c:4757:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4757 | free (s->b);
| ^~~~
./cplus-dem.c:4757:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘demangle_fund_type’:
./cplus-dem.c:3944:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
3944 | if (!ISDIGIT ((unsigned char)**mangled))
| ^
./cplus-dem.c:3949:5: note: here
3949 | case 'I':
| ^~~~
./cplus-dem.c: In function ‘demangle_signature’:
./cplus-dem.c:1602:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
1602 | if (AUTO_DEMANGLING || GNU_DEMANGLING)
| ^
./cplus-dem.c:1616:9: note: here
1616 | default:
| ^~~~~~~
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cp-demangle.c -o cp-demangle.o
./cp-demangle.c: In function ‘d_make_demangle_mangled_name’:
./cp-demangle.c:921:32: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
921 | return d_make_name (di, s, strlen (s));
| ^~~~~~
./cp-demangle.c:131:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
130 | #include "cp-demangle.h"
+++ |+#include <string.h>
131 |
./cp-demangle.c:921:32: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
921 | return d_make_name (di, s, strlen (s));
| ^~~~~~
./cp-demangle.c:921:32: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demangle.c: In function ‘d_unqualified_name’:
./cp-demangle.c:1462:16: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
1462 | if (!strcmp (ret->u.s_operator.op->code, "li"))
| ^~~~~~
./cp-demangle.c:1462:16: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
./cp-demangle.c: In function ‘d_identifier’:
./cp-demangle.c:1589:10: warning: implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration]
1589 | && memcmp (name, ANONYMOUS_NAMESPACE_PREFIX,
| ^~~~~~
./cp-demangle.c:1589:10: note: include ‘<string.h>’ or provide a declaration of ‘memcmp’
./cp-demangle.c: In function ‘d_growable_string_resize’:
./cp-demangle.c:3531:21: warning: implicit declaration of function ‘realloc’ [-Wimplicit-function-declaration]
3531 | newbuf = (char *) realloc (dgs->buf, newalc);
| ^~~~~~~
./cp-demangle.c:131:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘realloc’
130 | #include "cp-demangle.h"
+++ |+#include <stdlib.h>
131 |
./cp-demangle.c:3531:21: warning: incompatible implicit declaration of built-in function ‘realloc’ [-Wbuiltin-declaration-mismatch]
3531 | newbuf = (char *) realloc (dgs->buf, newalc);
| ^~~~~~~
./cp-demangle.c:3531:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘realloc’
./cp-demangle.c:3534:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
3534 | free (dgs->buf);
| ^~~~
./cp-demangle.c:3534:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demangle.c:3534:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
./cp-demangle.c:3534:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demangle.c: In function ‘d_growable_string_append_buffer’:
./cp-demangle.c:3560:3: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
3560 | memcpy (dgs->buf + dgs->len, s, l);
| ^~~~~~
./cp-demangle.c:3560:3: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
./cp-demangle.c:3560:3: warning: incompatible implicit declaration of built-in function ‘memcpy’ [-Wbuiltin-declaration-mismatch]
./cp-demangle.c:3560:3: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
./cp-demangle.c: In function ‘d_append_string’:
./cp-demangle.c:3643:28: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
3643 | d_append_buffer (dpi, s, strlen (s));
| ^~~~~~
./cp-demangle.c:3643:28: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demangle.c: In function ‘cplus_demangle_print’:
./cp-demangle.c:3707:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
3707 | free (dgs.buf);
| ^~~~
./cp-demangle.c:3707:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demangle.c: In function ‘d_print_comp’:
./cp-demangle.c:4020:16: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
4020 | && strncmp (dcl->u.s_name.s, "JArray", 6) == 0)
| ^~~~~~~
./cp-demangle.c:4020:16: note: include ‘<string.h>’ or provide a declaration of ‘strncmp’
./cp-demangle.c:4020:52: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
4020 | && strncmp (dcl->u.s_name.s, "JArray", 6) == 0)
| ^
<built-in>: note: built-in ‘strncmp’ declared here
./cp-demangle.c: In function ‘d_demangle_callback’:
./cp-demangle.c:5288:42: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
5288 | else if (strncmp (mangled, "_GLOBAL_", 8) == 0
| ^
<built-in>: note: built-in ‘strncmp’ declared here
./cp-demangle.c:5300:47: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
5300 | cplus_demangle_init_info (mangled, options, strlen (mangled), &di);
| ^~~~~~
./cp-demangle.c:5300:47: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demangle.c: In function ‘d_demangle’:
./cp-demangle.c:5373:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
5373 | free (dgs.buf);
| ^~~~
./cp-demangle.c:5373:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demangle.c: In function ‘is_ctor_or_dtor’:
./cp-demangle.c:5579:51: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
5579 | cplus_demangle_init_info (mangled, DMGL_GNU_V3, strlen (mangled), &di);
| ^~~~~~
./cp-demangle.c:5579:51: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./md5.c -o pic/md5.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./md5.c -o md5.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./sha1.c -o pic/sha1.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./sha1.c -o sha1.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./alloca.c -o pic/alloca.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./alloca.c -o alloca.o
./alloca.c: In function ‘C_alloca’:
./alloca.c:184:11: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
184 | free ((PTR) hp); /* Collect garbage. */
| ^~~~
./alloca.c:50:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
49 | #include <libiberty.h>
+++ |+#include <stdlib.h>
50 |
./alloca.c:184:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
184 | free ((PTR) hp); /* Collect garbage. */
| ^~~~
./alloca.c:184:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./alloca.c:204:7: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
204 | abort();
| ^~~~~
./alloca.c:204:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./alloca.c:204:7: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
./alloca.c:204:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./argv.c -o pic/argv.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./argv.c -o argv.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./choose-temp.c -o pic/choose-temp.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./choose-temp.c -o choose-temp.o
./choose-temp.c: In function ‘choose_temp_base’:
./choose-temp.c:67:9: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
67 | len = strlen (base);
| ^~~~~~
./choose-temp.c:37:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
36 | #include "libiberty.h"
+++ |+#include <string.h>
37 | extern char *choose_tmpdir (void);
./choose-temp.c:67:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
67 | len = strlen (base);
| ^~~~~~
./choose-temp.c:67:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./choose-temp.c:69:3: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
69 | strcpy (temp_filename, base);
| ^~~~~~
./choose-temp.c:69:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./choose-temp.c:69:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
./choose-temp.c:69:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./choose-temp.c:72:7: warning: implicit declaration of function ‘mktemp’ [-Wimplicit-function-declaration]
72 | if (mktemp (temp_filename) == 0)
| ^~~~~~
./choose-temp.c:73:5: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
73 | abort ();
| ^~~~~
./choose-temp.c:37:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
36 | #include "libiberty.h"
+++ |+#include <stdlib.h>
37 | extern char *choose_tmpdir (void);
./choose-temp.c:73:5: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
73 | abort ();
| ^~~~~
./choose-temp.c:73:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./concat.c -o pic/concat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./concat.c -o concat.o
./concat.c: In function ‘vconcat_length’:
./concat.c:77:15: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
77 | length += strlen (arg);
| ^~~~~~
./concat.c:54:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
53 | #include <sys/types.h> /* size_t */
+++ |+#include <string.h>
54 |
./concat.c:77:15: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
77 | length += strlen (arg);
| ^~~~~~
./concat.c:77:15: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./concat.c: In function ‘vconcat_copy’:
./concat.c:90:30: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
90 | unsigned long length = strlen (arg);
| ^~~~~~
./concat.c:90:30: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./concat.c:91:7: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
91 | memcpy (end, arg, length);
| ^~~~~~
./concat.c:91:7: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
./concat.c:91:7: warning: incompatible implicit declaration of built-in function ‘memcpy’ [-Wbuiltin-declaration-mismatch]
./concat.c:91:7: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
./concat.c: In function ‘reconcat’:
./concat.c:208:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
208 | free (optr);
| ^~~~
./concat.c:54:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
53 | #include <sys/types.h> /* size_t */
+++ |+#include <stdlib.h>
54 |
./concat.c:208:5: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
208 | free (optr);
| ^~~~
./concat.c:208:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cp-demint.c -o pic/cp-demint.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cp-demint.c -o cp-demint.o
./cp-demint.c: In function ‘cplus_demangle_fill_builtin_type’:
./cp-demint.c:140:9: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
140 | len = strlen (type_name);
| ^~~~~~
./cp-demint.c:55:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
54 | #include "cp-demangle.h"
+++ |+#include <string.h>
55 |
./cp-demint.c:140:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
140 | len = strlen (type_name);
| ^~~~~~
./cp-demint.c:140:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demint.c:144:14: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
144 | && strcmp (type_name, cplus_demangle_builtin_types[i].name) == 0)
| ^~~~~~
./cp-demint.c:144:14: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
./cp-demint.c: In function ‘cplus_demangle_fill_operator’:
./cp-demint.c:165:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
165 | len = strlen (opname);
| ^~~~~~
./cp-demint.c:165:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demint.c: In function ‘cplus_demangle_v3_components’:
./cp-demint.c:190:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
190 | len = strlen (mangled);
| ^~~~~~
./cp-demint.c:190:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demint.c:204:15: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
204 | malloc (di.num_comps * sizeof (struct demangle_component)));
| ^~~~~~
./cp-demint.c:55:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
54 | #include "cp-demangle.h"
+++ |+#include <stdlib.h>
55 |
./cp-demint.c:204:15: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
204 | malloc (di.num_comps * sizeof (struct demangle_component)));
| ^~~~~~
./cp-demint.c:204:15: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
./cp-demint.c:209:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
209 | free (di.comps);
| ^~~~
./cp-demint.c:209:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demint.c:209:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
./cp-demint.c:209:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demint.c:224:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
224 | free (di.subs);
| ^~~~
./cp-demint.c:224:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./crc32.c -o pic/crc32.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./crc32.c -o crc32.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./dwarfnames.c -o pic/dwarfnames.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./dwarfnames.c -o dwarfnames.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./dyn-string.c -o pic/dyn-string.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./dyn-string.c -o dyn-string.o
./dyn-string.c: In function ‘dyn_string_delete’:
./dyn-string.c:110:3: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
110 | free (ds->s);
| ^~~~
./dyn-string.c:47:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
46 | #include "dyn-string.h"
+++ |+#include <stdlib.h>
47 |
./dyn-string.c:110:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
110 | free (ds->s);
| ^~~~
./dyn-string.c:110:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./dyn-string.c: In function ‘dyn_string_release’:
./dyn-string.c:126:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
126 | free (ds);
| ^~~~
./dyn-string.c:126:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./dyn-string.c: In function ‘dyn_string_copy’:
./dyn-string.c:187:5: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
187 | abort ();
| ^~~~~
./dyn-string.c:187:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./dyn-string.c:187:5: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
./dyn-string.c:187:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./dyn-string.c:193:3: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
193 | strcpy (dest->s, src->s);
| ^~~~~~
./dyn-string.c:47:1: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
46 | #include "dyn-string.h"
+++ |+#include <string.h>
47 |
./dyn-string.c:193:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
193 | strcpy (dest->s, src->s);
| ^~~~~~
./dyn-string.c:193:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./dyn-string.c: In function ‘dyn_string_copy_cstr’:
./dyn-string.c:206:16: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
206 | int length = strlen (src);
| ^~~~~~
./dyn-string.c:206:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./dyn-string.c:206:16: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
./dyn-string.c:206:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./dyn-string.c:211:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
211 | strcpy (dest->s, src);
| ^~~~~~
./dyn-string.c:211:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./dyn-string.c: In function ‘dyn_string_insert’:
./dyn-string.c:249:5: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
249 | abort ();
| ^~~~~
./dyn-string.c:249:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./dyn-string.c:257:3: warning: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration]
257 | strncpy (dest->s + pos, src->s, src->length);
| ^~~~~~~
./dyn-string.c:257:3: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
./dyn-string.c:257:3: warning: incompatible implicit declaration of built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
./dyn-string.c:257:3: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
./dyn-string.c: In function ‘dyn_string_insert_cstr’:
./dyn-string.c:272:16: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
272 | int length = strlen (src);
| ^~~~~~
./dyn-string.c:272:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./dyn-string.c:280:3: warning: incompatible implicit declaration of built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
280 | strncpy (dest->s + pos, src, length);
| ^~~~~~~
./dyn-string.c:280:3: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
./dyn-string.c: In function ‘dyn_string_append’:
./dyn-string.c:316:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
316 | strcpy (dest->s + dest->length, s->s);
| ^~~~~~
./dyn-string.c:316:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./dyn-string.c: In function ‘dyn_string_append_cstr’:
./dyn-string.c:328:13: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
328 | int len = strlen (s);
| ^~~~~~
./dyn-string.c:328:13: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./dyn-string.c:334:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
334 | strcpy (dest->s + dest->length, s);
| ^~~~~~
./dyn-string.c:334:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./dyn-string.c: In function ‘dyn_string_substring’:
./dyn-string.c:371:5: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
371 | abort ();
| ^~~~~
./dyn-string.c:371:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./dyn-string.c: In function ‘dyn_string_eq’:
./dyn-string.c:396:13: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
396 | return !strcmp (ds1->s, ds2->s);
| ^~~~~~
./dyn-string.c:396:13: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
./dyn-string.c: In function ‘dyn_string_insert_cstr’:
./dyn-string.c:280:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
280 | strncpy (dest->s + pos, src, length);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./dyn-string.c:272:16: note: length computed here
272 | int length = strlen (src);
| ^~~~~~~~~~~~
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./fdmatch.c -o pic/fdmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./fdmatch.c -o fdmatch.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./fibheap.c -o pic/fibheap.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./fibheap.c -o fibheap.o
./fibheap.c: In function ‘fibheap_union’:
./fibheap.c:151:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
151 | free (heapa);
| ^~~~
./fibheap.c:36:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
35 | #include "fibheap.h"
+++ |+#include <stdlib.h>
36 |
./fibheap.c:151:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
151 | free (heapa);
| ^~~~
./fibheap.c:151:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c:156:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
156 | free (heapb);
| ^~~~
./fibheap.c:156:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c:172:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
172 | free (heapb);
| ^~~~
./fibheap.c:172:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c: In function ‘fibheap_extract_min’:
./fibheap.c:190:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
190 | free (z);
| ^~~~
./fibheap.c:190:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c: In function ‘fibheap_replace_key_data’:
./fibheap.c:38:25: error: ‘LONG_MIN’ undeclared (first use in this function)
38 | #define FIBHEAPKEY_MIN LONG_MIN
| ^~~~~~~~
./fibheap.c:220:30: note: in expansion of macro ‘FIBHEAPKEY_MIN’
220 | if (okey == key && okey != FIBHEAPKEY_MIN)
| ^~~~~~~~~~~~~~
./fibheap.c:36:1: note: ‘LONG_MIN’ is defined in header ‘<limits.h>’; did you forget to ‘#include <limits.h>’?
35 | #include "fibheap.h"
+++ |+#include <limits.h>
36 |
./fibheap.c:38:25: note: each undeclared identifier is reported only once for each function it appears in
38 | #define FIBHEAPKEY_MIN LONG_MIN
| ^~~~~~~~
./fibheap.c:220:30: note: in expansion of macro ‘FIBHEAPKEY_MIN’
220 | if (okey == key && okey != FIBHEAPKEY_MIN)
| ^~~~~~~~~~~~~~
./fibheap.c: In function ‘fibheap_delete_node’:
./fibheap.c:38:25: error: ‘LONG_MIN’ undeclared (first use in this function)
38 | #define FIBHEAPKEY_MIN LONG_MIN
| ^~~~~~~~
./fibheap.c:261:36: note: in expansion of macro ‘FIBHEAPKEY_MIN’
261 | fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
| ^~~~~~~~~~~~~~
./fibheap.c:38:25: note: ‘LONG_MIN’ is defined in header ‘<limits.h>’; did you forget to ‘#include <limits.h>’?
38 | #define FIBHEAPKEY_MIN LONG_MIN
| ^~~~~~~~
./fibheap.c:261:36: note: in expansion of macro ‘FIBHEAPKEY_MIN’
261 | fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
| ^~~~~~~~~~~~~~
./fibheap.c:265:7: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
265 | abort ();
| ^~~~~
./fibheap.c:265:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./fibheap.c:265:7: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
./fibheap.c:265:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./fibheap.c: In function ‘fibheap_delete’:
./fibheap.c:277:5: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
277 | free (fibheap_extr_min_node (heap));
| ^~~~
./fibheap.c:277:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c:279:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
279 | free (heap);
| ^~~~
./fibheap.c:279:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c: In function ‘fibheap_consolidate’:
./fibheap.c:368:3: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
368 | memset (a, 0, sizeof (fibnode_t) * D);
| ^~~~~~
./fibheap.c:36:1: note: include ‘<string.h>’ or provide a declaration of ‘memset’
35 | #include "fibheap.h"
+++ |+#include <string.h>
36 |
./fibheap.c:368:3: warning: incompatible implicit declaration of built-in function ‘memset’ [-Wbuiltin-declaration-mismatch]
368 | memset (a, 0, sizeof (fibnode_t) * D);
| ^~~~~~
./fibheap.c:368:3: note: include ‘<string.h>’ or provide a declaration of ‘memset’
make[4]: *** [Makefile:658: fibheap.o] Error 1
make[3]: *** [Makefile:6996: all-libiberty] Error 2
make[2]: *** [Makefile:835: all] Error 2
crash build failed
make[1]: *** [Makefile:236: gdb_merge] Error 1
make: *** [Makefile:227: all] Error 2
I cannot reproduce this with Fedora 34's gcc 11.1.1.
[root@fedora34 crash]# rpm -q gcc
gcc-11.1.1-3.fc34.x86_64
[root@fedora34 crash]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.1.1-20210531/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.1 20210531 (Red Hat 11.1.1-3) (GCC)
It looks like the problem is the following, can it be a clue?
./fibheap.c: In function ‘fibheap_replace_key_data’:
./fibheap.c:38:25: error: ‘LONG_MIN’ undeclared (first use in this function)
38 | #define FIBHEAPKEY_MIN LONG_MIN
| ^~~~~~~~
It's defined in /usr/include/limits.h
on my Fedora machine:
$ grep -r LONG_MIN /usr/include
...
/usr/include/limits.h:# define LONG_MIN (-LONG_MAX - 1L)
It is not available on your machine?
checking for sys/param.h... no
checking for limits.h... no
checking for stdlib.h... (cached) no
Interesting... So I looked to what compilation flags are used at Arch and it is: CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' CPPFLAGS='-D_FORTIFY_SOURCE=2' make
. With these flag the build fails due to the missing LONG_MIN
.
What is interesting is if I do not specify the flags then the build is fine at my machine.
Hi folks, any update on it?
Another way to try to fix this problem is to update to the latest GDB that hopefully works better with GCC11.
For the reference here is the full list of warnings I see with -D_FORTIFY_SOURCE=2
:
config.status: executing default commands
if [ x"" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./regex.c -o regex.o
./regex.c: In function ‘byte_regex_compile’:
./regex.c:154:53: warning: right-hand operand of comma expression has no effect [-Wunused-value]
154 | # define bzero(s, n) (memset (s, '\0', n), (s))
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
./regex.c:3126:13: note: in expansion of macro ‘bzero’
3126 | bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH);
| ^~~~~
./regex.c: In function ‘byte_re_compile_fastmap’:
./regex.c:154:53: warning: right-hand operand of comma expression has no effect [-Wunused-value]
154 | # define bzero(s, n) (memset (s, '\0', n), (s))
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
./regex.c:4584:3: note: in expansion of macro ‘bzero’
4584 | bzero (fastmap, 1 << BYTEWIDTH); /* Assume nothing's valid. */
| ^~~~~
In file included from ./regex.c:640:
./regex.c: In function ‘byte_re_match_2_internal’:
./regex.c:6699:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
6699 | is_a_jump_n = true;
./regex.c:6700:19: note: here
6700 | case pop_failure_jump:
| ^~~~
./regex.c:7122:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
7122 | if ((re_opcode_t) p[-1] != pop_failure_jump)
| ^
./regex.c:7137:9: note: here
7137 | case pop_failure_jump:
| ^~~~
./regex.c:1778:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
1778 | set_regs_matched_done = 0; \
| ~~~~~~~~~~~~~~~~~~~~~~^~~
./regex.c:7149:13: note: in expansion of macro ‘POP_FAILURE_POINT’
7149 | POP_FAILURE_POINT (sdummy, pdummy,
| ^~~~~~~~~~~~~~~~~
./regex.c:7155:9: note: here
7155 | unconditional_jump:
| ^~~~~~~~~~~~~~~~~~
./regex.c:7455:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
7455 | is_a_jump_n = true;
./regex.c:7456:17: note: here
7456 | case maybe_pop_jump:
| ^~~~
./regex.c: In function ‘byte_common_op_match_null_string_p’:
./regex.c:7720:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
7720 | p1 += 2 * OFFSET_ADDRESS_SIZE;
| ^
./regex.c:7722:5: note: here
7722 | default:
| ^~~~~~~
./regex.c: In function ‘byte_regex_compile’:
./regex.c:2493:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
2493 | if ((syntax & RE_BK_PLUS_QM)
| ^
./regex.c:2496:9: note: here
2496 | handle_plus:
| ^~~~~~~~~~~
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cplus-dem.c -o cplus-dem.o
./cplus-dem.c:55:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
55 | void * malloc ();
| ^~~~
./cplus-dem.c:55:8: warning: declaration of built-in function ‘malloc’ without a prototype; expected ‘void *(long unsigned int)’ [-Wbuiltin-declaration-mismatch]
55 | void * malloc ();
| ^~~~~~
./cplus-dem.c:56:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
56 | void * realloc ();
| ^~~~
./cplus-dem.c:56:8: warning: declaration of built-in function ‘realloc’ without a prototype; expected ‘void *(void *, long unsigned int)’ [-Wbuiltin-declaration-mismatch]
56 | void * realloc ();
| ^~~~~~~
./cplus-dem.c: In function ‘code_for_qualifier’:
./cplus-dem.c:578:3: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
578 | abort ();
| ^~~~~
./cplus-dem.c:64:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
63 | #include "libiberty.h"
+++ |+#include <stdlib.h>
64 |
./cplus-dem.c:578:3: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
578 | abort ();
| ^~~~~
./cplus-dem.c:578:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./cplus-dem.c: In function ‘qualifier_string’:
./cplus-dem.c:618:3: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
618 | abort ();
| ^~~~~
./cplus-dem.c:618:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./cplus-dem.c: In function ‘squangle_mop_up’:
./cplus-dem.c:1220:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
1220 | free ((char *) work -> btypevec);
| ^~~~
./cplus-dem.c:1220:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1220:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
./cplus-dem.c:1220:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1224:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1224 | free ((char *) work -> ktypevec);
| ^~~~
./cplus-dem.c:1224:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘delete_non_B_K_work_stuff’:
./cplus-dem.c:1305:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1305 | free ((char *) work -> typevec);
| ^~~~
./cplus-dem.c:1305:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1314:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1314 | free ((char*) work->tmpl_argvec[i]);
| ^~~~
./cplus-dem.c:1314:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1316:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1316 | free ((char*) work->tmpl_argvec);
| ^~~~
./cplus-dem.c:1316:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:1322:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1322 | free ((char*) work->previous_argument);
| ^~~~
./cplus-dem.c:1322:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘demangle_template_value_parm’:
./cplus-dem.c:2047:19: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
2047 | free (q);
| ^~~~
./cplus-dem.c:2047:19: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:2051:15: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
2051 | free (p);
| ^~~~
./cplus-dem.c:2051:15: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘gnu_special’:
./cplus-dem.c:3086:15: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
3086 | free (method);
| ^~~~
./cplus-dem.c:3086:15: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘recursively_demangle’:
./cplus-dem.c:3142:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
3142 | free (recurse_dem);
| ^~~~
./cplus-dem.c:3142:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:3148:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
3148 | free (recurse);
| ^~~~
./cplus-dem.c:3148:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘demangle_qualified’:
./cplus-dem.c:3313:20: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
3313 | qualifiers = atoi (num);
| ^~~~
./cplus-dem.c: In function ‘do_hpacc_template_literal’:
./cplus-dem.c:4113:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4113 | free (recurse_dem);
| ^~~~
./cplus-dem.c:4113:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:4120:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4120 | free (recurse);
| ^~~~
./cplus-dem.c:4120:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘forget_B_and_K_types’:
./cplus-dem.c:4325:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4325 | free (work -> ktypevec[i]);
| ^~~~
./cplus-dem.c:4325:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c:4335:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4335 | free (work -> btypevec[i]);
| ^~~~
./cplus-dem.c:4335:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘forget_types’:
./cplus-dem.c:4352:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4352 | free (work -> typevec[i]);
| ^~~~
./cplus-dem.c:4352:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘demangle_nested_args’:
./cplus-dem.c:4551:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4551 | free ((char *) work->previous_argument);
| ^~~~
./cplus-dem.c:4551:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘string_delete’:
./cplus-dem.c:4757:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4757 | free (s->b);
| ^~~~
./cplus-dem.c:4757:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cplus-dem.c: In function ‘demangle_fund_type’:
./cplus-dem.c:3944:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
3944 | if (!ISDIGIT ((unsigned char)**mangled))
| ^
./cplus-dem.c:3949:5: note: here
3949 | case 'I':
| ^~~~
./cplus-dem.c: In function ‘demangle_signature’:
./cplus-dem.c:1602:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
1602 | if (AUTO_DEMANGLING || GNU_DEMANGLING)
| ^
./cplus-dem.c:1616:9: note: here
1616 | default:
| ^~~~~~~
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cp-demangle.c -o cp-demangle.o
./cp-demangle.c: In function ‘d_make_demangle_mangled_name’:
./cp-demangle.c:921:32: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
921 | return d_make_name (di, s, strlen (s));
| ^~~~~~
./cp-demangle.c:131:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
130 | #include "cp-demangle.h"
+++ |+#include <string.h>
131 |
./cp-demangle.c:921:32: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
921 | return d_make_name (di, s, strlen (s));
| ^~~~~~
./cp-demangle.c:921:32: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demangle.c: In function ‘d_unqualified_name’:
./cp-demangle.c:1462:16: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
1462 | if (!strcmp (ret->u.s_operator.op->code, "li"))
| ^~~~~~
./cp-demangle.c:1462:16: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
./cp-demangle.c: In function ‘d_identifier’:
./cp-demangle.c:1589:10: warning: implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration]
1589 | && memcmp (name, ANONYMOUS_NAMESPACE_PREFIX,
| ^~~~~~
./cp-demangle.c:1589:10: note: include ‘<string.h>’ or provide a declaration of ‘memcmp’
./cp-demangle.c: In function ‘d_growable_string_resize’:
./cp-demangle.c:3531:21: warning: implicit declaration of function ‘realloc’ [-Wimplicit-function-declaration]
3531 | newbuf = (char *) realloc (dgs->buf, newalc);
| ^~~~~~~
./cp-demangle.c:131:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘realloc’
130 | #include "cp-demangle.h"
+++ |+#include <stdlib.h>
131 |
./cp-demangle.c:3531:21: warning: incompatible implicit declaration of built-in function ‘realloc’ [-Wbuiltin-declaration-mismatch]
3531 | newbuf = (char *) realloc (dgs->buf, newalc);
| ^~~~~~~
./cp-demangle.c:3531:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘realloc’
./cp-demangle.c:3534:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
3534 | free (dgs->buf);
| ^~~~
./cp-demangle.c:3534:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demangle.c:3534:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
./cp-demangle.c:3534:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demangle.c: In function ‘d_growable_string_append_buffer’:
./cp-demangle.c:3560:3: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
3560 | memcpy (dgs->buf + dgs->len, s, l);
| ^~~~~~
./cp-demangle.c:3560:3: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
./cp-demangle.c:3560:3: warning: incompatible implicit declaration of built-in function ‘memcpy’ [-Wbuiltin-declaration-mismatch]
./cp-demangle.c:3560:3: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
./cp-demangle.c: In function ‘d_append_string’:
./cp-demangle.c:3643:28: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
3643 | d_append_buffer (dpi, s, strlen (s));
| ^~~~~~
./cp-demangle.c:3643:28: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demangle.c: In function ‘cplus_demangle_print’:
./cp-demangle.c:3707:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
3707 | free (dgs.buf);
| ^~~~
./cp-demangle.c:3707:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demangle.c: In function ‘d_print_comp’:
./cp-demangle.c:4020:16: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
4020 | && strncmp (dcl->u.s_name.s, "JArray", 6) == 0)
| ^~~~~~~
./cp-demangle.c:4020:16: note: include ‘<string.h>’ or provide a declaration of ‘strncmp’
./cp-demangle.c:4020:52: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
4020 | && strncmp (dcl->u.s_name.s, "JArray", 6) == 0)
| ^
<built-in>: note: built-in ‘strncmp’ declared here
./cp-demangle.c: In function ‘d_demangle_callback’:
./cp-demangle.c:5288:42: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
5288 | else if (strncmp (mangled, "_GLOBAL_", 8) == 0
| ^
<built-in>: note: built-in ‘strncmp’ declared here
./cp-demangle.c:5300:47: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
5300 | cplus_demangle_init_info (mangled, options, strlen (mangled), &di);
| ^~~~~~
./cp-demangle.c:5300:47: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demangle.c: In function ‘d_demangle’:
./cp-demangle.c:5373:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
5373 | free (dgs.buf);
| ^~~~
./cp-demangle.c:5373:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demangle.c: In function ‘is_ctor_or_dtor’:
./cp-demangle.c:5579:51: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
5579 | cplus_demangle_init_info (mangled, DMGL_GNU_V3, strlen (mangled), &di);
| ^~~~~~
./cp-demangle.c:5579:51: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./md5.c -o pic/md5.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./md5.c -o md5.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./sha1.c -o pic/sha1.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./sha1.c -o sha1.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./alloca.c -o pic/alloca.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./alloca.c -o alloca.o
./alloca.c: In function ‘C_alloca’:
./alloca.c:184:11: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
184 | free ((PTR) hp); /* Collect garbage. */
| ^~~~
./alloca.c:50:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
49 | #include <libiberty.h>
+++ |+#include <stdlib.h>
50 |
./alloca.c:184:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
184 | free ((PTR) hp); /* Collect garbage. */
| ^~~~
./alloca.c:184:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./alloca.c:204:7: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
204 | abort();
| ^~~~~
./alloca.c:204:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./alloca.c:204:7: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
./alloca.c:204:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./argv.c -o pic/argv.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./argv.c -o argv.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./choose-temp.c -o pic/choose-temp.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./choose-temp.c -o choose-temp.o
./choose-temp.c: In function ‘choose_temp_base’:
./choose-temp.c:67:9: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
67 | len = strlen (base);
| ^~~~~~
./choose-temp.c:37:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
36 | #include "libiberty.h"
+++ |+#include <string.h>
37 | extern char *choose_tmpdir (void);
./choose-temp.c:67:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
67 | len = strlen (base);
| ^~~~~~
./choose-temp.c:67:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./choose-temp.c:69:3: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
69 | strcpy (temp_filename, base);
| ^~~~~~
./choose-temp.c:69:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./choose-temp.c:69:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
./choose-temp.c:69:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./choose-temp.c:72:7: warning: implicit declaration of function ‘mktemp’ [-Wimplicit-function-declaration]
72 | if (mktemp (temp_filename) == 0)
| ^~~~~~
./choose-temp.c:73:5: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
73 | abort ();
| ^~~~~
./choose-temp.c:37:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
36 | #include "libiberty.h"
+++ |+#include <stdlib.h>
37 | extern char *choose_tmpdir (void);
./choose-temp.c:73:5: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
73 | abort ();
| ^~~~~
./choose-temp.c:73:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./concat.c -o pic/concat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./concat.c -o concat.o
./concat.c: In function ‘vconcat_length’:
./concat.c:77:15: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
77 | length += strlen (arg);
| ^~~~~~
./concat.c:54:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
53 | #include <sys/types.h> /* size_t */
+++ |+#include <string.h>
54 |
./concat.c:77:15: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
77 | length += strlen (arg);
| ^~~~~~
./concat.c:77:15: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./concat.c: In function ‘vconcat_copy’:
./concat.c:90:30: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
90 | unsigned long length = strlen (arg);
| ^~~~~~
./concat.c:90:30: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./concat.c:91:7: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
91 | memcpy (end, arg, length);
| ^~~~~~
./concat.c:91:7: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
./concat.c:91:7: warning: incompatible implicit declaration of built-in function ‘memcpy’ [-Wbuiltin-declaration-mismatch]
./concat.c:91:7: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
./concat.c: In function ‘reconcat’:
./concat.c:208:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
208 | free (optr);
| ^~~~
./concat.c:54:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
53 | #include <sys/types.h> /* size_t */
+++ |+#include <stdlib.h>
54 |
./concat.c:208:5: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
208 | free (optr);
| ^~~~
./concat.c:208:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cp-demint.c -o pic/cp-demint.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./cp-demint.c -o cp-demint.o
./cp-demint.c: In function ‘cplus_demangle_fill_builtin_type’:
./cp-demint.c:140:9: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
140 | len = strlen (type_name);
| ^~~~~~
./cp-demint.c:55:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
54 | #include "cp-demangle.h"
+++ |+#include <string.h>
55 |
./cp-demint.c:140:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
140 | len = strlen (type_name);
| ^~~~~~
./cp-demint.c:140:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demint.c:144:14: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
144 | && strcmp (type_name, cplus_demangle_builtin_types[i].name) == 0)
| ^~~~~~
./cp-demint.c:144:14: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
./cp-demint.c: In function ‘cplus_demangle_fill_operator’:
./cp-demint.c:165:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
165 | len = strlen (opname);
| ^~~~~~
./cp-demint.c:165:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demint.c: In function ‘cplus_demangle_v3_components’:
./cp-demint.c:190:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
190 | len = strlen (mangled);
| ^~~~~~
./cp-demint.c:190:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./cp-demint.c:204:15: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
204 | malloc (di.num_comps * sizeof (struct demangle_component)));
| ^~~~~~
./cp-demint.c:55:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
54 | #include "cp-demangle.h"
+++ |+#include <stdlib.h>
55 |
./cp-demint.c:204:15: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
204 | malloc (di.num_comps * sizeof (struct demangle_component)));
| ^~~~~~
./cp-demint.c:204:15: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
./cp-demint.c:209:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
209 | free (di.comps);
| ^~~~
./cp-demint.c:209:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demint.c:209:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
./cp-demint.c:209:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./cp-demint.c:224:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
224 | free (di.subs);
| ^~~~
./cp-demint.c:224:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./crc32.c -o pic/crc32.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./crc32.c -o crc32.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./dwarfnames.c -o pic/dwarfnames.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./dwarfnames.c -o dwarfnames.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./dyn-string.c -o pic/dyn-string.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./dyn-string.c -o dyn-string.o
./dyn-string.c: In function ‘dyn_string_delete’:
./dyn-string.c:110:3: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
110 | free (ds->s);
| ^~~~
./dyn-string.c:47:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
46 | #include "dyn-string.h"
+++ |+#include <stdlib.h>
47 |
./dyn-string.c:110:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
110 | free (ds->s);
| ^~~~
./dyn-string.c:110:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./dyn-string.c: In function ‘dyn_string_release’:
./dyn-string.c:126:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
126 | free (ds);
| ^~~~
./dyn-string.c:126:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./dyn-string.c: In function ‘dyn_string_copy’:
./dyn-string.c:187:5: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
187 | abort ();
| ^~~~~
./dyn-string.c:187:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./dyn-string.c:187:5: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
./dyn-string.c:187:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./dyn-string.c:193:3: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
193 | strcpy (dest->s, src->s);
| ^~~~~~
./dyn-string.c:47:1: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
46 | #include "dyn-string.h"
+++ |+#include <string.h>
47 |
./dyn-string.c:193:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
193 | strcpy (dest->s, src->s);
| ^~~~~~
./dyn-string.c:193:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./dyn-string.c: In function ‘dyn_string_copy_cstr’:
./dyn-string.c:206:16: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
206 | int length = strlen (src);
| ^~~~~~
./dyn-string.c:206:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./dyn-string.c:206:16: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
./dyn-string.c:206:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./dyn-string.c:211:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
211 | strcpy (dest->s, src);
| ^~~~~~
./dyn-string.c:211:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./dyn-string.c: In function ‘dyn_string_insert’:
./dyn-string.c:249:5: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
249 | abort ();
| ^~~~~
./dyn-string.c:249:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./dyn-string.c:257:3: warning: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration]
257 | strncpy (dest->s + pos, src->s, src->length);
| ^~~~~~~
./dyn-string.c:257:3: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
./dyn-string.c:257:3: warning: incompatible implicit declaration of built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
./dyn-string.c:257:3: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
./dyn-string.c: In function ‘dyn_string_insert_cstr’:
./dyn-string.c:272:16: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
272 | int length = strlen (src);
| ^~~~~~
./dyn-string.c:272:16: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./dyn-string.c:280:3: warning: incompatible implicit declaration of built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
280 | strncpy (dest->s + pos, src, length);
| ^~~~~~~
./dyn-string.c:280:3: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
./dyn-string.c: In function ‘dyn_string_append’:
./dyn-string.c:316:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
316 | strcpy (dest->s + dest->length, s->s);
| ^~~~~~
./dyn-string.c:316:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./dyn-string.c: In function ‘dyn_string_append_cstr’:
./dyn-string.c:328:13: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
328 | int len = strlen (s);
| ^~~~~~
./dyn-string.c:328:13: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
./dyn-string.c:334:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
334 | strcpy (dest->s + dest->length, s);
| ^~~~~~
./dyn-string.c:334:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
./dyn-string.c: In function ‘dyn_string_substring’:
./dyn-string.c:371:5: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
371 | abort ();
| ^~~~~
./dyn-string.c:371:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./dyn-string.c: In function ‘dyn_string_eq’:
./dyn-string.c:396:13: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
396 | return !strcmp (ds1->s, ds2->s);
| ^~~~~~
./dyn-string.c:396:13: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
./dyn-string.c: In function ‘dyn_string_insert_cstr’:
./dyn-string.c:280:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
280 | strncpy (dest->s + pos, src, length);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./dyn-string.c:272:16: note: length computed here
272 | int length = strlen (src);
| ^~~~~~~~~~~~
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./fdmatch.c -o pic/fdmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./fdmatch.c -o fdmatch.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./fibheap.c -o pic/fibheap.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./fibheap.c -o fibheap.o
./fibheap.c: In function ‘fibheap_union’:
./fibheap.c:151:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
151 | free (heapa);
| ^~~~
./fibheap.c:36:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
35 | #include "fibheap.h"
+++ |+#include <stdlib.h>
36 |
./fibheap.c:151:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
151 | free (heapa);
| ^~~~
./fibheap.c:151:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c:156:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
156 | free (heapb);
| ^~~~
./fibheap.c:156:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c:172:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
172 | free (heapb);
| ^~~~
./fibheap.c:172:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c: In function ‘fibheap_extract_min’:
./fibheap.c:190:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
190 | free (z);
| ^~~~
./fibheap.c:190:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c: In function ‘fibheap_replace_key_data’:
./fibheap.c:38:25: error: ‘LONG_MIN’ undeclared (first use in this function)
38 | #define FIBHEAPKEY_MIN LONG_MIN
| ^~~~~~~~
./fibheap.c:220:30: note: in expansion of macro ‘FIBHEAPKEY_MIN’
220 | if (okey == key && okey != FIBHEAPKEY_MIN)
| ^~~~~~~~~~~~~~
./fibheap.c:36:1: note: ‘LONG_MIN’ is defined in header ‘<limits.h>’; did you forget to ‘#include <limits.h>’?
35 | #include "fibheap.h"
+++ |+#include <limits.h>
36 |
./fibheap.c:38:25: note: each undeclared identifier is reported only once for each function it appears in
38 | #define FIBHEAPKEY_MIN LONG_MIN
| ^~~~~~~~
./fibheap.c:220:30: note: in expansion of macro ‘FIBHEAPKEY_MIN’
220 | if (okey == key && okey != FIBHEAPKEY_MIN)
| ^~~~~~~~~~~~~~
./fibheap.c: In function ‘fibheap_delete_node’:
./fibheap.c:38:25: error: ‘LONG_MIN’ undeclared (first use in this function)
38 | #define FIBHEAPKEY_MIN LONG_MIN
| ^~~~~~~~
./fibheap.c:261:36: note: in expansion of macro ‘FIBHEAPKEY_MIN’
261 | fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
| ^~~~~~~~~~~~~~
./fibheap.c:38:25: note: ‘LONG_MIN’ is defined in header ‘<limits.h>’; did you forget to ‘#include <limits.h>’?
38 | #define FIBHEAPKEY_MIN LONG_MIN
| ^~~~~~~~
./fibheap.c:261:36: note: in expansion of macro ‘FIBHEAPKEY_MIN’
261 | fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
| ^~~~~~~~~~~~~~
./fibheap.c:265:7: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
265 | abort ();
| ^~~~~
./fibheap.c:265:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./fibheap.c:265:7: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
./fibheap.c:265:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
./fibheap.c: In function ‘fibheap_delete’:
./fibheap.c:277:5: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
277 | free (fibheap_extr_min_node (heap));
| ^~~~
./fibheap.c:277:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c:279:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
279 | free (heap);
| ^~~~
./fibheap.c:279:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
./fibheap.c: In function ‘fibheap_consolidate’:
./fibheap.c:368:3: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
368 | memset (a, 0, sizeof (fibnode_t) * D);
| ^~~~~~
./fibheap.c:36:1: note: include ‘<string.h>’ or provide a declaration of ‘memset’
35 | #include "fibheap.h"
+++ |+#include <string.h>
36 |
./fibheap.c:368:3: warning: incompatible implicit declaration of built-in function ‘memset’ [-Wbuiltin-declaration-mismatch]
368 | memset (a, 0, sizeof (fibnode_t) * D);
| ^~~~~~
./fibheap.c:368:3: note: include ‘<string.h>’ or provide a declaration of ‘memset’
make[4]: *** [Makefile:658: fibheap.o] Error 1
make[3]: *** [Makefile:6996: all-libiberty] Error 2
make[2]: *** [Makefile:835: all] Error 2
crash build failed
make[1]: *** [Makefile:236: gdb_merge] Error 1
make: *** [Makefile:227: all] Error 2
Another way to try to fix this problem is to update to the latest GDB that hopefully works better with GCC11.
We updated the internal gdb to 10.2 in the master branch.