Running phase: unpackPhase unpacking source archive /nix/store/53q2gg25ihxafalhr78ym5f7qjjrvxgh-sgrep-1.94a.tar.gz source root is sgrep-1.94a setting SOURCE_DATE_EPOCH to timestamp 1100888616 of file "sgrep-1.94a/Makefile.in" Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Updating Autotools / GNU config script to a newer upstream version: ./config.sub Updating Autotools / GNU config script to a newer upstream version: ./config.guess Running phase: configurePhase patching script interpreter paths in ./configure ./configure: interpreter directive changed from "#! /bin/sh" to "/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/sh" configure flags: --disable-dependency-tracking --prefix=/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a checking for a BSD-compatible install... /nix/store/fr9yr63a1267cr0r86w18c77mh3xavcc-coreutils-9.6/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output... 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 ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking whether make sets $(MAKE)... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for egrep... grep -E checking for ANSI C header files... no checking for sys/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking for size_t... yes checking for vprintf... yes checking for _doprnt... no checking for mmap... yes checking for dup... yes checking for dup2... yes checking for pipe... yes checking for fileno... yes checking for select... yes checking for strerror... yes checking for strtol... yes checking for times... yes checking for vsnprintf... yes Using preprocessor 'm4 -s' Enabling assertions. Enabling memory leak and allocation debugging. configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands Running phase: buildPhase build flags: SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash make all-am make[1]: Entering directory '/build/sgrep-1.94a' gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'main.c' || echo './'`main.c main.c: In function 'show_stats': main.c:944:36: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 944 | fprintf(stderr,"Memory:\n %dK peak memory usage, %d realloc operations\n", | ~^ | | | int | %ld gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'preproc.c' || echo './'`preproc.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'common.c' || echo './'`common.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'parser.c' || echo './'`parser.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'optimize.c' || echo './'`optimize.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'pmatch.c' || echo './'`pmatch.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'sgml.c' || echo './'`sgml.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'eval.c' || echo './'`eval.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'output.c' || echo './'`output.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'index.c' || echo './'`index.c index.c: In function 'display_index_statistics': index.c:316:33: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 316 | fprintf(f,"Hash array size %dK\n", | ~^ | | | int | %ld 317 | writer->hash_size*sizeof(IndexBuffer*)/1024); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int index.c:318:41: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 318 | fprintf(f,"Term entries total size %dK\n", | ~^ | | | int | %ld 319 | writer->terms*sizeof(IndexBuffer)/1024); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int index.c: In function 'new_index_writer': index.c:828:48: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 828 | sgrep_error(sgrep,"Could not allocate %dK memory for postings spool\n", | ~^ | | | int | %ld 829 | writer->spool_size*sizeof(struct IndexBlock)/1024); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int index.c: In function 'new_index_reader': index.c:1816:48: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 1816 | sgrep_progress(sgrep,"Using index '%s' of %dK size containing %d terms\n", | ~^ | | | int | %ld 1817 | imap->filename,imap->size/1024,imap->len); | ~~~~~~~~~~~~~~~ | | | size_t {aka long unsigned int} gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'sysdeps.c' || echo './'`sysdeps.c sysdeps.c: In function 'check_memory_leaks': sysdeps.c:489:49: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 489 | "Memory leak: %d blocks having %d bytes total size\n", | ~^ | | | int | %ld sysdeps.c:496:32: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 496 | "\t%s:%d: %d bytes\n",block->file,block->line,block->size); | ~^ ~~~~~~~~~~~ | | | | int size_t {aka long unsigned int} | %ld gcc -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR="\"/nix/store/kbg5ivxjhx1jagl3vsn2cb191720idw4-sgrep-1.94a/share\"" -g -O2 -c `test -f 'index_main.c' || echo './'`index_main.c index_main.c: In function 'parse_index_options': index_main.c:84:21: error: implicit declaration of function 'strcmp' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 84 | if (strcmp(*argv,"--")==0) return i+1; | ^~~~~~ index_main.c:2:1: note: include '' or provide a declaration of 'strcmp' 1 | #include "sgrep.h" +++ |+#include 2 | index_main.c: In function 'index_main': index_main.c:241:13: error: implicit declaration of function 'index_query' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 241 | if (index_query(&options,argc-end_options,argv+end_options) | ^~~~~~~~~~~ make[1]: *** [Makefile:258: index_main.o] Error 1 make[1]: Leaving directory '/build/sgrep-1.94a' make: *** [Makefile:167: all] Error 2