Summary
Performance
Cost$7.081
Total elapsed time24m4s
LLM inference time21m54s
Command execution time2m10s
Commands executed114
All details >
Attempt ID ffj48x6sy4918 Attempt group run-16-09-22-05
Revision fb5c74bd2fee AWS Instance m8i.2xlarge
Start time 2025-09-16T20:16:35.219Z End time 2025-09-16T20:40:39.933Z
Task coreutils-old-version-alpine Environment alpine-3.22.1-amd64-offline
Model grok-4 logo grok-4 OpenRouter slug x-ai/grok-4
Temperature 1 Explicit prompt caching false
User msg after tool call false Max tool calls 200
Total timeout seconds 2400 Single command timeout 900
Cost $7.081 Duration 24m4s
LLM inference time 21m54s Command execution time 2m10s
Final context tokens 108,844 Total output tokens 36,731
Output reasoning tokens 30,083 Messages 231
Assistant messages 115 User messages 1
System messages 1 Commands executed 114
Task
Task: coreutils-old-version-alpine

GNU coreutils 5.0 (from 2003) is a collection of Linux utilities like ls, cp, mv, etc.
Project link: gnu.org/software/coreutils

Task:
Compile and install all coreutils utilities to a specific location.

Difficulties:
The source is very old (2003) and requires heavy patching. On Alpine Linux (with musl) the code requires even more patching.

Environment:
Alpine Linux 3.22.1 on amd64, without internet access.

Execution log
SYSTEM

You are a package-building specialist operating a Alpine Linux 3.22.1 bash shell via one tool: run_terminal_cmd.
The current working directory of every run_terminal_cmd is /home/peter.
Execution rules:
- Always pass non-interactive flags for any command that could prompt (e.g., -y, --yes).
- Don't include any newlines in the command.
- The environment is offline, assume you have all the necessary tools already installed.
If you encounter any errors or issues while doing the user's request, you must fix them and continue the task.
At the end verify you did the user request correctly.

USER

You are given a coreutils v5.0 source code at /home/peter/coreutils.tar.gz. Please compile the coreutils package and install it to /home/peter/result. Create symlinks for all coreutils utilities so they are available under /home/peter/result/. For example: /home/peter/result/uptime should point to the compiled uptime binary.

ASSISTANT
compile-bench> tar -xzf coreutils.tar.gz
[empty output]
ASSISTANT
compile-bench> ls
coreutils-5.0     coreutils.tar.gz
ASSISTANT
compile-bench> cd coreutils-5.0 && ./configure --prefix=/home/peter/result
bash: eval: line 6: syntax error near unexpected token `;&'
bash: eval: line 6: `cd coreutils-5.0 && ./configure --prefix=/home/peter/result'
3 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && ./configure --prefix=/home/peter/result
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
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... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for AIX... no
checking for ANSI C header files... no
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 for uname... yes
checking for chroot... yes
checking for gethostid... yes
checking for strerror in -lcposix... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... (cached) no
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for inline... inline
checking for working long double with more range or precision than double... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
[command output truncated]
checking for getspnam... yes
checking for library containing crypt... none required
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for GNU gettext in libintl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating man/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/basename/Makefile
config.status: creating tests/chgrp/Makefile
config.status: creating tests/chmod/Makefile
config.status: creating tests/chown/Makefile
config.status: creating tests/cp/Makefile
config.status: creating tests/cut/Makefile
config.status: creating tests/date/Makefile
config.status: creating tests/dd/Makefile
config.status: creating tests/dircolors/Makefile
config.status: creating tests/du/Makefile
config.status: creating tests/expr/Makefile
config.status: creating tests/factor/Makefile
config.status: creating tests/fmt/Makefile
config.status: creating tests/head/Makefile
config.status: creating tests/install/Makefile
config.status: creating tests/join/Makefile
config.status: creating tests/ln/Makefile
config.status: creating tests/ls-2/Makefile
config.status: creating tests/ls/Makefile
config.status: creating tests/md5sum/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/mkdir/Makefile
config.status: creating tests/mv/Makefile
config.status: creating tests/od/Makefile
config.status: creating tests/pr/Makefile
config.status: creating tests/rm/Makefile
config.status: creating tests/rmdir/Makefile
config.status: creating tests/seq/Makefile
config.status: creating tests/sha1sum/Makefile
config.status: creating tests/shred/Makefile
config.status: creating tests/sort/Makefile
config.status: creating tests/stty/Makefile
config.status: creating tests/sum/Makefile
config.status: creating tests/tac/Makefile
config.status: creating tests/tail-2/Makefile
config.status: creating tests/tail/Makefile
config.status: creating tests/test/Makefile
config.status: creating tests/touch/Makefile
config.status: creating tests/tr/Makefile
config.status: creating tests/tsort/Makefile
config.status: creating tests/unexpand/Makefile
config.status: creating tests/uniq/Makefile
config.status: creating tests/wc/Makefile
config.status: creating config.h
config.status: linking ./lib/fnmatch_.h to lib/fnmatch.h
config.status: linking ./lib/ftw_.h to lib/ftw.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
141 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -g -O2 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
In file included from acl.c:22:
../config.h:1359:15: error: duplicate 'unsigned'
 1359 | #define ino_t unsigned long
      |               ^~~~~~~~
make[3]: *** [Makefile:590: acl.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
23 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && sed -i '/#define ino_t unsigned long/d' config.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -g -O2 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -g -O2 -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" \
  -c -o getdate.o `test -f 'getdate.c' || echo './'`getdate.c; \
then mv ".deps/getdate.Tpo" ".deps/getdate.Po"; \
else rm -f ".deps/getdate.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -g -O2 -MT posixtm.o -MD -MP -MF ".deps/posixtm.Tpo" \
  -c -o posixtm.o `test -f 'posixtm.c' || echo './'`posixtm.c; \
then mv ".deps/posixtm.Tpo" ".deps/posixtm.Po"; \
else rm -f ".deps/posixtm.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -g -O2 -MT posixver.o -MD -MP -MF ".deps/posixver.Tpo" \
  -c -o posixver.o `test -f 'posixver.c' || echo './'`posixver.c; \
then mv ".deps/posixver.Tpo" ".deps/posixver.Po"; \
else rm -f ".deps/posixver.Tpo"; exit 1; \
fi
In file included from /usr/include/fortify/stdlib.h:33,
                 from posixver.c:28:
/usr/include/fortify/unistd.h:75:1: error: 'getgroups' undeclared here (not in a function); did you mean 'setgroups'?
   75 | _FORTIFY_FN(getgroups) int getgroups(int __l, gid_t * _FORTIFY_POS0 __s)
      | ^~~~~~~~~~~
In file included from posixver.c:34:
/usr/include/fortify/unistd.h: In function 'getgroups':
/usr/include/fortify/unistd.h:81:16: error: called object '__orig_getgroups' is not a function or function pointer
   81 |         return __orig_getgroups(__l, __s);
      |                ^~~~~~~~~~~~~~~~
/usr/include/fortify/unistd.h:75:1: note: declared here
   75 | _FORTIFY_FN(getgroups) int getgroups(int __l, gid_t * _FORTIFY_POS0 __s)
      | ^~~~~~~~~~~
make[3]: *** [Makefile:590: posixver.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
47 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && ./configure --prefix=/home/peter/result CFLAGS="-D_FORTIFY_SOURCE=0"
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
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... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for AIX... no
checking for ANSI C header files... no
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 for uname... yes
checking for chroot... yes
checking for gethostid... yes
checking for strerror in -lcposix... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... (cached) no
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for inline... inline
checking for working long double with more range or precision than double... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
[command output truncated]
checking for getspnam... yes
checking for library containing crypt... none required
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for GNU gettext in libintl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating man/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/basename/Makefile
config.status: creating tests/chgrp/Makefile
config.status: creating tests/chmod/Makefile
config.status: creating tests/chown/Makefile
config.status: creating tests/cp/Makefile
config.status: creating tests/cut/Makefile
config.status: creating tests/date/Makefile
config.status: creating tests/dd/Makefile
config.status: creating tests/dircolors/Makefile
config.status: creating tests/du/Makefile
config.status: creating tests/expr/Makefile
config.status: creating tests/factor/Makefile
config.status: creating tests/fmt/Makefile
config.status: creating tests/head/Makefile
config.status: creating tests/install/Makefile
config.status: creating tests/join/Makefile
config.status: creating tests/ln/Makefile
config.status: creating tests/ls-2/Makefile
config.status: creating tests/ls/Makefile
config.status: creating tests/md5sum/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/mkdir/Makefile
config.status: creating tests/mv/Makefile
config.status: creating tests/od/Makefile
config.status: creating tests/pr/Makefile
config.status: creating tests/rm/Makefile
config.status: creating tests/rmdir/Makefile
config.status: creating tests/seq/Makefile
config.status: creating tests/sha1sum/Makefile
config.status: creating tests/shred/Makefile
config.status: creating tests/sort/Makefile
config.status: creating tests/stty/Makefile
config.status: creating tests/sum/Makefile
config.status: creating tests/tac/Makefile
config.status: creating tests/tail-2/Makefile
config.status: creating tests/tail/Makefile
config.status: creating tests/test/Makefile
config.status: creating tests/touch/Makefile
config.status: creating tests/tr/Makefile
config.status: creating tests/tsort/Makefile
config.status: creating tests/unexpand/Makefile
config.status: creating tests/uniq/Makefile
config.status: creating tests/wc/Makefile
config.status: creating config.h
config.status: linking ./lib/fnmatch_.h to lib/fnmatch.h
config.status: linking ./lib/ftw_.h to lib/ftw.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
141 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && sed -i '/#define ino_t unsigned long/d' config.h && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" \
  -c -o getdate.o `test -f 'getdate.c' || echo './'`getdate.c; \
then mv ".deps/getdate.Tpo" ".deps/getdate.Po"; \
else rm -f ".deps/getdate.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixtm.o -MD -MP -MF ".deps/posixtm.Tpo" \
  -c -o posixtm.o `test -f 'posixtm.c' || echo './'`posixtm.c; \
then mv ".deps/posixtm.Tpo" ".deps/posixtm.Po"; \
else rm -f ".deps/posixtm.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixver.o -MD -MP -MF ".deps/posixver.Tpo" \
  -c -o posixver.o `test -f 'posixver.c' || echo './'`posixver.c; \
then mv ".deps/posixver.Tpo" ".deps/posixver.Po"; \
else rm -f ".deps/posixver.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strftime.o -MD -MP -MF ".deps/strftime.Tpo" \
  -c -o strftime.o `test -f 'strftime.c' || echo './'`strftime.c; \
then mv ".deps/strftime.Tpo" ".deps/strftime.Po"; \
else rm -f ".deps/strftime.Tpo"; exit 1; \
fi
strftime.c: In function 'nstrftime':
strftime.c:258:32: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  258 | #  define memset_zero(P, Len) (memset ((P), '0', (Len)), (P) += (Len))
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:275:17: note: in expansion of macro 'memset_zero'
  275 |                 memset_zero (p, _delta);                                      \
      |                 ^~~~~~~~~~~
strftime.c:662:11: note: in expansion of macro 'add'
  662 |           add (1, *p = *f);
      |           ^~~
strftime.c:257:33: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  257 | #  define memset_space(P, Len) (memset ((P), ' ', (Len)), (P) += (Len))
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:277:17: note: in expansion of macro 'memset_space'
  277 |      
[command output truncated]
.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT mbswidth.o -MD -MP -MF ".deps/mbswidth.Tpo" \
  -c -o mbswidth.o `test -f 'mbswidth.c' || echo './'`mbswidth.c; \
then mv ".deps/mbswidth.Tpo" ".deps/mbswidth.Po"; \
else rm -f ".deps/mbswidth.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT md5.o -MD -MP -MF ".deps/md5.Tpo" \
  -c -o md5.o `test -f 'md5.c' || echo './'`md5.c; \
then mv ".deps/md5.Tpo" ".deps/md5.Po"; \
else rm -f ".deps/md5.Tpo"; exit 1; \
fi
md5.c: In function 'md5_finish_ctx':
md5.c:129:3: error: implicit declaration of function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  129 |   memcpy (&ctx->buffer[bytes], fillbuf, pad);
      |   ^~~~~~
md5.c:40:1: note: include '<string.h>' or provide a declaration of 'memcpy'
   39 | #include "unlocked-io.h"
  +++ |+#include <string.h>
   40 | 
md5.c:129:3: warning: incompatible implicit declaration of built-in function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  129 |   memcpy (&ctx->buffer[bytes], fillbuf, pad);
      |   ^~~~~~
md5.c:129:3: note: include '<string.h>' or provide a declaration of 'memcpy'
md5.c: In function 'md5_process_bytes':
md5.c:246:7: warning: incompatible implicit declaration of built-in function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  246 |       memcpy (&ctx->buffer[left_over], buffer, add);
      |       ^~~~~~
md5.c:246:7: note: include '<string.h>' or provide a declaration of 'memcpy'
md5.c:277:32: warning: incompatible implicit declaration of built-in function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  277 |             md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
      |                                ^~~~~~
md5.c:277:32: note: include '<string.h>' or provide a declaration of 'memcpy'
md5.c:295:7: warning: incompatible implicit declaration of built-in function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  295 |       memcpy (&ctx->buffer[left_over], buffer, len);
      |       ^~~~~~
md5.c:295:7: note: include '<string.h>' or provide a declaration of 'memcpy'
make[3]: *** [Makefile:590: md5.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
90 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include &lt;string.h&gt;' ; cat md5.c) &gt; temp && mv temp md5.c
bash: gt: command not found
#include &lt;string.h&gt;
bash: temp: command not found
/* md5.c - Functions to compute MD5 message digest of files or memory blocks
   according to the definition of MD5 in RFC 1321 from April 1992.
   Copyright (C) 1995, 1996, 2001, 2003 Free Software Foundation, Inc.
   NOTE: The canonical source of this file is maintained with the GNU C
   Library.  Bugs can be reported to [email protected].

   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by the
   Free Software Foundation; either version 2, or (at your option) any
   later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */

/* Written by Ulrich Drepper <[email protected]>, 1995.  */

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include <sys/types.h>

#if STDC_HEADERS || defined _LIBC
# include <stdlib.h>
# include <string.h>
#else
# ifndef HAVE_MEMCPY
#  define memcpy(d, s, n) bcopy ((s), (d), (n))
# endif
#endif

#include "md5.h"
#include "unlocked-io.h"

#ifdef _LIBC
# include <endian.h>
# if __BYTE_ORDER == __BIG_ENDIAN
#  define WORDS_BIGENDIAN 1
# endif
/* We need to keep the namespace clean so define the MD5 function
   protected using leading __ .  */
# define md5_init_ctx __md5_init_ctx
# define md5_process_block __md5_process_block
# define md5_process_bytes __md5_process_bytes
# define md5_finish_ctx __md5_finish_ctx
# define md5_read_ctx __md5_read_ctx
# define md5_stream __md5_stream
# define md5_buffer __md5_buffer
#endif

#ifdef WORDS_BIGENDIAN
# define SWAP(n)							\
    (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
#else
# define SWAP(n) (n)
#endif

#define BLOCKSIZE 4096
/* Ensure that BLOCKSIZE is a multiple of 64.  */
#if BLOCKSIZE % 64 != 0
/* FIXME-someday (soon?): use #error instead of this kludge.  */
[command output truncated]
      while (0)

      /* Round 2.  */
      OP (FG, A, B, C, D,  1,  5, 0xf61e2562);
      OP (FG, D, A, B, C,  6,  9, 0xc040b340);
      OP (FG, C, D, A, B, 11, 14, 0x265e5a51);
      OP (FG, B, C, D, A,  0, 20, 0xe9b6c7aa);
      OP (FG, A, B, C, D,  5,  5, 0xd62f105d);
      OP (FG, D, A, B, C, 10,  9, 0x02441453);
      OP (FG, C, D, A, B, 15, 14, 0xd8a1e681);
      OP (FG, B, C, D, A,  4, 20, 0xe7d3fbc8);
      OP (FG, A, B, C, D,  9,  5, 0x21e1cde6);
      OP (FG, D, A, B, C, 14,  9, 0xc33707d6);
      OP (FG, C, D, A, B,  3, 14, 0xf4d50d87);
      OP (FG, B, C, D, A,  8, 20, 0x455a14ed);
      OP (FG, A, B, C, D, 13,  5, 0xa9e3e905);
      OP (FG, D, A, B, C,  2,  9, 0xfcefa3f8);
      OP (FG, C, D, A, B,  7, 14, 0x676f02d9);
      OP (FG, B, C, D, A, 12, 20, 0x8d2a4c8a);

      /* Round 3.  */
      OP (FH, A, B, C, D,  5,  4, 0xfffa3942);
      OP (FH, D, A, B, C,  8, 11, 0x8771f681);
      OP (FH, C, D, A, B, 11, 16, 0x6d9d6122);
      OP (FH, B, C, D, A, 14, 23, 0xfde5380c);
      OP (FH, A, B, C, D,  1,  4, 0xa4beea44);
      OP (FH, D, A, B, C,  4, 11, 0x4bdecfa9);
      OP (FH, C, D, A, B,  7, 16, 0xf6bb4b60);
      OP (FH, B, C, D, A, 10, 23, 0xbebfbc70);
      OP (FH, A, B, C, D, 13,  4, 0x289b7ec6);
      OP (FH, D, A, B, C,  0, 11, 0xeaa127fa);
      OP (FH, C, D, A, B,  3, 16, 0xd4ef3085);
      OP (FH, B, C, D, A,  6, 23, 0x04881d05);
      OP (FH, A, B, C, D,  9,  4, 0xd9d4d039);
      OP (FH, D, A, B, C, 12, 11, 0xe6db99e5);
      OP (FH, C, D, A, B, 15, 16, 0x1fa27cf8);
      OP (FH, B, C, D, A,  2, 23, 0xc4ac5665);

      /* Round 4.  */
      OP (FI, A, B, C, D,  0,  6, 0xf4292244);
      OP (FI, D, A, B, C,  7, 10, 0x432aff97);
      OP (FI, C, D, A, B, 14, 15, 0xab9423a7);
      OP (FI, B, C, D, A,  5, 21, 0xfc93a039);
      OP (FI, A, B, C, D, 12,  6, 0x655b59c3);
      OP (FI, D, A, B, C,  3, 10, 0x8f0ccc92);
      OP (FI, C, D, A, B, 10, 15, 0xffeff47d);
      OP (FI, B, C, D, A,  1, 21, 0x85845dd1);
      OP (FI, A, B, C, D,  8,  6, 0x6fa87e4f);
      OP (FI, D, A, B, C, 15, 10, 0xfe2ce6e0);
      OP (FI, C, D, A, B,  6, 15, 0xa3014314);
      OP (FI, B, C, D, A, 13, 21, 0x4e0811a1);
      OP (FI, A, B, C, D,  4,  6, 0xf7537e82);
      OP (FI, D, A, B, C, 11, 10, 0xbd3af235);
      OP (FI, C, D, A, B,  2, 15, 0x2ad7d2bb);
      OP (FI, B, C, D, A,  9, 21, 0xeb86d391);

      /* Add the starting values of the context.  */
      A += A_save;
      B += B_save;
      C += C_save;
      D += D_save;
    }

  /* Put checksum in context given as argument.  */
  ctx->A = A;
  ctx->B = B;
  ctx->C = C;
  ctx->D = D;
}
141 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <string.h>' ; cat md5.c) > temp && mv temp md5.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT md5.o -MD -MP -MF ".deps/md5.Tpo" \
  -c -o md5.o `test -f 'md5.c' || echo './'`md5.c; \
then mv ".deps/md5.Tpo" ".deps/md5.Po"; \
else rm -f ".deps/md5.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT memcasecmp.o -MD -MP -MF ".deps/memcasecmp.Tpo" \
  -c -o memcasecmp.o `test -f 'memcasecmp.c' || echo './'`memcasecmp.c; \
then mv ".deps/memcasecmp.Tpo" ".deps/memcasecmp.Po"; \
else rm -f ".deps/memcasecmp.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT memcoll.o -MD -MP -MF ".deps/memcoll.Tpo" \
  -c -o memcoll.o `test -f 'memcoll.c' || echo './'`memcoll.c; \
then mv ".deps/memcoll.Tpo" ".deps/memcoll.Po"; \
else rm -f ".deps/memcoll.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT modechange.o -MD -MP -MF ".deps/modechange.Tpo" \
  -c -o modechange.o `test -f 'modechange.c' || echo './'`modechange.c; \
then mv ".deps/modechange.Tpo" ".deps/modechange.Po"; \
else rm -f ".deps/modechange.Tpo"; exit 1; \
fi
modechange.c:38:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
   38 | char *malloc ();
      |       ^~~~~~
modechange.c:34:1: note: 'malloc' is declared in header '<stdlib.h>'
   33 | #include "xstrtol.h"
  +++ |+#include <stdlib.h>
   34 | 
modechange.c: In function 'mode_free':
modechange.c:478:7: error: implicit declaration of function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  478 |       free (changes);
      |       ^~~~
modechange.c:478:7: note: include '<stdlib.h>' or provide a declaration of 'free'
modechange.c:478:7: warning: incompatible implicit declaration of built-in function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
modechange.c:478:7: note: include '<stdlib.h>' or provide a declaration of 'free'
make[3]: *** [Makefile:590: modechange.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
48 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stdlib.h>' ; cat modechange.c) > temp && mv temp modechange.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT modechange.o -MD -MP -MF ".deps/modechange.Tpo" \
  -c -o modechange.o `test -f 'modechange.c' || echo './'`modechange.c; \
then mv ".deps/modechange.Tpo" ".deps/modechange.Po"; \
else rm -f ".deps/modechange.Tpo"; exit 1; \
fi
modechange.c:39:7: error: conflicting types for 'malloc'; have 'char *()'
   39 | char *malloc ();
      |       ^~~~~~
In file included from /usr/include/fortify/stdlib.h:23,
                 from modechange.c:1:
/usr/include/stdlib.h:40:7: note: previous declaration of 'malloc' with type 'void *(long unsigned int)'
   40 | void *malloc (size_t);
      |       ^~~~~~
make[3]: *** [Makefile:590: modechange.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
27 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && sed -i '/char \*malloc/d' modechange.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT modechange.o -MD -MP -MF ".deps/modechange.Tpo" \
  -c -o modechange.o `test -f 'modechange.c' || echo './'`modechange.c; \
then mv ".deps/modechange.Tpo" ".deps/modechange.Po"; \
else rm -f ".deps/modechange.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT offtostr.o -MD -MP -MF ".deps/offtostr.Tpo" \
  -c -o offtostr.o `test -f 'offtostr.c' || echo './'`offtostr.c; \
then mv ".deps/offtostr.Tpo" ".deps/offtostr.Po"; \
else rm -f ".deps/offtostr.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT path-concat.o -MD -MP -MF ".deps/path-concat.Tpo" \
  -c -o path-concat.o `test -f 'path-concat.c' || echo './'`path-concat.c; \
then mv ".deps/path-concat.Tpo" ".deps/path-concat.Po"; \
else rm -f ".deps/path-concat.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT physmem.o -MD -MP -MF ".deps/physmem.Tpo" \
  -c -o physmem.o `test -f 'physmem.c' || echo './'`physmem.c; \
then mv ".deps/physmem.Tpo" ".deps/physmem.Po"; \
else rm -f ".deps/physmem.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT quote.o -MD -MP -MF ".deps/quote.Tpo" \
  -c -o quote.o `test -f 'quote.c' || echo './'`quote.c; \
then mv ".deps/quote.Tpo" ".deps/quote.Po"; \
else rm -f ".deps/quote.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT quotearg.o -MD -MP -MF ".deps/quotearg.Tpo" \
  -c -o quotearg.o `test -f 'quotearg.c' || echo './'`quotearg.c; \
then mv ".deps/quotearg.Tpo" ".deps/quotearg.Po"; \
else rm -f ".deps/quotearg.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT readtokens.o -MD -MP -MF ".deps/readtokens.Tpo" \
  -c -o readtokens.o `test -f 'readtokens.c' || echo './'`readtokens.c; \
then mv ".deps/readtokens.Tpo" ".deps/readtokens.Po"; \
else rm -f ".deps/readtokens.Tpo"; exit 1; \
fi
readtokens.c: In function 'readtoken':
readtokens.c:92:5: error: implicit declaration of function 'abort' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
   92 |     abort ();
      |     ^~~~~
readtokens.c:54:1: note: include '<stdlib.h>' or provide a declaration of 'abort'
   53 | #include "xalloc.h"
  +++ |+#include <stdlib.h>
   54 | 
readtokens.c:92:5: warning: incompatible implicit declaration of built-in function 'abort' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
   92 |     abort ();
      |     ^~~~~
readtokens.c:92:5: note: include '<stdlib.h>' or provide a declaration of 'abort'
readtokens.c: In function 'readtokens':
readtokens.c:216:3: error: implicit declaration of function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  216 |   free (token->buffer);
      |   ^~~~
readtokens.c:216:3: note: include '<stdlib.h>' or provide a declaration of 'free'
readtokens.c:216:3: warning: incompatible implicit declaration of built-in function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
readtokens.c:216:3: note: include '<stdlib.h>' or provide a declaration of 'free'
make[3]: *** [Makefile:590: readtokens.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
68 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stdlib.h>' ; cat readtokens.c) > temp && mv temp readtokens.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT readtokens.o -MD -MP -MF ".deps/readtokens.Tpo" \
  -c -o readtokens.o `test -f 'readtokens.c' || echo './'`readtokens.c; \
then mv ".deps/readtokens.Tpo" ".deps/readtokens.Po"; \
else rm -f ".deps/readtokens.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT safe-read.o -MD -MP -MF ".deps/safe-read.Tpo" \
  -c -o safe-read.o `test -f 'safe-read.c' || echo './'`safe-read.c; \
then mv ".deps/safe-read.Tpo" ".deps/safe-read.Po"; \
else rm -f ".deps/safe-read.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT safe-write.o -MD -MP -MF ".deps/safe-write.Tpo" \
  -c -o safe-write.o `test -f 'safe-write.c' || echo './'`safe-write.c; \
then mv ".deps/safe-write.Tpo" ".deps/safe-write.Po"; \
else rm -f ".deps/safe-write.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT same.o -MD -MP -MF ".deps/same.Tpo" \
  -c -o same.o `test -f 'same.c' || echo './'`same.c; \
then mv ".deps/same.Tpo" ".deps/same.Po"; \
else rm -f ".deps/same.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT save-cwd.o -MD -MP -MF ".deps/save-cwd.Tpo" \
  -c -o save-cwd.o `test -f 'save-cwd.c' || echo './'`save-cwd.c; \
then mv ".deps/save-cwd.Tpo" ".deps/save-cwd.Po"; \
else rm -f ".deps/save-cwd.Tpo"; exit 1; \
fi
save-cwd.c: In function 'free_cwd':
save-cwd.c:145:5: error: implicit declaration of function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  145 |     free (cwd->name);
      |     ^~~~
save-cwd.c:52:1: note: include '<stdlib.h>' or provide a declaration of 'free'
   51 | #include "xgetcwd.h"
  +++ |+#include <stdlib.h>
   52 | 
save-cwd.c:145:5: warning: incompatible implicit declaration of built-in function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  145 |     free (cwd->name);
      |     ^~~~
save-cwd.c:145:5: note: include '<stdlib.h>' or provide a declaration of 'free'
make[3]: *** [Makefile:590: save-cwd.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
51 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stdlib.h>' ; cat save-cwd.c) > temp && mv temp save-cwd.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT save-cwd.o -MD -MP -MF ".deps/save-cwd.Tpo" \
  -c -o save-cwd.o `test -f 'save-cwd.c' || echo './'`save-cwd.c; \
then mv ".deps/save-cwd.Tpo" ".deps/save-cwd.Po"; \
else rm -f ".deps/save-cwd.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT savedir.o -MD -MP -MF ".deps/savedir.Tpo" \
  -c -o savedir.o `test -f 'savedir.c' || echo './'`savedir.c; \
then mv ".deps/savedir.Tpo" ".deps/savedir.Po"; \
else rm -f ".deps/savedir.Tpo"; exit 1; \
fi
savedir.c: In function 'savedir':
savedir.c:99:31: error: implicit declaration of function 'strlen' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
   99 |           size_t entry_size = strlen (entry) + 1;
      |                               ^~~~~~
savedir.c:65:1: note: include '<string.h>' or provide a declaration of 'strlen'
   64 | #include "xalloc.h"
  +++ |+#include <string.h>
   65 | 
savedir.c:99:31: warning: incompatible implicit declaration of built-in function 'strlen' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
   99 |           size_t entry_size = strlen (entry) + 1;
      |                               ^~~~~~
savedir.c:99:31: note: include '<string.h>' or provide a declaration of 'strlen'
savedir.c:114:11: error: implicit declaration of function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  114 |           memcpy (name_space + used, entry, entry_size);
      |           ^~~~~~
savedir.c:114:11: note: include '<string.h>' or provide a declaration of 'memcpy'
savedir.c:114:11: warning: incompatible implicit declaration of built-in function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
savedir.c:114:11: note: include '<string.h>' or provide a declaration of 'memcpy'
savedir.c:124:7: error: implicit declaration of function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  124 |       free (name_space);
      |       ^~~~
savedir.c:65:1: note: include '<stdlib.h>' or provide a declaration of 'free'
   64 | #include "xalloc.h"
  +++ |+#include <stdlib.h>
   65 | 
savedir.c:124:7: warning: incompatible implicit declaration of built-in function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  124 |       free (name_space);
      |       ^~~~
savedir.c:124:7: note: include '<stdlib.h>' or provide a declaration of 'free'
make[3]: *** [Makefile:590: savedir.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
53 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stdlib.h>'; echo '#include <string.h>'; cat savedir.c) > temp && mv temp savedir.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT savedir.o -MD -MP -MF ".deps/savedir.Tpo" \
  -c -o savedir.o `test -f 'savedir.c' || echo './'`savedir.c; \
then mv ".deps/savedir.Tpo" ".deps/savedir.Po"; \
else rm -f ".deps/savedir.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT settime.o -MD -MP -MF ".deps/settime.Tpo" \
  -c -o settime.o `test -f 'settime.c' || echo './'`settime.c; \
then mv ".deps/settime.Tpo" ".deps/settime.Po"; \
else rm -f ".deps/settime.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT sha.o -MD -MP -MF ".deps/sha.Tpo" \
  -c -o sha.o `test -f 'sha.c' || echo './'`sha.c; \
then mv ".deps/sha.Tpo" ".deps/sha.Po"; \
else rm -f ".deps/sha.Tpo"; exit 1; \
fi
sha.c: In function 'sha_finish_ctx':
sha.c:109:3: error: implicit declaration of function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  109 |   memcpy (&ctx->buffer[bytes], fillbuf, pad);
      |   ^~~~~~
sha.c:28:1: note: include '<string.h>' or provide a declaration of 'memcpy'
   27 | #include "unlocked-io.h"
  +++ |+#include <string.h>
   28 | 
sha.c:109:3: warning: incompatible implicit declaration of built-in function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  109 |   memcpy (&ctx->buffer[bytes], fillbuf, pad);
      |   ^~~~~~
sha.c:109:3: note: include '<string.h>' or provide a declaration of 'memcpy'
sha.c: In function 'sha_process_bytes':
sha.c:217:7: warning: incompatible implicit declaration of built-in function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  217 |       memcpy (&ctx->buffer[left_over], buffer, add);
      |       ^~~~~~
sha.c:217:7: note: include '<string.h>' or provide a declaration of 'memcpy'
sha.c:248:32: warning: incompatible implicit declaration of built-in function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  248 |             sha_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
      |                                ^~~~~~
sha.c:248:32: note: include '<string.h>' or provide a declaration of 'memcpy'
sha.c:266:7: warning: incompatible implicit declaration of built-in function 'memcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  266 |       memcpy (&ctx->buffer[left_over], buffer, len);
      |       ^~~~~~
sha.c:266:7: note: include '<string.h>' or provide a declaration of 'memcpy'
make[3]: *** [Makefile:590: sha.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
54 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <string.h>' ; cat sha.c) > temp && mv temp sha.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT sha.o -MD -MP -MF ".deps/sha.Tpo" \
  -c -o sha.o `test -f 'sha.c' || echo './'`sha.c; \
then mv ".deps/sha.Tpo" ".deps/sha.Po"; \
else rm -f ".deps/sha.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT stripslash.o -MD -MP -MF ".deps/stripslash.Tpo" \
  -c -o stripslash.o `test -f 'stripslash.c' || echo './'`stripslash.c; \
then mv ".deps/stripslash.Tpo" ".deps/stripslash.Po"; \
else rm -f ".deps/stripslash.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT umaxtostr.o -MD -MP -MF ".deps/umaxtostr.Tpo" \
  -c -o umaxtostr.o `test -f 'umaxtostr.c' || echo './'`umaxtostr.c; \
then mv ".deps/umaxtostr.Tpo" ".deps/umaxtostr.Po"; \
else rm -f ".deps/umaxtostr.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT unicodeio.o -MD -MP -MF ".deps/unicodeio.Tpo" \
  -c -o unicodeio.o `test -f 'unicodeio.c' || echo './'`unicodeio.c; \
then mv ".deps/unicodeio.Tpo" ".deps/unicodeio.Po"; \
else rm -f ".deps/unicodeio.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT userspec.o -MD -MP -MF ".deps/userspec.Tpo" \
  -c -o userspec.o `test -f 'userspec.c' || echo './'`userspec.c; \
then mv ".deps/userspec.Tpo" ".deps/userspec.Po"; \
else rm -f ".deps/userspec.Tpo"; exit 1; \
fi
userspec.c: In function 'parse_user_spec':
userspec.c:332:19: error: implicit declaration of function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  332 |                   free (*username_arg);
      |                   ^~~~
userspec.c:72:1: note: include '<stdlib.h>' or provide a declaration of 'free'
   71 | #include "gettext.h"
  +++ |+#include <stdlib.h>
   72 | #define _(msgid) gettext (msgid)
userspec.c:332:19: warning: incompatible implicit declaration of built-in function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  332 |                   free (*username_arg);
      |                   ^~~~
userspec.c:332:19: note: include '<stdlib.h>' or provide a declaration of 'free'
make[3]: *** [Makefile:590: userspec.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
51 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stdlib.h>' ; cat userspec.c) > temp && mv temp userspec.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT userspec.o -MD -MP -MF ".deps/userspec.Tpo" \
  -c -o userspec.o `test -f 'userspec.c' || echo './'`userspec.c; \
then mv ".deps/userspec.Tpo" ".deps/userspec.Po"; \
else rm -f ".deps/userspec.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT version-etc.o -MD -MP -MF ".deps/version-etc.Tpo" \
  -c -o version-etc.o `test -f 'version-etc.c' || echo './'`version-etc.c; \
then mv ".deps/version-etc.Tpo" ".deps/version-etc.Po"; \
else rm -f ".deps/version-etc.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xgetcwd.o -MD -MP -MF ".deps/xgetcwd.Tpo" \
  -c -o xgetcwd.o `test -f 'xgetcwd.c' || echo './'`xgetcwd.c; \
then mv ".deps/xgetcwd.Tpo" ".deps/xgetcwd.Po"; \
else rm -f ".deps/xgetcwd.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xgethostname.o -MD -MP -MF ".deps/xgethostname.Tpo" \
  -c -o xgethostname.o `test -f 'xgethostname.c' || echo './'`xgethostname.c; \
then mv ".deps/xgethostname.Tpo" ".deps/xgethostname.Po"; \
else rm -f ".deps/xgethostname.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xmalloc.o -MD -MP -MF ".deps/xmalloc.Tpo" \
  -c -o xmalloc.o `test -f 'xmalloc.c' || echo './'`xmalloc.c; \
then mv ".deps/xmalloc.Tpo" ".deps/xmalloc.Po"; \
else rm -f ".deps/xmalloc.Tpo"; exit 1; \
fi
xmalloc.c: In function 'xalloc_die':
xmalloc.c:74:3: error: implicit declaration of function 'exit' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
   74 |   exit (EXIT_FAILURE);
      |   ^~~~
xmalloc.c:39:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   38 | #include "xalloc.h"
  +++ |+#include <stdlib.h>
   39 | 
xmalloc.c:74:3: warning: incompatible implicit declaration of built-in function 'exit' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
   74 |   exit (EXIT_FAILURE);
      |   ^~~~
xmalloc.c:74:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
make[3]: *** [Makefile:590: xmalloc.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
51 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stdlib.h>' ; cat xmalloc.c) > temp && mv temp xmalloc.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xmalloc.o -MD -MP -MF ".deps/xmalloc.Tpo" \
  -c -o xmalloc.o `test -f 'xmalloc.c' || echo './'`xmalloc.c; \
then mv ".deps/xmalloc.Tpo" ".deps/xmalloc.Po"; \
else rm -f ".deps/xmalloc.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xmemcoll.o -MD -MP -MF ".deps/xmemcoll.Tpo" \
  -c -o xmemcoll.o `test -f 'xmemcoll.c' || echo './'`xmemcoll.c; \
then mv ".deps/xmemcoll.Tpo" ".deps/xmemcoll.Po"; \
else rm -f ".deps/xmemcoll.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xnanosleep.o -MD -MP -MF ".deps/xnanosleep.Tpo" \
  -c -o xnanosleep.o `test -f 'xnanosleep.c' || echo './'`xnanosleep.c; \
then mv ".deps/xnanosleep.Tpo" ".deps/xnanosleep.Po"; \
else rm -f ".deps/xnanosleep.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xreadlink.o -MD -MP -MF ".deps/xreadlink.Tpo" \
  -c -o xreadlink.o `test -f 'xreadlink.c' || echo './'`xreadlink.c; \
then mv ".deps/xreadlink.Tpo" ".deps/xreadlink.Po"; \
else rm -f ".deps/xreadlink.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xstrdup.o -MD -MP -MF ".deps/xstrdup.Tpo" \
  -c -o xstrdup.o `test -f 'xstrdup.c' || echo './'`xstrdup.c; \
then mv ".deps/xstrdup.Tpo" ".deps/xstrdup.Po"; \
else rm -f ".deps/xstrdup.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xstrtod.o -MD -MP -MF ".deps/xstrtod.Tpo" \
  -c -o xstrtod.o `test -f 'xstrtod.c' || echo './'`xstrtod.c; \
then mv ".deps/xstrtod.Tpo" ".deps/xstrtod.Po"; \
else rm -f ".deps/xstrtod.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xstrtol.o -MD -MP -MF ".deps/xstrtol.Tpo" \
  -c -o xstrtol.o `test -f 'xstrtol.c' || echo './'`xstrtol.c; \
then mv ".deps/xstrtol.Tpo" ".deps/xstrtol.Po"; \
else rm -f ".deps/xstrtol.Tpo"; exit 1; \
fi
xstrtol.c: In function 'xstrtol':
xstrtol.c:25:19: error: implicit declaration of function 'strtol'; did you mean 'xstrtol'? [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
   25 | # define __strtol strtol
      |                   ^~~~~~
xstrtol.c:141:9: note: in expansion of macro '__strtol'
  141 |   tmp = __strtol (s, p, strtol_base);
      |         ^~~~~~~~
make[3]: *** [Makefile:590: xstrtol.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
56 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stdlib.h>' ; cat xstrtol.c) > temp && mv temp xstrtol.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xstrtol.o -MD -MP -MF ".deps/xstrtol.Tpo" \
  -c -o xstrtol.o `test -f 'xstrtol.c' || echo './'`xstrtol.c; \
then mv ".deps/xstrtol.Tpo" ".deps/xstrtol.Po"; \
else rm -f ".deps/xstrtol.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xstrtoul.o -MD -MP -MF ".deps/xstrtoul.Tpo" \
  -c -o xstrtoul.o `test -f 'xstrtoul.c' || echo './'`xstrtoul.c; \
then mv ".deps/xstrtoul.Tpo" ".deps/xstrtoul.Po"; \
else rm -f ".deps/xstrtoul.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xstrtoimax.o -MD -MP -MF ".deps/xstrtoimax.Tpo" \
  -c -o xstrtoimax.o `test -f 'xstrtoimax.c' || echo './'`xstrtoimax.c; \
then mv ".deps/xstrtoimax.Tpo" ".deps/xstrtoimax.Po"; \
else rm -f ".deps/xstrtoimax.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT xstrtoumax.o -MD -MP -MF ".deps/xstrtoumax.Tpo" \
  -c -o xstrtoumax.o `test -f 'xstrtoumax.c' || echo './'`xstrtoumax.c; \
then mv ".deps/xstrtoumax.Tpo" ".deps/xstrtoumax.Po"; \
else rm -f ".deps/xstrtoumax.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT yesno.o -MD -MP -MF ".deps/yesno.Tpo" \
  -c -o yesno.o `test -f 'yesno.c' || echo './'`yesno.c; \
then mv ".deps/yesno.Tpo" ".deps/yesno.Po"; \
else rm -f ".deps/yesno.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT mkdir.o -MD -MP -MF ".deps/mkdir.Tpo" \
  -c -o mkdir.o `test -f 'mkdir.c' || echo './'`mkdir.c; \
then mv ".deps/mkdir.Tpo" ".deps/mkdir.Po"; \
else rm -f ".deps/mkdir.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT fnmatch.o -MD -MP -MF ".deps/fnmatch.Tpo" \
  -c -o fnmatch.o `test -f 'fnmatch.c' || echo './'`fnmatch.c; \
then mv ".deps/fnmatch.Tpo" ".deps/fnmatch.Po"; \
else rm -f ".deps/fnmatch.Tpo"; exit 1; \
fi
In file included from fnmatch.c:229:
fnmatch_loop.c: In function 'ext_match':
fnmatch_loop.c:1060:23: error: implicit declaration of function 'offsetof' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 1060 |               alloca (offsetof (struct patternlist, str)                      \
      |                       ^~~~~~~~
fnmatch_loop.c:1066:13: note: in expansion of macro 'NEW_PATTERN'
 1066 |             NEW_PATTERN;
      |             ^~~~~~~~~~~
fnmatch_loop.c:1:1: note: 'offsetof' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
  +++ |+#include <stddef.h>
    1 | /* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2000, 2001,
fnmatch_loop.c:1060:33: error: expected expression before 'struct'
 1060 |               alloca (offsetof (struct patternlist, str)                      \
      |                                 ^~~~~~
fnmatch_loop.c:1066:13: note: in expansion of macro 'NEW_PATTERN'
 1066 |             NEW_PATTERN;
      |             ^~~~~~~~~~~
fnmatch_loop.c:1060:33: error: expected expression before 'struct'
 1060 |               alloca (offsetof (struct patternlist, str)                      \
      |                                 ^~~~~~
fnmatch_loop.c:1073:13: note: in expansion of macro 'NEW_PATTERN'
 1073 |             NEW_PATTERN;
      |             ^~~~~~~~~~~
In file included from fnmatch.c:326:
fnmatch_loop.c: In function 'ext_wmatch':
fnmatch_loop.c:1060:33: error: expected expression before 'struct'
 1060 |               alloca (offsetof (struct patternlist, str)                      \
      |                                 ^~~~~~
fnmatch_loop.c:1066:13: note: in expansion of macro 'NEW_PATTERN'
 1066 |             NEW_PATTERN;
      |             ^~~~~~~~~~~
fnmatch_loop.c:1060:33: error: expected expression before 'struct'
 1060 |               alloca (offsetof (struct patternlist, str)                      \
      |                                 ^~~~~~
fnmatch_loop.c:1073:13: note: in expansion of macro 'NEW_PATTERN'
 1073 |             NEW_PATTERN;
      |             ^~~~~~~~~~~
make[3]: *** [Makefile:590: fnmatch.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
86 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stddef.h>' ; cat fnmatch.c) > temp && mv temp fnmatch.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT fnmatch.o -MD -MP -MF ".deps/fnmatch.Tpo" \
  -c -o fnmatch.o `test -f 'fnmatch.c' || echo './'`fnmatch.c; \
then mv ".deps/fnmatch.Tpo" ".deps/fnmatch.Po"; \
else rm -f ".deps/fnmatch.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT memcmp.o -MD -MP -MF ".deps/memcmp.Tpo" \
  -c -o memcmp.o `test -f 'memcmp.c' || echo './'`memcmp.c; \
then mv ".deps/memcmp.Tpo" ".deps/memcmp.Po"; \
else rm -f ".deps/memcmp.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT readutmp.o -MD -MP -MF ".deps/readutmp.Tpo" \
  -c -o readutmp.o `test -f 'readutmp.c' || echo './'`readutmp.c; \
then mv ".deps/readutmp.Tpo" ".deps/readutmp.Po"; \
else rm -f ".deps/readutmp.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strnlen.o -MD -MP -MF ".deps/strnlen.Tpo" \
  -c -o strnlen.o `test -f 'strnlen.c' || echo './'`strnlen.c; \
then mv ".deps/strnlen.Tpo" ".deps/strnlen.Po"; \
else rm -f ".deps/strnlen.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT ftw.o -MD -MP -MF ".deps/ftw.Tpo" \
  -c -o ftw.o `test -f 'ftw.c' || echo './'`ftw.c; \
then mv ".deps/ftw.Tpo" ".deps/ftw.Po"; \
else rm -f ".deps/ftw.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT chown.o -MD -MP -MF ".deps/chown.Tpo" \
  -c -o chown.o `test -f 'chown.c' || echo './'`chown.c; \
then mv ".deps/chown.Tpo" ".deps/chown.Po"; \
else rm -f ".deps/chown.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT mktime.o -MD -MP -MF ".deps/mktime.Tpo" \
  -c -o mktime.o `test -f 'mktime.c' || echo './'`mktime.c; \
then mv ".deps/mktime.Tpo" ".deps/mktime.Po"; \
else rm -f ".deps/mktime.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT nanosleep.o -MD -MP -MF ".deps/nanosleep.Tpo" \
  -c -o nanosleep.o `test -f 'nanosleep.c' || echo './'`nanosleep.c; \
then mv ".deps/nanosleep.Tpo" ".deps/nanosleep.Po"; \
else rm -f ".deps/nanosleep.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT group-member.o -MD -MP -MF ".deps/group-member.Tpo" \
  -c -o group-member.o `test -f 'group-member.c' || echo './'`group-member.c; \
then mv ".deps/group-member.Tpo" ".deps/group-member.Po"; \
else rm -f ".deps/group-member.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT putenv.o -MD -MP -MF ".deps/putenv.Tpo" \
  -c -o putenv.o `test -f 'putenv.c' || echo './'`putenv.c; \
then mv ".deps/putenv.Tpo" ".deps/putenv.Po"; \
else rm -f ".deps/putenv.Tpo"; exit 1; \
fi
putenv.c:34:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
   34 | char *malloc ();
      |       ^~~~~~
putenv.c:29:1: note: 'malloc' is declared in header '<stdlib.h>'
   28 | #include <errno.h>
  +++ |+#include <stdlib.h>
   29 | 
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT error.o -MD -MP -MF ".deps/error.Tpo" \
  -c -o error.o `test -f 'error.c' || echo './'`error.c; \
then mv ".deps/error.Tpo" ".deps/error.Po"; \
else rm -f ".deps/error.Tpo"; exit 1; \
fi
error.c: In function 'print_errno_message':
error.c:115:24: error: implicit declaration of function 'strerror_r' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  115 | #  define __strerror_r strerror_r
      |                        ^~~~~~~~~~
error.c:150:7: note: in expansion of macro '__strerror_r'
  150 |   if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0)
      |       ^~~~~~~~~~~~
error.c: In function 'error_at_line':
error.c:329:18: error: implicit declaration of function 'strcmp' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  329 |               || strcmp (old_file_name, file_name) == 0))
      |                  ^~~~~~
error.c:60:1: note: include '<string.h>' or provide a declaration of 'strcmp'
   59 | # include "unlocked-io.h"
  +++ |+#include <string.h>
   60 | #endif
make[3]: *** [Makefile:590: error.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
91 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <string.h>' ; cat error.c) > temp && mv temp error.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT error.o -MD -MP -MF ".deps/error.Tpo" \
  -c -o error.o `test -f 'error.c' || echo './'`error.c; \
then mv ".deps/error.Tpo" ".deps/error.Po"; \
else rm -f ".deps/error.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getgroups.o -MD -MP -MF ".deps/getgroups.Tpo" \
  -c -o getgroups.o `test -f 'getgroups.c' || echo './'`getgroups.c; \
then mv ".deps/getgroups.Tpo" ".deps/getgroups.Po"; \
else rm -f ".deps/getgroups.Tpo"; exit 1; \
fi
getgroups.c: In function 'rpl_getgroups':
getgroups.c:40:12: error: implicit declaration of function 'getgroups'; did you mean 'rpl_getgroups'? [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
   40 |     return getgroups (n, group);
      |            ^~~~~~~~~
      |            rpl_getgroups
getgroups.c:53:3: error: implicit declaration of function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
   53 |   free (gbuf);
      |   ^~~~
getgroups.c:25:1: note: include '<stdlib.h>' or provide a declaration of 'free'
   24 | #include "xalloc.h"
  +++ |+#include <stdlib.h>
   25 | 
getgroups.c:53:3: warning: incompatible implicit declaration of built-in function 'free' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
   53 |   free (gbuf);
      |   ^~~~
getgroups.c:53:3: note: include '<stdlib.h>' or provide a declaration of 'free'
make[3]: *** [Makefile:590: getgroups.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
40 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stdlib.h>'; echo '#include <unistd.h>'; cat getgroups.c) > temp && mv temp getgroups.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getgroups.o -MD -MP -MF ".deps/getgroups.Tpo" \
  -c -o getgroups.o `test -f 'getgroups.c' || echo './'`getgroups.c; \
then mv ".deps/getgroups.Tpo" ".deps/getgroups.Po"; \
else rm -f ".deps/getgroups.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT rename.o -MD -MP -MF ".deps/rename.Tpo" \
  -c -o rename.o `test -f 'rename.c' || echo './'`rename.c; \
then mv ".deps/rename.Tpo" ".deps/rename.Po"; \
else rm -f ".deps/rename.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT mkstemp.o -MD -MP -MF ".deps/mkstemp.Tpo" \
  -c -o mkstemp.o `test -f 'mkstemp.c' || echo './'`mkstemp.c; \
then mv ".deps/mkstemp.Tpo" ".deps/mkstemp.Po"; \
else rm -f ".deps/mkstemp.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT tempname.o -MD -MP -MF ".deps/tempname.Tpo" \
  -c -o tempname.o `test -f 'tempname.c' || echo './'`tempname.c; \
then mv ".deps/tempname.Tpo" ".deps/tempname.Po"; \
else rm -f ".deps/tempname.Tpo"; exit 1; \
fi
tempname.c: In function '__path_search':
tempname.c:168:14: error: implicit declaration of function 'strlen' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  168 |       plen = strlen (pfx);
      |              ^~~~~~
tempname.c:70:1: note: include '<string.h>' or provide a declaration of 'strlen'
   69 | #include <sys/stat.h>
  +++ |+#include <string.h>
   70 | #if STAT_MACROS_BROKEN
tempname.c:168:14: warning: incompatible implicit declaration of built-in function 'strlen' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  168 |       plen = strlen (pfx);
      |              ^~~~~~
tempname.c:168:14: note: include '<string.h>' or provide a declaration of 'strlen'
tempname.c:187:16: error: implicit declaration of function 'strcmp' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  187 |       else if (strcmp (P_tmpdir, "/tmp") != 0 && direxists ("/tmp"))
      |                ^~~~~~
tempname.c:187:16: note: include '<string.h>' or provide a declaration of 'strcmp'
tempname.c:196:10: warning: incompatible implicit declaration of built-in function 'strlen' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  196 |   dlen = strlen (dir);
      |          ^~~~~~
tempname.c:196:10: note: include '<string.h>' or provide a declaration of 'strlen'
tempname.c: In function '__gen_tempname':
tempname.c:253:9: warning: incompatible implicit declaration of built-in function 'strlen' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
  253 |   len = strlen (tmpl);
      |         ^~~~~~
tempname.c:253:9: note: include '<string.h>' or provide a declaration of 'strlen'
make[3]: *** [Makefile:590: tempname.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
59 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <string.h>' ; cat tempname.c) > temp && mv temp tempname.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT tempname.o -MD -MP -MF ".deps/tempname.Tpo" \
  -c -o tempname.o `test -f 'tempname.c' || echo './'`tempname.c; \
then mv ".deps/tempname.Tpo" ".deps/tempname.Po"; \
else rm -f ".deps/tempname.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT canonicalize.o -MD -MP -MF ".deps/canonicalize.Tpo" \
  -c -o canonicalize.o `test -f 'canonicalize.c' || echo './'`canonicalize.c; \
then mv ".deps/canonicalize.Tpo" ".deps/canonicalize.Po"; \
else rm -f ".deps/canonicalize.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT regex.o -MD -MP -MF ".deps/regex.Tpo" \
  -c -o regex.o `test -f 'regex.c' || echo './'`regex.c; \
then mv ".deps/regex.Tpo" ".deps/regex.Po"; \
else rm -f ".deps/regex.Tpo"; exit 1; \
fi
regex.c:140:7: error: conflicting types for 'malloc'; have 'char *()'
  140 | char *malloc ();
      |       ^~~~~~
In file included from /usr/include/fortify/wchar.h:27,
                 from regex.c:58:
/usr/include/stdlib.h:40:7: note: previous declaration of 'malloc' with type 'void *(long unsigned int)'
   40 | void *malloc (size_t);
      |       ^~~~~~
regex.c:141:7: error: conflicting types for 'realloc'; have 'char *()'
  141 | char *realloc ();
      |       ^~~~~~~
/usr/include/stdlib.h:42:7: note: previous declaration of 'realloc' with type 'void *(void *, long unsigned int)'
   42 | void *realloc (void *, size_t);
      |       ^~~~~~~
regex.c: In function 'regerror':
regex.c:8319:22: error: implicit declaration of function '__mempcpy'; did you mean 'mempcpy'? [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 8319 |           *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
      |                      ^~~~~~~~~
      |                      mempcpy
regex.c:8319:13: warning: cast to pointer from integer of different size [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;]
 8319 |           *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
      |             ^
make[3]: *** [Makefile:590: regex.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
51 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && sed -i '/char \*malloc/d; /char \*realloc/d' regex.c && (echo '#include <string.h>' ; cat regex.c) > temp && mv temp regex.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT regex.o -MD -MP -MF ".deps/regex.Tpo" \
  -c -o regex.o `test -f 'regex.c' || echo './'`regex.c; \
then mv ".deps/regex.Tpo" ".deps/regex.Po"; \
else rm -f ".deps/regex.Tpo"; exit 1; \
fi
In file included from regex.c:33,
                 from regex.c:641:
regex.c: In function 'byte_re_match_2_internal':
../config.h:1377:16: error: implicit declaration of function 'rpl_memcmp'; did you mean 'wmemcmp'? [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 1377 | #define memcmp rpl_memcmp
      |                ^~~~~~~~~~
regex.c:6998:23: note: in expansion of macro 'memcmp'
 6998 |                     : memcmp (d, d2, mcnt*sizeof(UCHAR_T)))
      |                       ^~~~~~
regex.c: In function 'regerror':
regex.c:8318:22: error: implicit declaration of function '__mempcpy'; did you mean 'wmemcpy'? [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 8318 |           *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
      |                      ^~~~~~~~~
      |                      wmemcpy
regex.c:8318:13: warning: cast to pointer from integer of different size [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;]
 8318 |           *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
      |             ^
make[3]: *** [Makefile:590: regex.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
36 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && sed -i '/#define memcmp rpl_memcmp/d' config.h && cd lib && sed -i 's/__mempcpy/mempcpy/g' regex.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" \
  -c -o getdate.o `test -f 'getdate.c' || echo './'`getdate.c; \
then mv ".deps/getdate.Tpo" ".deps/getdate.Po"; \
else rm -f ".deps/getdate.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixtm.o -MD -MP -MF ".deps/posixtm.Tpo" \
  -c -o posixtm.o `test -f 'posixtm.c' || echo './'`posixtm.c; \
then mv ".deps/posixtm.Tpo" ".deps/posixtm.Po"; \
else rm -f ".deps/posixtm.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixver.o -MD -MP -MF ".deps/posixver.Tpo" \
  -c -o posixver.o `test -f 'posixver.c' || echo './'`posixver.c; \
then mv ".deps/posixver.Tpo" ".deps/posixver.Po"; \
else rm -f ".deps/posixver.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strftime.o -MD -MP -MF ".deps/strftime.Tpo" \
  -c -o strftime.o `test -f 'strftime.c' || echo './'`strftime.c; \
then mv ".deps/strftime.Tpo" ".deps/strftime.Po"; \
else rm -f ".deps/strftime.Tpo"; exit 1; \
fi
strftime.c: In function 'nstrftime':
strftime.c:258:32: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  258 | #  define memset_zero(P, Len) (memset ((P), '0', (Len)), (P) += (Len))
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:275:17: note: in expansion of macro 'memset_zero'
  275 |                 memset_zero (p, _delta);                                      \
      |                 ^~~~~~~~~~~
strftime.c:662:11: note: in expansion of macro 'add'
  662 |           add (1, *p = *f);
      |           ^~~
strftime.c:257:33: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  257 | #  define memset_space(P, Len) (memset ((P), ' ', (Len)), (P) += (Len))
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:277:17: note: in expansion of macro 'memset_space'
  277 |      
[command output truncated]
'./'`error.c; \
then mv ".deps/error.Tpo" ".deps/error.Po"; \
else rm -f ".deps/error.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getgroups.o -MD -MP -MF ".deps/getgroups.Tpo" \
  -c -o getgroups.o `test -f 'getgroups.c' || echo './'`getgroups.c; \
then mv ".deps/getgroups.Tpo" ".deps/getgroups.Po"; \
else rm -f ".deps/getgroups.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT rename.o -MD -MP -MF ".deps/rename.Tpo" \
  -c -o rename.o `test -f 'rename.c' || echo './'`rename.c; \
then mv ".deps/rename.Tpo" ".deps/rename.Po"; \
else rm -f ".deps/rename.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT mkstemp.o -MD -MP -MF ".deps/mkstemp.Tpo" \
  -c -o mkstemp.o `test -f 'mkstemp.c' || echo './'`mkstemp.c; \
then mv ".deps/mkstemp.Tpo" ".deps/mkstemp.Po"; \
else rm -f ".deps/mkstemp.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT tempname.o -MD -MP -MF ".deps/tempname.Tpo" \
  -c -o tempname.o `test -f 'tempname.c' || echo './'`tempname.c; \
then mv ".deps/tempname.Tpo" ".deps/tempname.Po"; \
else rm -f ".deps/tempname.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT canonicalize.o -MD -MP -MF ".deps/canonicalize.Tpo" \
  -c -o canonicalize.o `test -f 'canonicalize.c' || echo './'`canonicalize.c; \
then mv ".deps/canonicalize.Tpo" ".deps/canonicalize.Po"; \
else rm -f ".deps/canonicalize.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT regex.o -MD -MP -MF ".deps/regex.Tpo" \
  -c -o regex.o `test -f 'regex.c' || echo './'`regex.c; \
then mv ".deps/regex.Tpo" ".deps/regex.Po"; \
else rm -f ".deps/regex.Tpo"; exit 1; \
fi
regex.c: In function 'regerror':
regex.c:8318:22: error: implicit declaration of function 'mempcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 8318 |           *((char *) mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
      |                      ^~~~~~~
regex.c:8318:22: warning: incompatible implicit declaration of built-in function 'mempcpy' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch]8;;]
make[3]: *** [Makefile:590: regex.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
94 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#define _GNU_SOURCE' ; cat regex.c) > temp && mv temp regex.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT regex.o -MD -MP -MF ".deps/regex.Tpo" \
  -c -o regex.o `test -f 'regex.c' || echo './'`regex.c; \
then mv ".deps/regex.Tpo" ".deps/regex.Po"; \
else rm -f ".deps/regex.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT sig2str.o -MD -MP -MF ".deps/sig2str.Tpo" \
  -c -o sig2str.o `test -f 'sig2str.c' || echo './'`sig2str.c; \
then mv ".deps/sig2str.Tpo" ".deps/sig2str.Po"; \
else rm -f ".deps/sig2str.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT rpmatch.o -MD -MP -MF ".deps/rpmatch.Tpo" \
  -c -o rpmatch.o `test -f 'rpmatch.c' || echo './'`rpmatch.c; \
then mv ".deps/rpmatch.Tpo" ".deps/rpmatch.Po"; \
else rm -f ".deps/rpmatch.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT gettimeofday.o -MD -MP -MF ".deps/gettimeofday.Tpo" \
  -c -o gettimeofday.o `test -f 'gettimeofday.c' || echo './'`gettimeofday.c; \
then mv ".deps/gettimeofday.Tpo" ".deps/gettimeofday.Po"; \
else rm -f ".deps/gettimeofday.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getline.o -MD -MP -MF ".deps/getline.Tpo" \
  -c -o getline.o `test -f 'getline.c' || echo './'`getline.c; \
then mv ".deps/getline.Tpo" ".deps/getline.Po"; \
else rm -f ".deps/getline.Tpo"; exit 1; \
fi
getline.c:47:1: error: conflicting types for 'getline'; have 'int(char **, size_t *, FILE *)' {aka 'int(char **, long unsigned int *, FILE *)'}
   47 | getline (char **lineptr, size_t *n, FILE *stream)
      | ^~~~~~~
In file included from /usr/include/fortify/stdio.h:23,
                 from getline.c:31:
/usr/include/stdio.h:155:9: note: previous declaration of 'getline' with type 'ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  155 | ssize_t getline(char **__restrict, size_t *__restrict, FILE *__restrict);
      |         ^~~~~~~
getline.c:53:1: error: conflicting types for 'getdelim'; have 'int(char **, size_t *, int,  FILE *)' {aka 'int(char **, long unsigned int *, int,  FILE *)'}
   53 | getdelim (char **lineptr, size_t *n, int delimiter, FILE *stream)
      | ^~~~~~~~
/usr/include/stdio.h:154:9: note: previous declaration of 'getdelim' with type 'ssize_t(char ** restrict,  size_t * restrict,  int,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  int,  FILE * restrict)'}
  154 | ssize_t getdelim(char **__restrict, size_t *__restrict, int, FILE *__restrict);
      |         ^~~~~~~~
make[3]: *** [Makefile:590: getline.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
53 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && sed -i 's/int getline/ssize_t getline/g; s/int getdelim/ssize_t getdelim/g' getline.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getline.o -MD -MP -MF ".deps/getline.Tpo" \
  -c -o getline.o `test -f 'getline.c' || echo './'`getline.c; \
then mv ".deps/getline.Tpo" ".deps/getline.Po"; \
else rm -f ".deps/getline.Tpo"; exit 1; \
fi
getline.c:47:1: error: conflicting types for 'getline'; have 'int(char **, size_t *, FILE *)' {aka 'int(char **, long unsigned int *, FILE *)'}
   47 | getline (char **lineptr, size_t *n, FILE *stream)
      | ^~~~~~~
In file included from /usr/include/fortify/stdio.h:23,
                 from getline.c:31:
/usr/include/stdio.h:155:9: note: previous declaration of 'getline' with type 'ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  155 | ssize_t getline(char **__restrict, size_t *__restrict, FILE *__restrict);
      |         ^~~~~~~
getline.c:53:1: error: conflicting types for 'getdelim'; have 'int(char **, size_t *, int,  FILE *)' {aka 'int(char **, long unsigned int *, int,  FILE *)'}
   53 | getdelim (char **lineptr, size_t *n, int delimiter, FILE *stream)
      | ^~~~~~~~
/usr/include/stdio.h:154:9: note: previous declaration of 'getdelim' with type 'ssize_t(char ** restrict,  size_t * restrict,  int,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  int,  FILE * restrict)'}
  154 | ssize_t getdelim(char **__restrict, size_t *__restrict, int, FILE *__restrict);
      |         ^~~~~~~~
make[3]: *** [Makefile:590: getline.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
33 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && grep HAVE_GETLINE config.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0/lib && mv getline.c getline.c.bak
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: *** No rule to make target 'getline.c', needed by 'getline.o'.  Stop.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
14 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && head -n 60 getline.c
head: getline.c: No such file or directory
ASSISTANT
compile-bench> cd coreutils-5.0/lib && mv getline.c.bak getline.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0/lib && head -n 60 getline.c
/* getline.c -- Replacement for GNU C library function getline

Copyright (C) 1993, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */

/* Written by Jan Brittenson, [email protected].  */

#if HAVE_CONFIG_H
# include <config.h>
#endif

/* The `getdelim' function is only declared if the following symbol
   is defined.  */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif

#include <stdio.h>
#include <sys/types.h>

#if defined __GNU_LIBRARY__ && HAVE_GETDELIM

int
getline (char **lineptr, size_t *n, FILE *stream)
{
  return getdelim (lineptr, n, '\n', stream);
}

#else /* ! have getdelim */

# include "getstr.h"

int
getline (char **lineptr, size_t *n, FILE *stream)
{
  return getstr (lineptr, n, stream, '\n', 0, 0);
}

int
getdelim (char **lineptr, size_t *n, int delimiter, FILE *stream)
{
  return getstr (lineptr, n, stream, delimiter, 0, 0);
}
#endif
58 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && echo '#define HAVE_GETDELIM 1' >> config.h && cd lib && sed -i 's/defined __GNU_LIBRARY__ && HAVE_GETDELIM/HAVE_GETDELIM/g' getline.c && sed -i 's/^int$/ssize_t/' getline.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" \
  -c -o getdate.o `test -f 'getdate.c' || echo './'`getdate.c; \
then mv ".deps/getdate.Tpo" ".deps/getdate.Po"; \
else rm -f ".deps/getdate.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixtm.o -MD -MP -MF ".deps/posixtm.Tpo" \
  -c -o posixtm.o `test -f 'posixtm.c' || echo './'`posixtm.c; \
then mv ".deps/posixtm.Tpo" ".deps/posixtm.Po"; \
else rm -f ".deps/posixtm.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixver.o -MD -MP -MF ".deps/posixver.Tpo" \
  -c -o posixver.o `test -f 'posixver.c' || echo './'`posixver.c; \
then mv ".deps/posixver.Tpo" ".deps/posixver.Po"; \
else rm -f ".deps/posixver.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strftime.o -MD -MP -MF ".deps/strftime.Tpo" \
  -c -o strftime.o `test -f 'strftime.c' || echo './'`strftime.c; \
then mv ".deps/strftime.Tpo" ".deps/strftime.Po"; \
else rm -f ".deps/strftime.Tpo"; exit 1; \
fi
strftime.c: In function 'nstrftime':
strftime.c:258:32: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  258 | #  define memset_zero(P, Len) (memset ((P), '0', (Len)), (P) += (Len))
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:275:17: note: in expansion of macro 'memset_zero'
  275 |                 memset_zero (p, _delta);                                      \
      |                 ^~~~~~~~~~~
strftime.c:662:11: note: in expansion of macro 'add'
  662 |           add (1, *p = *f);
      |           ^~~
strftime.c:257:33: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  257 | #  define memset_space(P, Len) (memset ((P), ' ', (Len)), (P) += (Len))
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:277:17: note: in expansion of macro 'memset_space'
  277 |      
[command output truncated]
f ".deps/canonicalize.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT regex.o -MD -MP -MF ".deps/regex.Tpo" \
  -c -o regex.o `test -f 'regex.c' || echo './'`regex.c; \
then mv ".deps/regex.Tpo" ".deps/regex.Po"; \
else rm -f ".deps/regex.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT sig2str.o -MD -MP -MF ".deps/sig2str.Tpo" \
  -c -o sig2str.o `test -f 'sig2str.c' || echo './'`sig2str.c; \
then mv ".deps/sig2str.Tpo" ".deps/sig2str.Po"; \
else rm -f ".deps/sig2str.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT rpmatch.o -MD -MP -MF ".deps/rpmatch.Tpo" \
  -c -o rpmatch.o `test -f 'rpmatch.c' || echo './'`rpmatch.c; \
then mv ".deps/rpmatch.Tpo" ".deps/rpmatch.Po"; \
else rm -f ".deps/rpmatch.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT gettimeofday.o -MD -MP -MF ".deps/gettimeofday.Tpo" \
  -c -o gettimeofday.o `test -f 'gettimeofday.c' || echo './'`gettimeofday.c; \
then mv ".deps/gettimeofday.Tpo" ".deps/gettimeofday.Po"; \
else rm -f ".deps/gettimeofday.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getline.o -MD -MP -MF ".deps/getline.Tpo" \
  -c -o getline.o `test -f 'getline.c' || echo './'`getline.c; \
then mv ".deps/getline.Tpo" ".deps/getline.Po"; \
else rm -f ".deps/getline.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT obstack.o -MD -MP -MF ".deps/obstack.Tpo" \
  -c -o obstack.o `test -f 'obstack.c' || echo './'`obstack.c; \
then mv ".deps/obstack.Tpo" ".deps/obstack.Po"; \
else rm -f ".deps/obstack.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strtod.o -MD -MP -MF ".deps/strtod.Tpo" \
  -c -o strtod.o `test -f 'strtod.c' || echo './'`strtod.c; \
then mv ".deps/strtod.Tpo" ".deps/strtod.Po"; \
else rm -f ".deps/strtod.Tpo"; exit 1; \
fi
strtod.c: In function 'strtod':
strtod.c:139:13: error: implicit declaration of function 'strtol'; did you mean 'strtod'? [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
  139 |       exp = strtol (s, &end, 10);
      |             ^~~~~~
      |             strtod
make[3]: *** [Makefile:590: strtod.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
97 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && (echo '#include <stdlib.h>' ; cat strtod.c) > temp && mv temp strtod.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strtod.o -MD -MP -MF ".deps/strtod.Tpo" \
  -c -o strtod.o `test -f 'strtod.c' || echo './'`strtod.c; \
then mv ".deps/strtod.Tpo" ".deps/strtod.Po"; \
else rm -f ".deps/strtod.Tpo"; exit 1; \
fi
strtod.c:52:10: warning: "NULL" redefined
   52 | # define NULL 0
      |          ^~~~
In file included from /usr/include/fortify/stdlib.h:23,
                 from strtod.c:1:
/usr/include/stdlib.h:15:9: note: this is the location of the previous definition
   15 | #define NULL ((void*)0)
      |         ^~~~
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT fsusage.o -MD -MP -MF ".deps/fsusage.Tpo" \
  -c -o fsusage.o `test -f 'fsusage.c' || echo './'`fsusage.c; \
then mv ".deps/fsusage.Tpo" ".deps/fsusage.Po"; \
else rm -f ".deps/fsusage.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT mountlist.o -MD -MP -MF ".deps/mountlist.Tpo" \
  -c -o mountlist.o `test -f 'mountlist.c' || echo './'`mountlist.c; \
then mv ".deps/mountlist.Tpo" ".deps/mountlist.Po"; \
else rm -f ".deps/mountlist.Tpo"; exit 1; \
fi
rm -f libfetish.a
ar cru libfetish.a acl.o getdate.o posixtm.o posixver.o strftime.o getopt.o getopt1.o hash.o hash-pjw.o addext.o argmatch.o backupfile.o basename.o canon-host.o closeout.o cycle-check.o diacrit.o dirname.o dup-safer.o exclude.o exitfail.o filemode.o file-type.o fopen-safer.o full-read.o full-write.o getstr.o gettime.o getugroups.o hard-locale.o human.o idcache.o isdir.o imaxtostr.o linebuffer.o localcharset.o long-options.o makepath.o mbswidth.o md5.o memcasecmp.o memcoll.o modechange.o offtostr.o path-concat.o physmem.o quote.o quotearg.o readtokens.o safe-read.o safe-write.o same.o save-cwd.o savedir.o settime.o sha.o stripslash.o umaxtostr.o unicodeio.o userspec.o version-etc.o xgetcwd.o xgethostname.o xmalloc.o xmemcoll.o xnanosleep.o xreadlink.o xstrdup.o xstrtod.o xstrtol.o xstrtoul.o xstrtoimax.o xstrtoumax.o yesno.o mkdir.o fnmatch.o memcmp.o readutmp.o strnlen.o ftw.o chown.o mktime.o nanosleep.o group-member.o putenv.o error.o getgroups.o rename.o mkstemp.o tempname.o canonicalize.o regex.o sig2str.o memcmp.o rpmatch.o gettimeofday.o getline.o obstack.o strtod.o fsusage.o mountlist.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libfetish.a
/bin/sh ./config.charset 'x86_64-unknown-linux-gnu' > t-charset.alias
mv t-charset.alias charset.alias
sed -e '/^#/d' -e 's/@''PACKAGE''@/coreutils/g' ref-add.sin > t-ref-add.sed
mv t-ref-add.sed ref-add.sed
sed -e '/^#/d' -e 's/@''PACKAGE''@/coreutils/g' ref-del.sin > 
[command output truncated]
DIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT cp-hash.o -MD -MP -MF ".deps/cp-hash.Tpo" \
  -c -o cp-hash.o `test -f 'cp-hash.c' || echo './'`cp-hash.c; \
then mv ".deps/cp-hash.Tpo" ".deps/cp-hash.Po"; \
else rm -f ".deps/cp-hash.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o cp  cp.o copy.o cp-hash.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT dd.o -MD -MP -MF ".deps/dd.Tpo" \
  -c -o dd.o `test -f 'dd.c' || echo './'`dd.c; \
then mv ".deps/dd.Tpo" ".deps/dd.Po"; \
else rm -f ".deps/dd.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o dd  dd.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT dircolors.o -MD -MP -MF ".deps/dircolors.Tpo" \
  -c -o dircolors.o `test -f 'dircolors.c' || echo './'`dircolors.c; \
then mv ".deps/dircolors.Tpo" ".deps/dircolors.Po"; \
else rm -f ".deps/dircolors.Tpo"; exit 1; \
fi
In file included from dircolors.c:31:
../lib/getline.h:32:1: error: conflicting types for 'getline'; have 'int(char **, size_t *, FILE *)' {aka 'int(char **, long unsigned int *, FILE *)'}
   32 | getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
      | ^~~~~~~
In file included from /usr/include/fortify/stdio.h:23,
                 from dircolors.c:25:
/usr/include/stdio.h:155:9: note: previous declaration of 'getline' with type 'ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  155 | ssize_t getline(char **__restrict, size_t *__restrict, FILE *__restrict);
      |         ^~~~~~~
../lib/getline.h:35:1: error: conflicting types for 'getdelim'; have 'int(char **, size_t *, int,  FILE *)' {aka 'int(char **, long unsigned int *, int,  FILE *)'}
   35 | getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
      | ^~~~~~~~
/usr/include/stdio.h:154:9: note: previous declaration of 'getdelim' with type 'ssize_t(char ** restrict,  size_t * restrict,  int,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  int,  FILE * restrict)'}
  154 | ssize_t getdelim(char **__restrict, size_t *__restrict, int, FILE *__restrict);
      |         ^~~~~~~~
make[3]: *** [Makefile:1263: dircolors.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
79 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && sed -i 's/int getline/ssize_t getline/g; s/int getdelim/ssize_t getdelim/g' getline.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT dircolors.o -MD -MP -MF ".deps/dircolors.Tpo" \
  -c -o dircolors.o `test -f 'dircolors.c' || echo './'`dircolors.c; \
then mv ".deps/dircolors.Tpo" ".deps/dircolors.Po"; \
else rm -f ".deps/dircolors.Tpo"; exit 1; \
fi
In file included from dircolors.c:31:
../lib/getline.h:32:1: error: conflicting types for 'getline'; have 'int(char **, size_t *, FILE *)' {aka 'int(char **, long unsigned int *, FILE *)'}
   32 | getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
      | ^~~~~~~
In file included from /usr/include/fortify/stdio.h:23,
                 from dircolors.c:25:
/usr/include/stdio.h:155:9: note: previous declaration of 'getline' with type 'ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  155 | ssize_t getline(char **__restrict, size_t *__restrict, FILE *__restrict);
      |         ^~~~~~~
../lib/getline.h:35:1: error: conflicting types for 'getdelim'; have 'int(char **, size_t *, int,  FILE *)' {aka 'int(char **, long unsigned int *, int,  FILE *)'}
   35 | getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
      | ^~~~~~~~
/usr/include/stdio.h:154:9: note: previous declaration of 'getdelim' with type 'ssize_t(char ** restrict,  size_t * restrict,  int,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  int,  FILE * restrict)'}
  154 | ssize_t getdelim(char **__restrict, size_t *__restrict, int, FILE *__restrict);
      |         ^~~~~~~~
make[3]: *** [Makefile:1263: dircolors.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
41 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && sed -i 's/^getline/ssize_t getline/g; s/^getdelim/ssize_t getdelim/g' getline.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT dircolors.o -MD -MP -MF ".deps/dircolors.Tpo" \
  -c -o dircolors.o `test -f 'dircolors.c' || echo './'`dircolors.c; \
then mv ".deps/dircolors.Tpo" ".deps/dircolors.Po"; \
else rm -f ".deps/dircolors.Tpo"; exit 1; \
fi
In file included from dircolors.c:31:
../lib/getline.h:32:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getline'
   32 | ssize_t getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
      |         ^~~~~~~
../lib/getline.h:35:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getdelim'
   35 | ssize_t getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
      |         ^~~~~~~~
make[3]: *** [Makefile:1263: dircolors.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
33 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && sed -i 's/ getline PARAMS ((/ getline (/g; s/ getdelim PARAMS ((/ getdelim (/g' getline.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT dircolors.o -MD -MP -MF ".deps/dircolors.Tpo" \
  -c -o dircolors.o `test -f 'dircolors.c' || echo './'`dircolors.c; \
then mv ".deps/dircolors.Tpo" ".deps/dircolors.Po"; \
else rm -f ".deps/dircolors.Tpo"; exit 1; \
fi
In file included from dircolors.c:31:
../lib/getline.h:32:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getline'
   32 | ssize_t getline (char **_lineptr, size_t *_n, FILE *_stream));
      |         ^~~~~~~
../lib/getline.h:35:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getdelim'
   35 | ssize_t getdelim (char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
      |         ^~~~~~~~
make[3]: *** [Makefile:1263: dircolors.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
33 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && sed -i 's/));/);/g' getline.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT dircolors.o -MD -MP -MF ".deps/dircolors.Tpo" \
  -c -o dircolors.o `test -f 'dircolors.c' || echo './'`dircolors.c; \
then mv ".deps/dircolors.Tpo" ".deps/dircolors.Po"; \
else rm -f ".deps/dircolors.Tpo"; exit 1; \
fi
In file included from dircolors.c:31:
../lib/getline.h:32:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getline'
   32 | ssize_t getline (char **_lineptr, size_t *_n, FILE *_stream);
      |         ^~~~~~~
../lib/getline.h:35:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getdelim'
   35 | ssize_t getdelim (char **_lineptr, size_t *_n, int _delimiter, FILE *_stream);
      |         ^~~~~~~~
make[3]: *** [Makefile:1263: dircolors.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
33 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && head -n 40 getline.h
/*  Copyright (C) 1995, 1997, 1999 Free Software Foundation, Inc.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */

#ifndef GETLINE_H_
# define GETLINE_H_ 1

# include <stdio.h>

# ifndef PARAMS
#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
#   define PARAMS(Args) Args
#  else
#   define PARAMS(Args) ()
#  endif
# endif

# if __GLIBC__ < 2
int
ssize_t getline (char **_lineptr, size_t *_n, FILE *_stream);

int
ssize_t getdelim (char **_lineptr, size_t *_n, int _delimiter, FILE *_stream);
# endif

#endif /* not GETLINE_H_ */
39 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && head -n 40 getline.h
/*  Copyright (C) 1995, 1997, 1999 Free Software Foundation, Inc.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */

#ifndef GETLINE_H_
# define GETLINE_H_ 1

# include <stdio.h>

# ifndef PARAMS
#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
#   define PARAMS(Args) Args
#  else
#   define PARAMS(Args) ()
#  endif
# endif

# if __GLIBC__ < 2
int
ssize_t getline (char **_lineptr, size_t *_n, FILE *_stream);

int
ssize_t getdelim (char **_lineptr, size_t *_n, int _delimiter, FILE *_stream);
# endif

#endif /* not GETLINE_H_ */
39 lines
ASSISTANT
compile-bench> cd coreutils-5.0/lib && sed -i '/^int$/d' getline.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT dircolors.o -MD -MP -MF ".deps/dircolors.Tpo" \
  -c -o dircolors.o `test -f 'dircolors.c' || echo './'`dircolors.c; \
then mv ".deps/dircolors.Tpo" ".deps/dircolors.Po"; \
else rm -f ".deps/dircolors.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o dircolors  dircolors.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT du.o -MD -MP -MF ".deps/du.Tpo" \
  -c -o du.o `test -f 'du.c' || echo './'`du.c; \
then mv ".deps/du.Tpo" ".deps/du.Po"; \
else rm -f ".deps/du.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o du  du.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT install.o -MD -MP -MF ".deps/install.Tpo" \
  -c -o install.o `test -f 'install.c' || echo './'`install.c; \
then mv ".deps/install.Tpo" ".deps/install.Po"; \
else rm -f ".deps/install.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o ginstall  install.o copy.o cp-hash.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT link.o -MD -MP -MF ".deps/link.Tpo" \
  -c -o link.o `test -f 'link.c' || echo './'`link.c; \
then mv ".deps/link.Tpo" ".deps/link.Po"; \
else rm -f ".deps/link.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o link  link.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT ln.o -MD -MP -MF ".deps/ln.Tpo" \
  -c -o ln.o `test -f 'ln.c' || echo './'`ln.c; \
then mv ".deps/ln.Tpo" ".deps/ln.Po"; \
else rm -f ".deps/ln.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o ln  ln.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D
[command output truncated]
home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT readlink.o -MD -MP -MF ".deps/readlink.Tpo" \
  -c -o readlink.o `test -f 'readlink.c' || echo './'`readlink.c; \
then mv ".deps/readlink.Tpo" ".deps/readlink.Po"; \
else rm -f ".deps/readlink.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o readlink  readlink.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT rm.o -MD -MP -MF ".deps/rm.Tpo" \
  -c -o rm.o `test -f 'rm.c' || echo './'`rm.c; \
then mv ".deps/rm.Tpo" ".deps/rm.Po"; \
else rm -f ".deps/rm.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o rm  rm.o remove.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT rmdir.o -MD -MP -MF ".deps/rmdir.Tpo" \
  -c -o rmdir.o `test -f 'rmdir.c' || echo './'`rmdir.c; \
then mv ".deps/rmdir.Tpo" ".deps/rmdir.Po"; \
else rm -f ".deps/rmdir.Tpo"; exit 1; \
fi
In file included from rmdir.c:25:
rmdir.c: In function 'errno_rmdir_non_empty':
../config.h:1208:31: error: 'configure' undeclared (first use in this function)
 1208 | #define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4
      |                               ^~~~~~~~~
rmdir.c:89:27: note: in expansion of macro 'RMDIR_ERRNO_NOT_EMPTY'
   89 |   return (error_number == RMDIR_ERRNO_NOT_EMPTY);
      |                           ^~~~~~~~~~~~~~~~~~~~~
../config.h:1208:31: note: each undeclared identifier is reported only once for each function it appears in
 1208 | #define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4
      |                               ^~~~~~~~~
rmdir.c:89:27: note: in expansion of macro 'RMDIR_ERRNO_NOT_EMPTY'
   89 |   return (error_number == RMDIR_ERRNO_NOT_EMPTY);
      |                           ^~~~~~~~~~~~~~~~~~~~~
../config.h:1208:41: error: expected ')' before 'error'
 1208 | #define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4
      |                                         ^~~~~
rmdir.c:89:27: note: in expansion of macro 'RMDIR_ERRNO_NOT_EMPTY'
   89 |   return (error_number == RMDIR_ERRNO_NOT_EMPTY);
      |                           ^~~~~~~~~~~~~~~~~~~~~
rmdir.c:89:10: note: to match this '('
   89 |   return (error_number == RMDIR_ERRNO_NOT_EMPTY);
      |          ^
make[3]: *** [Makefile:1263: rmdir.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
93 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && sed -i 's/#define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4/#define RMDIR_ERRNO_NOT_EMPTY 39/' config.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" \
  -c -o getdate.o `test -f 'getdate.c' || echo './'`getdate.c; \
then mv ".deps/getdate.Tpo" ".deps/getdate.Po"; \
else rm -f ".deps/getdate.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixtm.o -MD -MP -MF ".deps/posixtm.Tpo" \
  -c -o posixtm.o `test -f 'posixtm.c' || echo './'`posixtm.c; \
then mv ".deps/posixtm.Tpo" ".deps/posixtm.Po"; \
else rm -f ".deps/posixtm.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixver.o -MD -MP -MF ".deps/posixver.Tpo" \
  -c -o posixver.o `test -f 'posixver.c' || echo './'`posixver.c; \
then mv ".deps/posixver.Tpo" ".deps/posixver.Po"; \
else rm -f ".deps/posixver.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strftime.o -MD -MP -MF ".deps/strftime.Tpo" \
  -c -o strftime.o `test -f 'strftime.c' || echo './'`strftime.c; \
then mv ".deps/strftime.Tpo" ".deps/strftime.Po"; \
else rm -f ".deps/strftime.Tpo"; exit 1; \
fi
strftime.c: In function 'nstrftime':
strftime.c:258:32: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  258 | #  define memset_zero(P, Len) (memset ((P), '0', (Len)), (P) += (Len))
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:275:17: note: in expansion of macro 'memset_zero'
  275 |                 memset_zero (p, _delta);                                      \
      |                 ^~~~~~~~~~~
strftime.c:662:11: note: in expansion of macro 'add'
  662 |           add (1, *p = *f);
      |           ^~~
strftime.c:257:33: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  257 | #  define memset_space(P, Len) (memset ((P), ' ', (Len)), (P) += (Len))
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:277:17: note: in expansion of macro 'memset_space'
  277 |      
[command output truncated]
-I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT join.o -MD -MP -MF ".deps/join.Tpo" \
  -c -o join.o `test -f 'join.c' || echo './'`join.c; \
then mv ".deps/join.Tpo" ".deps/join.Po"; \
else rm -f ".deps/join.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o join  join.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT md5sum.o -MD -MP -MF ".deps/md5sum.Tpo" \
  -c -o md5sum.o `test -f 'md5sum.c' || echo './'`md5sum.c; \
then mv ".deps/md5sum.Tpo" ".deps/md5sum.Po"; \
else rm -f ".deps/md5sum.Tpo"; exit 1; \
fi
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT md5.o -MD -MP -MF ".deps/md5.Tpo" \
  -c -o md5.o `test -f 'md5.c' || echo './'`md5.c; \
then mv ".deps/md5.Tpo" ".deps/md5.Po"; \
else rm -f ".deps/md5.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o md5sum  md5sum.o md5.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT nl.o -MD -MP -MF ".deps/nl.Tpo" \
  -c -o nl.o `test -f 'nl.c' || echo './'`nl.c; \
then mv ".deps/nl.Tpo" ".deps/nl.Po"; \
else rm -f ".deps/nl.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o nl  nl.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT od.o -MD -MP -MF ".deps/od.Tpo" \
  -c -o od.o `test -f 'od.c' || echo './'`od.c; \
then mv ".deps/od.Tpo" ".deps/od.Po"; \
else rm -f ".deps/od.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o od  od.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT paste.o -MD -MP -MF ".deps/paste.Tpo" \
  -c -o paste.o `test -f 'paste.c' || echo './'`paste.c; \
then mv ".deps/paste.Tpo" ".deps/paste.Po"; \
else rm -f ".deps/paste.Tpo"; exit 1; \
fi
paste.c:55:13: error: storage size of 'dummy_closed' isn't known
   55 | static FILE dummy_closed;
      |             ^~~~~~~~~~~~
paste.c:59:13: error: storage size of 'dummy_endlist' isn't known
   59 | static FILE dummy_endlist;
      |             ^~~~~~~~~~~~~
make[3]: *** [Makefile:1263: paste.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
95 lines
ASSISTANT
compile-bench> cd coreutils-5.0/src && (echo '#include <stdio.h>' ; cat paste.c) > temp && mv temp paste.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT paste.o -MD -MP -MF ".deps/paste.Tpo" \
  -c -o paste.o `test -f 'paste.c' || echo './'`paste.c; \
then mv ".deps/paste.Tpo" ".deps/paste.Po"; \
else rm -f ".deps/paste.Tpo"; exit 1; \
fi
In file included from sys2.h:452,
                 from system.h:296,
                 from paste.c:44:
paste.c: In function 'usage':
../lib/unlocked-io.h:62:23: error: implicit declaration of function 'fputs_unlocked' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
   62 | #   define fputs(x,y) fputs_unlocked (x,y)
      |                       ^~~~~~~~~~~~~~
paste.c:408:7: note: in expansion of macro 'fputs'
  408 |       fputs (_("\
      |       ^~~~~
paste.c: At top level:
paste.c:56:13: error: storage size of 'dummy_closed' isn't known
   56 | static FILE dummy_closed;
      |             ^~~~~~~~~~~~
paste.c:60:13: error: storage size of 'dummy_endlist' isn't known
   60 | static FILE dummy_endlist;
      |             ^~~~~~~~~~~~~
make[3]: *** [Makefile:1263: paste.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
43 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && grep HAVE_FPUTS_UNLOCKED config.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0/lib && head -n 100 unlocked-io.h
/* Prefer faster, non-thread-safe stdio functions if available.

   Copyright (C) 2001, 2002 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU Library General Public License as published
   by the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
   USA.  */

/* Written by Jim Meyering.  */

#ifndef UNLOCKED_IO_H
# define UNLOCKED_IO_H 1

# ifndef USE_UNLOCKED_IO
#  define USE_UNLOCKED_IO 1
# endif

# if USE_UNLOCKED_IO

/* These are wrappers for functions/macros from GNU libc.
   The standard I/O functions are thread-safe.  These *_unlocked ones are
   more efficient but not thread-safe.  That they're not thread-safe is
   fine since all of the applications in this package are single threaded.  */

#  if HAVE_DECL_CLEARERR_UNLOCKED
#   undef clearerr
#   define clearerr(x) clearerr_unlocked (x)
#  endif
#  if HAVE_DECL_FEOF_UNLOCKED
#   undef feof
#   define feof(x) feof_unlocked (x)
#  endif
#  if HAVE_DECL_FERROR_UNLOCKED
#   undef ferror
#   define ferror(x) ferror_unlocked (x)
#  endif
#  if HAVE_DECL_FFLUSH_UNLOCKED
#   undef fflush
#   define fflush(x) fflush_unlocked (x)
#  endif
#  if HAVE_DECL_FGETS_UNLOCKED
#   undef fgets
#   define fgets(x,y,z) fgets_unlocked (x,y,z)
#  endif
#  if HAVE_DECL_FPUTC_UNLOCKED
#   undef fputc
#   define fputc(x,y) fputc_unlocked (x,y)
#  endif
#  if HAVE_DECL_FPUTS_UNLOCKED
#   undef fputs
#   define fputs(x,y) fputs_unlocked (x,y)
#  endif
#  if HAVE_DECL_FREAD_UNLOCKED
#   undef fread
#   define fread(w,x,y,z) fread_unlocked (w,x,y,z)
#  endif
#  if HAVE_DECL_FWRITE_UNLOCKED
#   undef fwrite
#   define fwrite(w,x,y,z) fwrite_unlocked (w,x,y,z)
#  endif
#  if HAVE_DECL_GETC_UNLOCKED
#   undef getc
#   define getc(x) getc_unlocked (x)
#  endif
#  if HAVE_DECL_GETCHAR_UNLOCKED
#   undef getchar
#   define getchar() getchar_unlocked ()
#  endif
#  if HAVE_DECL_PUTC_UNLOCKED
#   undef putc
#   define putc(x,y) putc_unlocked (x,y)
#  endif
#  if HAVE_DECL_PUTCHAR_UNLOCKED
#   undef putchar
#   define putchar(x) putchar_unlocked (x)
#  endif

# endif /* USE_UNLOCKED_IO */
#endif /* UNLOCKED_IO_H */
91 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && grep HAVE_DECL_FPUTS_UNLOCKED config.h
#define HAVE_DECL_FPUTS_UNLOCKED 1
ASSISTANT
compile-bench> cd coreutils-5.0 && grep 'HAVE_DECL_.*_UNLOCKED' config.h
#define HAVE_DECL_CLEARERR_UNLOCKED 1
#define HAVE_DECL_FEOF_UNLOCKED 1
#define HAVE_DECL_FERROR_UNLOCKED 1
#define HAVE_DECL_FFLUSH_UNLOCKED 1
#define HAVE_DECL_FGETS_UNLOCKED 1
#define HAVE_DECL_FPUTC_UNLOCKED 1
#define HAVE_DECL_FPUTS_UNLOCKED 1
#define HAVE_DECL_FREAD_UNLOCKED 1
#define HAVE_DECL_FWRITE_UNLOCKED 1
#define HAVE_DECL_GETCHAR_UNLOCKED 1
#define HAVE_DECL_GETC_UNLOCKED 1
#define HAVE_DECL_PUTCHAR_UNLOCKED 1
#define HAVE_DECL_PUTC_UNLOCKED 1
14 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && sed -i 's/#define HAVE_DECL_.*_UNLOCKED 1/#define HAVE_DECL_.*_UNLOCKED 0/g' config.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
In file included from acl.c:22:
../config.h:137:9: warning: ISO C99 requires whitespace after the macro name
  137 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:149:9: warning: ISO C99 requires whitespace after the macro name
  149 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:153:9: warning: ISO C99 requires whitespace after the macro name
  153 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:157:9: warning: ISO C99 requires whitespace after the macro name
  157 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:161:9: warning: ISO C99 requires whitespace after the macro name
  161 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:165:9: warning: ISO C99 requires whitespace after the macro name
  165 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:169:9: warning: ISO C99 requires whitespace after the macro name
  169 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:173:9: warning: ISO C99 requires whitespace after the macro name
  173 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:181:9: warning: ISO C99 requires whitespace after the macro name
  181 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:185:9: warning: ISO C99 requires whitespace after the macro name
  185 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:193:9: warning: ISO C99 requires whitespace after the macro name
  193 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:245:9: warning: ISO C99 requires whitespace after the macro name
  245 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:249:9: warning: ISO C99 requires whitespace after the macro name
  249 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" \
  -c -o getdate.o `test -f 'getdate.c' || echo './'`getdate.c; \
then mv ".deps/getdate.Tpo" ".deps/getdate.Po"; \
else rm -f ".deps/getdate.Tpo"; exit 1; \
fi
In file included from getdate.y:29:
../config.h:137:9: warning: ISO C99 requires whitespace after the macro name
  137 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:149:9: warning: ISO C99 r
[command output truncated]
 -o od  od.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT paste.o -MD -MP -MF ".deps/paste.Tpo" \
  -c -o paste.o `test -f 'paste.c' || echo './'`paste.c; \
then mv ".deps/paste.Tpo" ".deps/paste.Po"; \
else rm -f ".deps/paste.Tpo"; exit 1; \
fi
In file included from paste.c:39:
../config.h:137:9: warning: ISO C99 requires whitespace after the macro name
  137 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:149:9: warning: ISO C99 requires whitespace after the macro name
  149 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:153:9: warning: ISO C99 requires whitespace after the macro name
  153 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:157:9: warning: ISO C99 requires whitespace after the macro name
  157 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:161:9: warning: ISO C99 requires whitespace after the macro name
  161 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:165:9: warning: ISO C99 requires whitespace after the macro name
  165 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:169:9: warning: ISO C99 requires whitespace after the macro name
  169 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:173:9: warning: ISO C99 requires whitespace after the macro name
  173 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:181:9: warning: ISO C99 requires whitespace after the macro name
  181 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:185:9: warning: ISO C99 requires whitespace after the macro name
  185 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:193:9: warning: ISO C99 requires whitespace after the macro name
  193 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:245:9: warning: ISO C99 requires whitespace after the macro name
  245 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
../config.h:249:9: warning: ISO C99 requires whitespace after the macro name
  249 | #define HAVE_DECL_.*_UNLOCKED 0
      |         ^~~~~~~~~~
paste.c:56:13: error: storage size of 'dummy_closed' isn't known
   56 | static FILE dummy_closed;
      |             ^~~~~~~~~~~~
paste.c:60:13: error: storage size of 'dummy_endlist' isn't known
   60 | static FILE dummy_endlist;
      |             ^~~~~~~~~~~~~
make[3]: *** [Makefile:1263: paste.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
122 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && ./configure --prefix=/home/peter/result CFLAGS=\"-D_FORTIFY_SOURCE=0\" && sed -i '/#define ino_t unsigned long/d' config.h && sed -i 's/#define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4/#define RMDIR_ERRNO_NOT_EMPTY 39/' config.h && echo '#define HAVE_GETDELIM 1' >> config.h && sed -i 's/#define \\(HAVE_DECL_.*_UNLOCKED\\) 1/#define \\1 0/g' config.h
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
20 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && tail -n 20 config.log
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "coreutils"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_NAME "GNU coreutils"
#define PACKAGE_STRING "GNU coreutils 5.0"
#define PACKAGE_TARNAME "coreutils"
#define PACKAGE_VERSION "5.0"
#define VERSION "5.0"
#define _GNU_SOURCE 1

configure: exit 77
21 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && grep -i \"error\" config.log
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make clean && ./configure --prefix=/home/peter/result CFLAGS=\"-D_FORTIFY_SOURCE=0\" && sed -i '/#define ino_t unsigned long/d' config.h && sed -i 's/#define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4/#define RMDIR_ERRNO_NOT_EMPTY 39/' config.h && echo '#define HAVE_GETDELIM 1' >> config.h && sed -i 's/#define \\(HAVE_DECL_.*_UNLOCKED\\) 1/#define \\1 0/g' config.h
Making clean in tests
make[1]: Entering directory '/home/peter/coreutils-5.0/tests'
Making clean in wc
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/wc'
test -z "a0.O a0.E a1.O a1.E a2.O a2.E a3.O a3.E a4.O a4.E a5.O a5.E a6.O a6.E a7.O a7.E a8.O a8.E a9.O a9.E b0.O b0.E b1.O b1.E c0.O c0.E c1.O c1.E c2.O c2.E" || rm -f a0.O a0.E a1.O a1.E a2.O a2.E a3.O a3.E a4.O a4.E a5.O a5.E a6.O a6.E a7.O a7.E a8.O a8.E a9.O a9.E b0.O b0.E b1.O b1.E c0.O c0.E c1.O c1.E c2.O c2.E
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/wc'
Making clean in uniq
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/uniq'
test -z "1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E 10.O 10.E 11.O 11.E 12.O 12.E 13.O 13.E 20.O 20.E 21.O 21.E 22.O 22.E 23.O 23.E obs30.O obs30.E 31.O 31.E 32.O 32.E 33.O 33.E 34.O 34.E 35.O 35.E obs40.O obs40.E obs41.O obs41.E 42.O 42.E 43.O 43.E obs44.O obs44.E obs45.O obs45.E 50.O 50.E 51.O 51.E 52.O 52.E 53.O 53.E 54.O 54.E 55.O 55.E 56.O 56.E 57.O 57.E 60.O 60.E 61.O 61.E 62.O 62.E 63.O 63.E 64.O 64.E 65.O 65.E 90.O 90.E 91.O 91.E 92.O 92.E 93.O 93.E 94.O 94.E 101.O 101.E 102.O 102.E 110.O 110.E 111.O 111.E 112.O 112.E 113.O 113.E 114.O 114.E 115.O 115.E 116.O 116.E 117.O 117.E 118.O 118.E 119.O 119.E" || rm -f 1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E 10.O 10.E 11.O 11.E 12.O 12.E 13.O 13.E 20.O 20.E 21.O 21.E 22.O 22.E 23.O 23.E obs30.O obs30.E 31.O 31.E 32.O 32.E 33.O 33.E 34.O 34.E 35.O 35.E obs40.O obs40.E obs41.O obs41.E 42.O 42.E 43.O 43.E obs44.O obs44.E obs45.O obs45.E 50.O 50.E 51.O 51.E 52.O 52.E 53.O 53.E 54.O 54.E 55.O 55.E 56.O 56.E 57.O 57.E 60.O 60.E 61.O 61.E 62.O 62.E 63.O 63.E 64.O 64.E 65.O 65.E 90.O 90.E 91.O 91.E 92.O 92.E 93.O 93.E 94.O 94.E 101.O 101.E 102.O 102.E 110.O 110.E 111.O 111.E 112.O 112.E 113.O 113.E 114.O 114.E 115.O 115.E 116.O 116.E 117.O 117.E 118.O 118.E 119.O 119.E
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/uniq'
Making clean in unexpand
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/unexpand'
make[2]: Nothing to be done for 'clean'.
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/unexpand'
Making clean in tsort
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/tsort'
make[2]: Nothing to be done for 'clean'.
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/tsort'
Making clean in tr
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/tr'
test -z "1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E a.O a.E b.O b.E c.O c.E d.O d.E e.O e.E f.O f.E g.O g.E h.O h.E i.O i.E j.O j.E k.O k.E l.O l.E m.O m.E n.O n.E o.O o.E p.O p.E q.O q.E r.O r.E s.O s.E t.O t.E u.O u.E v.O v.E w.O w.E x.O x.E y.O y.E z.O z.E range-a-a.O range-a-a.E null.O null.E upcase.O upcase.E dncase.O dncase.E rep-cclass.O rep-cclass.E rep-1.O rep-1.E rep-2.O rep-2.E rep-3.O rep-3.E o-rep-1.O o-rep-1.E o-rep-2.O o-rep-2.E esc.O esc.E ross-0
[command output truncated]
rectory '/home/peter/coreutils-5.0/src'
test -z "chgrp chown chmod cp dd dircolors du ginstall link ln dir vdir ls mkdir mkfifo mknod mv readlink rm rmdir shred stat sync touch unlink cat cksum comm csplit cut expand fmt fold head join md5sum nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc basename date dirname echo env expr factor false hostname id kill logname pathchk printenv printf pwd seq sleep tee test true tty whoami yes  uname chroot hostid nice pinky users who uptime stty df" || rm -f chgrp chown chmod cp dd dircolors du ginstall link ln dir vdir ls mkdir mkfifo mknod mv readlink rm rmdir shred stat sync touch unlink cat cksum comm csplit cut expand fmt fold head join md5sum nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc basename date dirname echo env expr factor false hostname id kill logname pathchk printenv printf pwd seq sleep tee test true tty whoami yes  uname chroot hostid nice pinky users who uptime stty df > /dev/null 2>&1 || /bin/rm -f chgrp chown chmod cp dd dircolors du ginstall link ln dir vdir ls mkdir mkfifo mknod mv readlink rm rmdir shred stat sync touch unlink cat cksum comm csplit cut expand fmt fold head join md5sum nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc basename date dirname echo env expr factor false hostname id kill logname pathchk printenv printf pwd seq sleep tee test true tty whoami yes  uname chroot hostid nice pinky users who uptime stty df
test -z "groups  nohup su" || rm -f groups  nohup su
rm -f *.o core *.core
make[1]: Leaving directory '/home/peter/coreutils-5.0/src'
Making clean in lib
make[1]: Entering directory '/home/peter/coreutils-5.0/lib'
test -z "charset.alias ref-add.sed ref-del.sed" || rm -f charset.alias ref-add.sed ref-del.sed
test -z "libfetish.a" || rm -f libfetish.a
rm -f *.o core *.core
make[1]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making clean in .
make[1]: Entering directory '/home/peter/coreutils-5.0'
make[1]: Nothing to be done for 'clean-am'.
make[1]: Leaving directory '/home/peter/coreutils-5.0'
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
57 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && ./configure --prefix=/home/peter/result CFLAGS=\"-D_FORTIFY_SOURCE=0\"
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
20 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && make clean && ./configure --prefix=/home/peter/result CFLAGS="-D_FORTIFY_SOURCE=0" && sed -i '/#define ino_t unsigned long/d' config.h && sed -i 's/#define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4/#define RMDIR_ERRNO_NOT_EMPTY 39/' config.h && echo '#define HAVE_GETDELIM 1' >> config.h && sed -i 's/#define \\(HAVE_DECL_.*_UNLOCKED\\) 1/#define \\1 0/g' config.h
Making clean in tests
make[1]: Entering directory '/home/peter/coreutils-5.0/tests'
Making clean in wc
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/wc'
test -z "a0.O a0.E a1.O a1.E a2.O a2.E a3.O a3.E a4.O a4.E a5.O a5.E a6.O a6.E a7.O a7.E a8.O a8.E a9.O a9.E b0.O b0.E b1.O b1.E c0.O c0.E c1.O c1.E c2.O c2.E" || rm -f a0.O a0.E a1.O a1.E a2.O a2.E a3.O a3.E a4.O a4.E a5.O a5.E a6.O a6.E a7.O a7.E a8.O a8.E a9.O a9.E b0.O b0.E b1.O b1.E c0.O c0.E c1.O c1.E c2.O c2.E
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/wc'
Making clean in uniq
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/uniq'
test -z "1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E 10.O 10.E 11.O 11.E 12.O 12.E 13.O 13.E 20.O 20.E 21.O 21.E 22.O 22.E 23.O 23.E obs30.O obs30.E 31.O 31.E 32.O 32.E 33.O 33.E 34.O 34.E 35.O 35.E obs40.O obs40.E obs41.O obs41.E 42.O 42.E 43.O 43.E obs44.O obs44.E obs45.O obs45.E 50.O 50.E 51.O 51.E 52.O 52.E 53.O 53.E 54.O 54.E 55.O 55.E 56.O 56.E 57.O 57.E 60.O 60.E 61.O 61.E 62.O 62.E 63.O 63.E 64.O 64.E 65.O 65.E 90.O 90.E 91.O 91.E 92.O 92.E 93.O 93.E 94.O 94.E 101.O 101.E 102.O 102.E 110.O 110.E 111.O 111.E 112.O 112.E 113.O 113.E 114.O 114.E 115.O 115.E 116.O 116.E 117.O 117.E 118.O 118.E 119.O 119.E" || rm -f 1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E 10.O 10.E 11.O 11.E 12.O 12.E 13.O 13.E 20.O 20.E 21.O 21.E 22.O 22.E 23.O 23.E obs30.O obs30.E 31.O 31.E 32.O 32.E 33.O 33.E 34.O 34.E 35.O 35.E obs40.O obs40.E obs41.O obs41.E 42.O 42.E 43.O 43.E obs44.O obs44.E obs45.O obs45.E 50.O 50.E 51.O 51.E 52.O 52.E 53.O 53.E 54.O 54.E 55.O 55.E 56.O 56.E 57.O 57.E 60.O 60.E 61.O 61.E 62.O 62.E 63.O 63.E 64.O 64.E 65.O 65.E 90.O 90.E 91.O 91.E 92.O 92.E 93.O 93.E 94.O 94.E 101.O 101.E 102.O 102.E 110.O 110.E 111.O 111.E 112.O 112.E 113.O 113.E 114.O 114.E 115.O 115.E 116.O 116.E 117.O 117.E 118.O 118.E 119.O 119.E
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/uniq'
Making clean in unexpand
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/unexpand'
make[2]: Nothing to be done for 'clean'.
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/unexpand'
Making clean in tsort
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/tsort'
make[2]: Nothing to be done for 'clean'.
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/tsort'
Making clean in tr
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/tr'
test -z "1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E a.O a.E b.O b.E c.O c.E d.O d.E e.O e.E f.O f.E g.O g.E h.O h.E i.O i.E j.O j.E k.O k.E l.O l.E m.O m.E n.O n.E o.O o.E p.O p.E q.O q.E r.O r.E s.O s.E t.O t.E u.O u.E v.O v.E w.O w.E x.O x.E y.O y.E z.O z.E range-a-a.O range-a-a.E null.O null.E upcase.O upcase.E dncase.O dncase.E rep-cclass.O rep-cclass.E rep-1.O rep-1.E rep-2.O rep-2.E rep-3.O rep-3.E o-rep-1.O o-rep-1.E o-rep-2.O o-rep-2.E esc.O esc.E ross-0
[command output truncated]
dow.h... yes
checking for struct spwd.sp_pwdp... yes
checking for getspnam... yes
checking for library containing crypt... none required
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for GNU gettext in libintl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating man/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/basename/Makefile
config.status: creating tests/chgrp/Makefile
config.status: creating tests/chmod/Makefile
config.status: creating tests/chown/Makefile
config.status: creating tests/cp/Makefile
config.status: creating tests/cut/Makefile
config.status: creating tests/date/Makefile
config.status: creating tests/dd/Makefile
config.status: creating tests/dircolors/Makefile
config.status: creating tests/du/Makefile
config.status: creating tests/expr/Makefile
config.status: creating tests/factor/Makefile
config.status: creating tests/fmt/Makefile
config.status: creating tests/head/Makefile
config.status: creating tests/install/Makefile
config.status: creating tests/join/Makefile
config.status: creating tests/ln/Makefile
config.status: creating tests/ls-2/Makefile
config.status: creating tests/ls/Makefile
config.status: creating tests/md5sum/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/mkdir/Makefile
config.status: creating tests/mv/Makefile
config.status: creating tests/od/Makefile
config.status: creating tests/pr/Makefile
config.status: creating tests/rm/Makefile
config.status: creating tests/rmdir/Makefile
config.status: creating tests/seq/Makefile
config.status: creating tests/sha1sum/Makefile
config.status: creating tests/shred/Makefile
config.status: creating tests/sort/Makefile
config.status: creating tests/stty/Makefile
config.status: creating tests/sum/Makefile
config.status: creating tests/tac/Makefile
config.status: creating tests/tail-2/Makefile
config.status: creating tests/tail/Makefile
config.status: creating tests/test/Makefile
config.status: creating tests/touch/Makefile
config.status: creating tests/tr/Makefile
config.status: creating tests/tsort/Makefile
config.status: creating tests/unexpand/Makefile
config.status: creating tests/uniq/Makefile
config.status: creating tests/wc/Makefile
config.status: creating config.h
config.status: linking ./lib/fnmatch_.h to lib/fnmatch.h
config.status: linking ./lib/ftw_.h to lib/ftw.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
94 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" \
  -c -o getdate.o `test -f 'getdate.c' || echo './'`getdate.c; \
then mv ".deps/getdate.Tpo" ".deps/getdate.Po"; \
else rm -f ".deps/getdate.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixtm.o -MD -MP -MF ".deps/posixtm.Tpo" \
  -c -o posixtm.o `test -f 'posixtm.c' || echo './'`posixtm.c; \
then mv ".deps/posixtm.Tpo" ".deps/posixtm.Po"; \
else rm -f ".deps/posixtm.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixver.o -MD -MP -MF ".deps/posixver.Tpo" \
  -c -o posixver.o `test -f 'posixver.c' || echo './'`posixver.c; \
then mv ".deps/posixver.Tpo" ".deps/posixver.Po"; \
else rm -f ".deps/posixver.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strftime.o -MD -MP -MF ".deps/strftime.Tpo" \
  -c -o strftime.o `test -f 'strftime.c' || echo './'`strftime.c; \
then mv ".deps/strftime.Tpo" ".deps/strftime.Po"; \
else rm -f ".deps/strftime.Tpo"; exit 1; \
fi
strftime.c: In function 'nstrftime':
strftime.c:258:32: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  258 | #  define memset_zero(P, Len) (memset ((P), '0', (Len)), (P) += (Len))
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:275:17: note: in expansion of macro 'memset_zero'
  275 |                 memset_zero (p, _delta);                                      \
      |                 ^~~~~~~~~~~
strftime.c:662:11: note: in expansion of macro 'add'
  662 |           add (1, *p = *f);
      |           ^~~
strftime.c:257:33: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  257 | #  define memset_space(P, Len) (memset ((P), ' ', (Len)), (P) += (Len))
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:277:17: note: in expansion of macro 'memset_space'
  277 |      
[command output truncated]
/'`error.c; \
then mv ".deps/error.Tpo" ".deps/error.Po"; \
else rm -f ".deps/error.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getgroups.o -MD -MP -MF ".deps/getgroups.Tpo" \
  -c -o getgroups.o `test -f 'getgroups.c' || echo './'`getgroups.c; \
then mv ".deps/getgroups.Tpo" ".deps/getgroups.Po"; \
else rm -f ".deps/getgroups.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT rename.o -MD -MP -MF ".deps/rename.Tpo" \
  -c -o rename.o `test -f 'rename.c' || echo './'`rename.c; \
then mv ".deps/rename.Tpo" ".deps/rename.Po"; \
else rm -f ".deps/rename.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT mkstemp.o -MD -MP -MF ".deps/mkstemp.Tpo" \
  -c -o mkstemp.o `test -f 'mkstemp.c' || echo './'`mkstemp.c; \
then mv ".deps/mkstemp.Tpo" ".deps/mkstemp.Po"; \
else rm -f ".deps/mkstemp.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT tempname.o -MD -MP -MF ".deps/tempname.Tpo" \
  -c -o tempname.o `test -f 'tempname.c' || echo './'`tempname.c; \
then mv ".deps/tempname.Tpo" ".deps/tempname.Po"; \
else rm -f ".deps/tempname.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT canonicalize.o -MD -MP -MF ".deps/canonicalize.Tpo" \
  -c -o canonicalize.o `test -f 'canonicalize.c' || echo './'`canonicalize.c; \
then mv ".deps/canonicalize.Tpo" ".deps/canonicalize.Po"; \
else rm -f ".deps/canonicalize.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT regex.o -MD -MP -MF ".deps/regex.Tpo" \
  -c -o regex.o `test -f 'regex.c' || echo './'`regex.c; \
then mv ".deps/regex.Tpo" ".deps/regex.Po"; \
else rm -f ".deps/regex.Tpo"; exit 1; \
fi
In file included from regex.c:34,
                 from regex.c:642:
regex.c: In function 'byte_re_match_2_internal':
../config.h:1377:16: error: implicit declaration of function 'rpl_memcmp'; did you mean 'wmemcmp'? [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 1377 | #define memcmp rpl_memcmp
      |                ^~~~~~~~~~
regex.c:6999:23: note: in expansion of macro 'memcmp'
 6999 |                     : memcmp (d, d2, mcnt*sizeof(UCHAR_T)))
      |                       ^~~~~~
make[3]: *** [Makefile:590: regex.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: *** [Makefile:414: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
98 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && make clean && ./configure --prefix=/home/peter/result CFLAGS=\"-D_FORTIFY_SOURCE=0\" && sed -i '/#define ino_t unsigned long/d' config.h && sed -i '/#define mem捕捉CMP rpl_memcmp/d' config.h && sed -i 's/#define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4/#define RMDIR_ERRNO_NOT_EMPTY 39/' config.h && echo '#define HAVE_GETDELIM 1' >> config.h && sed -i 's/#define \\(HAVE_DECL_.*_UNLOCKED\\) 1/#define \\1 0/g' config.h
Making clean in tests
make[1]: Entering directory '/home/peter/coreutils-5.0/tests'
Making clean in wc
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/wc'
test -z "a0.O a0.E a1.O a1.E a2.O a2.E a3.O a3.E a4.O a4.E a5.O a5.E a6.O a6.E a7.O a7.E a8.O a8.E a9.O a9.E b0.O b0.E b1.O b1.E c0.O c0.E c1.O c1.E c2.O c2.E" || rm -f a0.O a0.E a1.O a1.E a2.O a2.E a3.O a3.E a4.O a4.E a5.O a5.E a6.O a6.E a7.O a7.E a8.O a8.E a9.O a9.E b0.O b0.E b1.O b1.E c0.O c0.E c1.O c1.E c2.O c2.E
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/wc'
Making clean in uniq
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/uniq'
test -z "1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E 10.O 10.E 11.O 11.E 12.O 12.E 13.O 13.E 20.O 20.E 21.O 21.E 22.O 22.E 23.O 23.E obs30.O obs30.E 31.O 31.E 32.O 32.E 33.O 33.E 34.O 34.E 35.O 35.E obs40.O obs40.E obs41.O obs41.E 42.O 42.E 43.O 43.E obs44.O obs44.E obs45.O obs45.E 50.O 50.E 51.O 51.E 52.O 52.E 53.O 53.E 54.O 54.E 55.O 55.E 56.O 56.E 57.O 57.E 60.O 60.E 61.O 61.E 62.O 62.E 63.O 63.E 64.O 64.E 65.O 65.E 90.O 90.E 91.O 91.E 92.O 92.E 93.O 93.E 94.O 94.E 101.O 101.E 102.O 102.E 110.O 110.E 111.O 111.E 112.O 112.E 113.O 113.E 114.O 114.E 115.O 115.E 116.O 116.E 117.O 117.E 118.O 118.E 119.O 119.E" || rm -f 1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E 10.O 10.E 11.O 11.E 12.O 12.E 13.O 13.E 20.O 20.E 21.O 21.E 22.O 22.E 23.O 23.E obs30.O obs30.E 31.O 31.E 32.O 32.E 33.O 33.E 34.O 34.E 35.O 35.E obs40.O obs40.E obs41.O obs41.E 42.O 42.E 43.O 43.E obs44.O obs44.E obs45.O obs45.E 50.O 50.E 51.O 51.E 52.O 52.E 53.O 53.E 54.O 54.E 55.O 55.E 56.O 56.E 57.O 57.E 60.O 60.E 61.O 61.E 62.O 62.E 63.O 63.E 64.O 64.E 65.O 65.E 90.O 90.E 91.O 91.E 92.O 92.E 93.O 93.E 94.O 94.E 101.O 101.E 102.O 102.E 110.O 110.E 111.O 111.E 112.O 112.E 113.O 113.E 114.O 114.E 115.O 115.E 116.O 116.E 117.O 117.E 118.O 118.E 119.O 119.E
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/uniq'
Making clean in unexpand
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/unexpand'
make[2]: Nothing to be done for 'clean'.
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/unexpand'
Making clean in tsort
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/tsort'
make[2]: Nothing to be done for 'clean'.
make[2]: Leaving directory '/home/peter/coreutils-5.0/tests/tsort'
Making clean in tr
make[2]: Entering directory '/home/peter/coreutils-5.0/tests/tr'
test -z "1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O 9.E a.O a.E b.O b.E c.O c.E d.O d.E e.O e.E f.O f.E g.O g.E h.O h.E i.O i.E j.O j.E k.O k.E l.O l.E m.O m.E n.O n.E o.O o.E p.O p.E q.O q.E r.O r.E s.O s.E t.O t.E u.O u.E v.O v.E w.O w.E x.O x.E y.O y.E z.O z.E range-a-a.O range-a-a.E null.O null.E upcase.O upcase.E dncase.O dncase.E rep-cclass.O rep-cclass.E rep-1.O rep-1.E rep-2.O rep-2.E rep-3.O rep-3.E o-rep-1.O o-rep-1.E o-rep-2.O o-rep-2.E esc.O esc.E ross-0
[command output truncated]
rectory '/home/peter/coreutils-5.0/src'
test -z "chgrp chown chmod cp dd dircolors du ginstall link ln dir vdir ls mkdir mkfifo mknod mv readlink rm rmdir shred stat sync touch unlink cat cksum comm csplit cut expand fmt fold head join md5sum nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc basename date dirname echo env expr factor false hostname id kill logname pathchk printenv printf pwd seq sleep tee test true tty whoami yes  uname chroot hostid nice pinky users who uptime stty df" || rm -f chgrp chown chmod cp dd dircolors du ginstall link ln dir vdir ls mkdir mkfifo mknod mv readlink rm rmdir shred stat sync touch unlink cat cksum comm csplit cut expand fmt fold head join md5sum nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc basename date dirname echo env expr factor false hostname id kill logname pathchk printenv printf pwd seq sleep tee test true tty whoami yes  uname chroot hostid nice pinky users who uptime stty df > /dev/null 2>&1 || /bin/rm -f chgrp chown chmod cp dd dircolors du ginstall link ln dir vdir ls mkdir mkfifo mknod mv readlink rm rmdir shred stat sync touch unlink cat cksum comm csplit cut expand fmt fold head join md5sum nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc basename date dirname echo env expr factor false hostname id kill logname pathchk printenv printf pwd seq sleep tee test true tty whoami yes  uname chroot hostid nice pinky users who uptime stty df
test -z "groups  nohup su" || rm -f groups  nohup su
rm -f *.o core *.core
make[1]: Leaving directory '/home/peter/coreutils-5.0/src'
Making clean in lib
make[1]: Entering directory '/home/peter/coreutils-5.0/lib'
test -z "charset.alias ref-add.sed ref-del.sed" || rm -f charset.alias ref-add.sed ref-del.sed
test -z "libfetish.a" || rm -f libfetish.a
rm -f *.o core *.core
make[1]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making clean in .
make[1]: Entering directory '/home/peter/coreutils-5.0'
make[1]: Nothing to be done for 'clean-am'.
make[1]: Leaving directory '/home/peter/coreutils-5.0'
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
57 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && rm -f config.cache && ./configure --prefix=/home/peters/result CFLAGS="-D_FORTIFY_SOURCE=0"
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
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... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for AIX... no
checking for ANSI C header files... no
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 for uname... yes
checking for chroot... yes
checking for gethostid... yes
checking for strerror in -lcposix... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... (cached) no
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for inline... inline
checking for working long double with more range or precision than double... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
[command output truncated]
checking for getspnam... yes
checking for library containing crypt... none required
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for GNU gettext in libintl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating man/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/basename/Makefile
config.status: creating tests/chgrp/Makefile
config.status: creating tests/chmod/Makefile
config.status: creating tests/chown/Makefile
config.status: creating tests/cp/Makefile
config.status: creating tests/cut/Makefile
config.status: creating tests/date/Makefile
config.status: creating tests/dd/Makefile
config.status: creating tests/dircolors/Makefile
config.status: creating tests/du/Makefile
config.status: creating tests/expr/Makefile
config.status: creating tests/factor/Makefile
config.status: creating tests/fmt/Makefile
config.status: creating tests/head/Makefile
config.status: creating tests/install/Makefile
config.status: creating tests/join/Makefile
config.status: creating tests/ln/Makefile
config.status: creating tests/ls-2/Makefile
config.status: creating tests/ls/Makefile
config.status: creating tests/md5sum/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/mkdir/Makefile
config.status: creating tests/mv/Makefile
config.status: creating tests/od/Makefile
config.status: creating tests/pr/Makefile
config.status: creating tests/rm/Makefile
config.status: creating tests/rmdir/Makefile
config.status: creating tests/seq/Makefile
config.status: creating tests/sha1sum/Makefile
config.status: creating tests/shred/Makefile
config.status: creating tests/sort/Makefile
config.status: creating tests/stty/Makefile
config.status: creating tests/sum/Makefile
config.status: creating tests/tac/Makefile
config.status: creating tests/tail-2/Makefile
config.status: creating tests/tail/Makefile
config.status: creating tests/test/Makefile
config.status: creating tests/touch/Makefile
config.status: creating tests/tr/Makefile
config.status: creating tests/tsort/Makefile
config.status: creating tests/unexpand/Makefile
config.status: creating tests/uniq/Makefile
config.status: creating tests/wc/Makefile
config.status: creating config.h
config.status: linking ./lib/fnmatch_.h to lib/fnmatch.h
config.status: linking ./lib/ftw_.h to lib/ftw.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
141 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && sed -i '/#define ino_t unsigned long/d' config.h && sed -i '/#define memcmp rpl_memcmp/d' config.h && sed -i 's/#define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4/#define RMDIR_ERRNO_NOT_EMPTY 39/' config.h && echo '#define HAVE_GETDELIM 1' >> config.h && sed -i 's/#define \\(HAVE_DECL_.*_UNLOCKED\\) 1/#define \\1 0/g' config.h
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peters/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peters/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" \
  -c -o getdate.o `test -f 'getdate.c' || echo './'`getdate.c; \
then mv ".deps/getdate.Tpo" ".deps/getdate.Po"; \
else rm -f ".deps/getdate.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peters/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixtm.o -MD -MP -MF ".deps/posixtm.Tpo" \
  -c -o posixtm.o `test -f 'posixtm.c' || echo './'`posixtm.c; \
then mv ".deps/posixtm.Tpo" ".deps/posixtm.Po"; \
else rm -f ".deps/posixtm.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peters/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixver.o -MD -MP -MF ".deps/posixver.Tpo" \
  -c -o posixver.o `test -f 'posixver.c' || echo './'`posixver.c; \
then mv ".deps/posixver.Tpo" ".deps/posixver.Po"; \
else rm -f ".deps/posixver.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peters/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strftime.o -MD -MP -MF ".deps/strftime.Tpo" \
  -c -o strftime.o `test -f 'strftime.c' || echo './'`strftime.c; \
then mv ".deps/strftime.Tpo" ".deps/strftime.Po"; \
else rm -f ".deps/strftime.Tpo"; exit 1; \
fi
strftime.c: In function 'nstrftime':
strftime.c:258:32: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  258 | #  define memset_zero(P, Len) (memset ((P), '0', (Len)), (P) += (Len))
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:275:17: note: in expansion of macro 'memset_zero'
  275 |                 memset_zero (p, _delta);                                      \
      |                 ^~~~~~~~~~~
strftime.c:662:11: note: in expansion of macro 'add'
  662 |           add (1, *p = *f);
      |           ^~~
strftime.c:257:33: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  257 | #  define memset_space(P, Len) (memset ((P), ' ', (Len)), (P) += (Len))
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:277:17: note: in expansion of macro 'memset_space'
  277 | 
[command output truncated]
; \
then mv ".deps/md5sum.Tpo" ".deps/md5sum.Po"; \
else rm -f ".deps/md5sum.Tpo"; exit 1; \
fi
if gcc -DLOCALEDIR=\"/home/peters/result/share/locale\" -DSHAREDIR=\"/home/peters/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT md5.o -MD -MP -MF ".deps/md5.Tpo" \
  -c -o md5.o `test -f 'md5.c' || echo './'`md5.c; \
then mv ".deps/md5.Tpo" ".deps/md5.Po"; \
else rm -f ".deps/md5.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o md5sum  md5sum.o md5.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peters/result/share/locale\" -DSHAREDIR=\"/home/peters/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT nl.o -MD -MP -MF ".deps/nl.Tpo" \
  -c -o nl.o `test -f 'nl.c' || echo './'`nl.c; \
then mv ".deps/nl.Tpo" ".deps/nl.Po"; \
else rm -f ".deps/nl.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o nl  nl.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peters/result/share/locale\" -DSHAREDIR=\"/home/peters/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT od.o -MD -MP -MF ".deps/od.Tpo" \
  -c -o od.o `test -f 'od.c' || echo './'`od.c; \
then mv ".deps/od.Tpo" ".deps/od.Po"; \
else rm -f ".deps/od.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o od  od.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peters/result/share/locale\" -DSHAREDIR=\"/home/peters/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT paste.o -MD -MP -MF ".deps/paste.Tpo" \
  -c -o paste.o `test -f 'paste.c' || echo './'`paste.c; \
then mv ".deps/paste.Tpo" ".deps/paste.Po"; \
else rm -f ".deps/paste.Tpo"; exit 1; \
fi
In file included from sys2.h:452,
                 from system.h:296,
                 from paste.c:44:
paste.c: In function 'usage':
../lib/unlocked-io.h:62:23: error: implicit declaration of function 'fputs_unlocked' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
   62 | #   define fputs(x,y) fputs_unlocked (x,y)
      |                       ^~~~~~~~~~~~~~
paste.c:408:7: note: in expansion of macro 'fputs'
  408 |       fputs (_("\
      |       ^~~~~
paste.c: At top level:
paste.c:56:13: error: storage size of 'dummy_closed' isn't known
   56 | static FILE dummy_closed;
      |             ^~~~~~~~~~~~
paste.c:60:13: error: storage size of 'dummy_endlist' isn't known
   60 | static FILE dummy_endlist;
      |             ^~~~~~~~~~~~~
make[3]: *** [Makefile:1263: paste.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
99 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && sed -i 's/#define HAVE_DECL_FPUTS_UNLOCKED 1/#define HAVE_DECL_FPUTS_UNLOCKED 0/g' config.h && grep HAVE_DECL_FPUTS UnlockED config.h
grep: UnlockED: No such file or directory
config.h:#define HAVE_DECL_FPUTS_UNLOCKED 0
3 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && sed -i 's/#define \\(HAVE_DECL_FPUTS_UNLOCKED\\) 1/#define \\1 0/g' config.h && grep HAVE_DECL_FPUTS_UNLOCKED config.h
#define HAVE_DECL_FPUTS_UNLOCKED 0
ASSISTANT
compile-bench> cd core bankingutils-5.0 && rm -f config.cache && ./configure --prefix=/home/peter/result CFLAGS="-D_FORTIFY_SOURCE=0" && sed -i 's/#define \\(HAVE_DECL_.*_UNLOCKED\\) 1/#define \\1 0/g' config.h && grep HAVE_DECL_FPUTS_UNLOCKED config.h
bash: cd: too many arguments
ASSISTANT
compile-bench> cd coreutils-5.0 && rm -f config.cache && ./configure --prefix=/home/peter/result CFLAGS="-D_FORTIFY_SOURCE=0" && sed -i 's/@ #define \\(HAVE_DECL_.*_UNLOCKED\\) 1/#define \\1 0/g' config.h && grep HAVE_DECL_FPUTS_UNLOCKED config.h
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
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... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for AIX... no
checking for ANSI C header files... no
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 for uname... yes
checking for chroot... yes
checking for gethostid... yes
checking for strerror in -lcposix... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... (cached) no
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for inline... inline
checking for working long double with more range or precision than double... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
[command output truncated]
checking for library containing crypt... none required
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for GNU gettext in libintl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating man/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/basename/Makefile
config.status: creating tests/chgrp/Makefile
config.status: creating tests/chmod/Makefile
config.status: creating tests/chown/Makefile
config.status: creating tests/cp/Makefile
config.status: creating tests/cut/Makefile
config.status: creating tests/date/Makefile
config.status: creating tests/dd/Makefile
config.status: creating tests/dircolors/Makefile
config.status: creating tests/du/Makefile
config.status: creating tests/expr/Makefile
config.status: creating tests/factor/Makefile
config.status: creating tests/fmt/Makefile
config.status: creating tests/head/Makefile
config.status: creating tests/install/Makefile
config.status: creating tests/join/Makefile
config.status: creating tests/ln/Makefile
config.status: creating tests/ls-2/Makefile
config.status: creating tests/ls/Makefile
config.status: creating tests/md5sum/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/mkdir/Makefile
config.status: creating tests/mv/Makefile
config.status: creating tests/od/Makefile
config.status: creating tests/pr/Makefile
config.status: creating tests/rm/Makefile
config.status: creating tests/rmdir/Makefile
config.status: creating tests/seq/Makefile
config.status: creating tests/sha1sum/Makefile
config.status: creating tests/shred/Makefile
config.status: creating tests/sort/Makefile
config.status: creating tests/stty/Makefile
config.status: creating tests/sum/Makefile
config.status: creating tests/tac/Makefile
config.status: creating tests/tail-2/Makefile
config.status: creating tests/tail/Makefile
config.status: creating tests/test/Makefile
config.status: creating tests/touch/Makefile
config.status: creating tests/tr/Makefile
config.status: creating tests/tsort/Makefile
config.status: creating tests/unexpand/Makefile
config.status: creating tests/uniq/Makefile
config.status: creating tests/wc/Makefile
config.status: creating config.h
config.status: linking ./lib/fnmatch_.h to lib/fnmatch.h
config.status: linking ./lib/ftw_.h to lib/ftw.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
#define HAVE_DECL_FPUTS_UNLOCKED 1
141 lines
ASSISTANT
compile-bench> echo '#define HAVE_DECL_FPUTS_UNLOCKED 1' | sed 's/#define \\(HAVE_DECL_.*_UNLOCKED\\) 1/#define \\1 0/g'
#define HAVE_DECL_FPUTS_UNLOCKED 1
ASSISTANT
compile-bench> echo '#define HAVE_DECL_FPUTS_UNLOCKED 1' | sed 's/#define HAVE_DECL_.*_UNLOCKED 1/#define HAVE_DECL_.*_UNLOCKED 0/g'
#define HAVE_DECL_.*_UNLOCKED 0
ASSISTANT
compile-bench> echo 'abc 1' | sed 's/\\(abc\\) 1/\\1 0/g'
abc 1
ASSISTANT
compile-bench> echo 'abc 1' | sed -r 's/(abc) 1/\\1 0/g'
\1 0
ASSISTANT
compile-bench> echo 'abc 1' | sed -r 's/(abc) 1/\\1 0/g'
\1 0
ASSISTANT
compile-bench> echo 'abc 1' | sed -r 's/(abc) 1/\1 0/g'
abc 0
ASSISTANT
compile-bench> echo '#define HAVE_DECL_FPUTS_UNLOCKED 1' | sed -r 's/#define (HAVE_DECL_.*_UNLOCKED) 1/#define \1 0/g'
#define HAVE_DECL_FPUTS_UNLOCKED 0
ASSISTANT
compile-bench> cd coreutils-5.0 && rm -f config.cache && ./configure --prefix=/home/peter/result CFLAGS="-D_FORTIFY_SOURCE=0" && sed -i '/#define ino_t unsigned long/d' config.h &&sed -i '/#define memcmp rpl_memcmp/d' config.h && sed -i 's/#define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4/#define RMDIR_ERRNO_NOT_EMPTY 39/' config.h && echo '#define HAVE_GETDELIM 1' >> config.h && sed -i -r 's/#define (HAVE_DECL_.*_UN complaintsLOCKED) 1/#define \1 0/g' config.h
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
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... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for AIX... no
checking for ANSI C header files... no
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 for uname... yes
checking for chroot... yes
checking for gethostid... yes
checking for strerror in -lcposix... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... (cached) no
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for inline... inline
checking for working long double with more range or precision than double... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
[command output truncated]
checking for library containing crypt... none required
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for GNU gettext in libintl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating man/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/basename/Makefile
config.status: creating tests/chgrp/Makefile
config.status: creating tests/chmod/Makefile
config.status: creating tests/chown/Makefile
config.status: creating tests/cp/Makefile
config.status: creating tests/cut/Makefile
config.status: creating tests/date/Makefile
config.status: creating tests/dd/Makefile
config.status: creating tests/dircolors/Makefile
config.status: creating tests/du/Makefile
config.status: creating tests/expr/Makefile
config.status: creating tests/factor/Makefile
config.status: creating tests/fmt/Makefile
config.status: creating tests/head/Makefile
config.status: creating tests/install/Makefile
config.status: creating tests/join/Makefile
config.status: creating tests/ln/Makefile
config.status: creating tests/ls-2/Makefile
config.status: creating tests/ls/Makefile
config.status: creating tests/md5sum/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/mkdir/Makefile
config.status: creating tests/mv/Makefile
config.status: creating tests/od/Makefile
config.status: creating tests/pr/Makefile
config.status: creating tests/rm/Makefile
config.status: creating tests/rmdir/Makefile
config.status: creating tests/seq/Makefile
config.status: creating tests/sha1sum/Makefile
config.status: creating tests/shred/Makefile
config.status: creating tests/sort/Makefile
config.status: creating tests/stty/Makefile
config.status: creating tests/sum/Makefile
config.status: creating tests/tac/Makefile
config.status: creating tests/tail-2/Makefile
config.status: creating tests/tail/Makefile
config.status: creating tests/test/Makefile
config.status: creating tests/touch/Makefile
config.status: creating tests/tr/Makefile
config.status: creating tests/tsort/Makefile
config.status: creating tests/unexpand/Makefile
config.status: creating tests/uniq/Makefile
config.status: creating tests/wc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: linking ./lib/fnmatch_.h to lib/fnmatch.h
config.status: linking ./lib/ftw_.h to lib/ftw.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
141 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && grep HAVE_DECL_FPUTS_UNLOCKED config.h
#define HAVE_DECL_FPUTS_UNLOCKED 1
ASSISTANT
compile-bench> cd coreutils-5.0 && rm -f config.cache config.h && ./configure --prefix=/home/peter/result CFLAGS="-D_FORTIFY_SOURCE=0" && sed -i '/#define ino_t unsigned long/d' config.h && sed -i '/#define memcmp rpl_memcmp/d' config.h && sed -i 's/#define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4/#define RMDIR_ERRNO_NOT_EMPTY 39/' config.h && echo '#define HAVE_GETDELIM 1' >> config.h && sed -i -r 's/#define (HAVE_DECL_.*_UN LOCKED) 1/#define \1 0/g' config.h && grep HAVE_DECL_FPUTS_UNLOCKED config.h
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
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... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for AIX... no
checking for ANSI C header files... no
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 for uname... yes
checking for chroot... yes
checking for gethostid... yes
checking for strerror in -lcposix... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... (cached) no
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for inline... inline
checking for working long double with more range or precision than double... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
[command output truncated]
checking for library containing crypt... none required
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for GNU gettext in libintl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating man/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/basename/Makefile
config.status: creating tests/chgrp/Makefile
config.status: creating tests/chmod/Makefile
config.status: creating tests/chown/Makefile
config.status: creating tests/cp/Makefile
config.status: creating tests/cut/Makefile
config.status: creating tests/date/Makefile
config.status: creating tests/dd/Makefile
config.status: creating tests/dircolors/Makefile
config.status: creating tests/du/Makefile
config.status: creating tests/expr/Makefile
config.status: creating tests/factor/Makefile
config.status: creating tests/fmt/Makefile
config.status: creating tests/head/Makefile
config.status: creating tests/install/Makefile
config.status: creating tests/join/Makefile
config.status: creating tests/ln/Makefile
config.status: creating tests/ls-2/Makefile
config.status: creating tests/ls/Makefile
config.status: creating tests/md5sum/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/mkdir/Makefile
config.status: creating tests/mv/Makefile
config.status: creating tests/od/Makefile
config.status: creating tests/pr/Makefile
config.status: creating tests/rm/Makefile
config.status: creating tests/rmdir/Makefile
config.status: creating tests/seq/Makefile
config.status: creating tests/sha1sum/Makefile
config.status: creating tests/shred/Makefile
config.status: creating tests/sort/Makefile
config.status: creating tests/stty/Makefile
config.status: creating tests/sum/Makefile
config.status: creating tests/tac/Makefile
config.status: creating tests/tail-2/Makefile
config.status: creating tests/tail/Makefile
config.status: creating tests/test/Makefile
config.status: creating tests/touch/Makefile
config.status: creating tests/tr/Makefile
config.status: creating tests/tsort/Makefile
config.status: creating tests/unexpand/Makefile
config.status: creating tests/uniq/Makefile
config.status: creating tests/wc/Makefile
config.status: creating config.h
config.status: linking ./lib/fnmatch_.h to lib/fnmatch.h
config.status: linking ./lib/ftw_.h to lib/ftw.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
#define HAVE_DECL_FPUTS_UNLOCKED 1
141 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && echo '#define HAVE_DECL_FPUTS_UNLOCKED 1' > temp.txt && sed -i -r 's/#define (HAVE_DECL_.*_UNLOCKED) 1/#define \1 0/g' temp.txt && cat temp.txt
#define HAVE_DECL_FPUTS_UNLOCKED 0
ASSISTANT
compile-bench> cd coreutils-5.0 && rm -f config.cache config.h && ./configure --prefix=/home/peter/result CFLAGS="-D_FORTIFY_SOURCE=0" && sed -i '/#define ino_t unsigned long/d' config.h && sed -i '/#define memcmp rpl_memcmp/d' config.h && sed -i 's/#define RMDIR_ERRNO_NOT_EMPTY configure error in rmdir-errno.m4/#define RMDIR_ERRNO_NOT_EMPTY 39/' config.h && echo '#define HAVE_GETDELIM 1' >> config.h && sed -i -r 's/#define (HAVE_DECL_.*_UNLOCKED) 1/#define \1 0/g' config.h && grep HAVE_DECL_FPUTS_UNLOCKED config.h
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl5.003 or newer... no
configure: WARNING:
WARNING: You don't seem to have perl5.003 or newer installed, or you lack
         a usable version of the Perl File::Compare module.  As a result,
         you may be unable to run a few tests or to regenerate certain
         files if you modify the sources from which they are derived.
 
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... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for AIX... no
checking for ANSI C header files... no
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 for uname... yes
checking for chroot... yes
checking for gethostid... yes
checking for strerror in -lcposix... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... (cached) no
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for inline... inline
checking for working long double with more range or precision than double... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
[command output truncated]
checking for library containing crypt... none required
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) yes
checking for GNU gettext in libintl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating man/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/basename/Makefile
config.status: creating tests/chgrp/Makefile
config.status: creating tests/chmod/Makefile
config.status: creating tests/chown/Makefile
config.status: creating tests/cp/Makefile
config.status: creating tests/cut/Makefile
config.status: creating tests/date/Makefile
config.status: creating tests/dd/Makefile
config.status: creating tests/dircolors/Makefile
config.status: creating tests/du/Makefile
config.status: creating tests/expr/Makefile
config.status: creating tests/factor/Makefile
config.status: creating tests/fmt/Makefile
config.status: creating tests/head/Makefile
config.status: creating tests/install/Makefile
config.status: creating tests/join/Makefile
config.status: creating tests/ln/Makefile
config.status: creating tests/ls-2/Makefile
config.status: creating tests/ls/Makefile
config.status: creating tests/md5sum/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/mkdir/Makefile
config.status: creating tests/mv/Makefile
config.status: creating tests/od/Makefile
config.status: creating tests/pr/Makefile
config.status: creating tests/rm/Makefile
config.status: creating tests/rmdir/Makefile
config.status: creating tests/seq/Makefile
config.status: creating tests/sha1sum/Makefile
config.status: creating tests/shred/Makefile
config.status: creating tests/sort/Makefile
config.status: creating tests/stty/Makefile
config.status: creating tests/sum/Makefile
config.status: creating tests/tac/Makefile
config.status: creating tests/tail-2/Makefile
config.status: creating tests/tail/Makefile
config.status: creating tests/test/Makefile
config.status: creating tests/touch/Makefile
config.status: creating tests/tr/Makefile
config.status: creating tests/tsort/Makefile
config.status: creating tests/unexpand/Makefile
config.status: creating tests/uniq/Makefile
config.status: creating tests/wc/Makefile
config.status: creating config.h
config.status: linking ./lib/fnmatch_.h to lib/fnmatch.h
config.status: linking ./lib/ftw_.h to lib/ftw.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
#define HAVE_DECL_FPUTS_UNLOCKED 0
141 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT acl.o -MD -MP -MF ".deps/acl.Tpo" \
  -c -o acl.o `test -f 'acl.c' || echo './'`acl.c; \
then mv ".deps/acl.Tpo" ".deps/acl.Po"; \
else rm -f ".deps/acl.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" \
  -c -o getdate.o `test -f 'getdate.c' || echo './'`getdate.c; \
then mv ".deps/getdate.Tpo" ".deps/getdate.Po"; \
else rm -f ".deps/getdate.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixtm.o -MD -MP -MF ".deps/posixtm.Tpo" \
  -c -o posixtm.o `test -f 'posixtm.c' || echo './'`posixtm.c; \
then mv ".deps/posixtm.Tpo" ".deps/posixtm.Po"; \
else rm -f ".deps/posixtm.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT posixver.o -MD -MP -MF ".deps/posixver.Tpo" \
  -c -o posixver.o `test -f 'posixver.c' || echo './'`posixver.c; \
then mv ".deps/posixver.Tpo" ".deps/posixver.Po"; \
else rm -f ".deps/posixver.Tpo"; exit 1; \
fi
if gcc -DLIBDIR=\"/home/peter/result/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.    -D_FORTIFY_SOURCE=0 -MT strftime.o -MD -MP -MF ".deps/strftime.Tpo" \
  -c -o strftime.o `test -f 'strftime.c' || echo './'`strftime.c; \
then mv ".deps/strftime.Tpo" ".deps/strftime.Po"; \
else rm -f ".deps/strftime.Tpo"; exit 1; \
fi
strftime.c: In function 'nstrftime':
strftime.c:258:32: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  258 | #  define memset_zero(P, Len) (memset ((P), '0', (Len)), (P) += (Len))
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:275:17: note: in expansion of macro 'memset_zero'
  275 |                 memset_zero (p, _delta);                                      \
      |                 ^~~~~~~~~~~
strftime.c:662:11: note: in expansion of macro 'add'
  662 |           add (1, *p = *f);
      |           ^~~
strftime.c:257:33: warning: 'memset' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overflow-Wstringop-overflow=]8;;]
  257 | #  define memset_space(P, Len) (memset ((P), ' ', (Len)), (P) += (Len))
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
strftime.c:277:17: note: in expansion of macro 'memset_space'
  277 |      
[command output truncated]
-I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT join.o -MD -MP -MF ".deps/join.Tpo" \
  -c -o join.o `test -f 'join.c' || echo './'`join.c; \
then mv ".deps/join.Tpo" ".deps/join.Po"; \
else rm -f ".deps/join.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o join  join.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT md5sum.o -MD -MP -MF ".deps/md5sum.Tpo" \
  -c -o md5sum.o `test -f 'md5sum.c' || echo './'`md5sum.c; \
then mv ".deps/md5sum.Tpo" ".deps/md5sum.Po"; \
else rm -f ".deps/md5sum.Tpo"; exit 1; \
fi
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT md5.o -MD -MP -MF ".deps/md5.Tpo" \
  -c -o md5.o `test -f 'md5.c' || echo './'`md5.c; \
then mv ".deps/md5.Tpo" ".deps/md5.Po"; \
else rm -f ".deps/md5.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o md5sum  md5sum.o md5.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT nl.o -MD -MP -MF ".deps/nl.Tpo" \
  -c -o nl.o `test -f 'nl.c' || echo './'`nl.c; \
then mv ".deps/nl.Tpo" ".deps/nl.Po"; \
else rm -f ".deps/nl.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o nl  nl.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT od.o -MD -MP -MF ".deps/od.Tpo" \
  -c -o od.o `test -f 'od.c' || echo './'`od.c; \
then mv ".deps/od.Tpo" ".deps/od.Po"; \
else rm -f ".deps/od.Tpo"; exit 1; \
fi
gcc  -D_FORTIFY_SOURCE=0   -o od  od.o ../lib/libfetish.a  ../lib/libfetish.a 
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT paste.o -MD -MP -MF ".deps/paste.Tpo" \
  -c -o paste.o `test -f 'paste.c' || echo './'`paste.c; \
then mv ".deps/paste.Tpo" ".deps/paste.Po"; \
else rm -f ".deps/paste.Tpo"; exit 1; \
fi
paste.c:56:13: error: storage size of 'dummy_closed' isn't known
   56 | static FILE dummy_closed;
      |             ^~~~~~~~~~~~
paste.c:60:13: error: storage size of 'dummy_endlist' isn't known
   60 | static FILE dummy_endlist;
      |             ^~~~~~~~~~~~~
make[3]: *** [Makefile:1263: paste.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
95 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && sed -i '56d;60d' src/paste.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT paste.o -MD -MP -MF ".deps/paste.Tpo" \
  -c -o paste.o `test -f 'paste.c' || echo './'`paste.c; \
then mv ".deps/paste.Tpo" ".deps/paste.Po"; \
else rm -f ".deps/paste.Tpo"; exit 1; \
fi
paste.c: In function 'paste_parallel':
paste.c:60:19: error: 'dummy_endlist' undeclared (first use in this function)
   60 | #define ENDLIST (&dummy_endlist)
      |                   ^~~~~~~~~~~~~
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:19: note: each undeclared identifier is reported only once for each function it appears in
   60 | #define ENDLIST (&dummy_endlist)
      |                   ^~~~~~~~~~~~~
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:57:18: error: 'dummy_closed' undeclared (first use in this function)
   57 | #define CLOSED (&dummy_closed)
      |                  ^~~~~~~~~~~~
paste.c:223:29: note: in expansion of macro 'CLOSED'
  223 |           if (fileptr[i] != CLOSED)
      |                             ^~~~~~
make[3]: *** [Makefile:1263: paste.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
45 lines
ASSISTANT
compile-bench> cd coreutils-5.0/src && sed -i 's/static FILE dummy_closed/static char dummy_closed[1]/; s/static FILE dummy_endlist/static char dummy_endlist[1]/; s/#define CLOSED (&dummy_closed)/#define CLOSED (FILE *) &dummy_closed /; s/#define ENDLIST (&dummy_endlist)/#define ENDLIST (FILE *) &dummy_endlist /' paste.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT paste.o -MD -MP -MF ".deps/paste.Tpo" \
  -c -o paste.o `test -f 'paste.c' || echo './'`paste.c; \
then mv ".deps/paste.Tpo" ".deps/paste.Po"; \
else rm -f ".deps/paste.Tpo"; exit 1; \
fi
paste.c: In function 'paste_parallel':
paste.c:60:26: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                          ^
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:27: error: 'define' undeclared (first use in this function)
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                           ^~~~~~
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:27: note: each undeclared identifier is reported only once for each function it appears in
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                           ^~~~~~
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:34: error: expected ';' before 'ENDLIST'
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                                  ^~~~~~~
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:26: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                          ^
paste.c:220:33: note: in expansion of macro 'ENDLIST'
  220 |       for (i = 0; fileptr[i] != ENDLIST && files_open; i++)
      |                                 ^~~~~~~
paste.c:60:34: error: expected ';' before 'ENDLIST'
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                                  ^~~~~~~
paste.c:220:33: note: in expansion of macro 'ENDLIST'
  220 |       for (i = 0; fileptr[i] != ENDLIST && files_open; i++)
      |                                 ^~~~~~~
paste.c:57:25: error: stray '#' in 
[command output truncated]
:33: error: expected ')' before 'CLOSED'
   57 | #define CLOSED (FILE *) #define CLOSED (&dummy_closed)dummy_closed
      |                                 ^~~~~~
paste.c:246:33: note: in expansion of macro 'CLOSED'
  246 |               if (fileptr[i] != CLOSED)
      |                                 ^~~~~~
paste.c:246:18: note: to match this '('
  246 |               if (fileptr[i] != CLOSED)
      |                  ^
paste.c:57:25: error: stray '#' in program
   57 | #define CLOSED (FILE *) #define CLOSED (&dummy_closed)dummy_closed
      |                         ^
paste.c:261:32: note: in expansion of macro 'CLOSED'
  261 |                   fileptr[i] = CLOSED;
      |                                ^~~~~~
paste.c:57:33: error: expected ';' before 'CLOSED'
   57 | #define CLOSED (FILE *) #define CLOSED (&dummy_closed)dummy_closed
      |                                 ^~~~~~
paste.c:261:32: note: in expansion of macro 'CLOSED'
  261 |                   fileptr[i] = CLOSED;
      |                                ^~~~~~
paste.c:60:26: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                          ^
paste.c:265:37: note: in expansion of macro 'ENDLIST'
  265 |               if (fileptr[i + 1] == ENDLIST)
      |                                     ^~~~~~~
paste.c:60:34: error: expected ')' before 'ENDLIST'
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                                  ^~~~~~~
paste.c:265:37: note: in expansion of macro 'ENDLIST'
  265 |               if (fileptr[i + 1] == ENDLIST)
      |                                     ^~~~~~~
paste.c:265:18: note: to match this '('
  265 |               if (fileptr[i + 1] == ENDLIST)
      |                  ^
paste.c:60:26: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                          ^
paste.c:296:37: note: in expansion of macro 'ENDLIST'
  296 |               if (fileptr[i + 1] != ENDLIST)
      |                                     ^~~~~~~
paste.c:60:34: error: expected ')' before 'ENDLIST'
   60 | #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlist
      |                                  ^~~~~~~
paste.c:296:37: note: in expansion of macro 'ENDLIST'
  296 |               if (fileptr[i + 1] != ENDLIST)
      |                                     ^~~~~~~
paste.c:296:18: note: to match this '('
  296 |               if (fileptr[i + 1] != ENDLIST)
      |                  ^
make[3]: *** [Makefile:1263: paste.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
116 lines
ASSISTANT
compile-bench> cd coreutils-5.0/src && sed -i 's/static FILE dummy_closed/static char dummy_closed[1]/; s/static FILE dummy_endlist/static char dummy_endlist[1]/; s/#define CLOSED (&dummy_closed)/#define CLOSED (FILE *) &dummy_closed/g; s/#define ENDLIST (&dummy_endlist)/#define ENDLIST (FILE *) &dummy_endlist/g' paste.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT paste.o -MD -MP -MF ".deps/paste.Tpo" \
  -c -o paste.o `test -f 'paste.c' || echo './'`paste.c; \
then mv ".deps/paste.Tpo" ".deps/paste.Po"; \
else rm -f ".deps/paste.Tpo"; exit 1; \
fi
paste.c: In function 'paste_parallel':
paste.c:60:26: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                          ^
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:27: error: 'define' undeclared (first use in this function)
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                           ^~~~~~
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:27: note: each undeclared identifier is reported only once for each function it appears in
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                           ^~~~~~
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:34: error: expected ';' before 'ENDLIST'
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                                  ^~~~~~~
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:51: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                                                   ^
paste.c:204:25: note: in expansion of macro 'ENDLIST'
  204 |   fileptr[files_open] = ENDLIST;
      |                         ^~~~~~~
paste.c:60:26: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                          ^
paste.c:220:3
[command output truncated]
:261:32: note: in expansion of macro 'CLOSED'
  261 |                   fileptr[i] = CLOSED;
      |                                ^~~~~~
paste.c:60:26: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                          ^
paste.c:265:37: note: in expansion of macro 'ENDLIST'
  265 |               if (fileptr[i + 1] == ENDLIST)
      |                                     ^~~~~~~
paste.c:60:34: error: expected ')' before 'ENDLIST'
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                                  ^~~~~~~
paste.c:265:37: note: in expansion of macro 'ENDLIST'
  265 |               if (fileptr[i + 1] == ENDLIST)
      |                                     ^~~~~~~
paste.c:265:18: note: to match this '('
  265 |               if (fileptr[i + 1] == ENDLIST)
      |                  ^
paste.c:60:51: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                                                   ^
paste.c:265:37: note: in expansion of macro 'ENDLIST'
  265 |               if (fileptr[i + 1] == ENDLIST)
      |                                     ^~~~~~~
paste.c:60:26: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                          ^
paste.c:296:37: note: in expansion of macro 'ENDLIST'
  296 |               if (fileptr[i + 1] != ENDLIST)
      |                                     ^~~~~~~
paste.c:60:34: error: expected ')' before 'ENDLIST'
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                                  ^~~~~~~
paste.c:296:37: note: in expansion of macro 'ENDLIST'
  296 |               if (fileptr[i + 1] != ENDLIST)
      |                                     ^~~~~~~
paste.c:296:18: note: to match this '('
  296 |               if (fileptr[i + 1] != ENDLIST)
      |                  ^
paste.c:60:51: error: stray '#' in program
   60 | #define ENDLIST (FILE *) #define ENDLIST (FILE *) #define ENDLIST (&dummy_endlist)dummy_endlistdummy_endlist
      |                                                   ^
paste.c:296:37: note: in expansion of macro 'ENDLIST'
  296 |               if (fileptr[i + 1] != ENDLIST)
      |                                     ^~~~~~~
make[3]: *** [Makefile:1263: paste.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
107 lines
ASSISTANT
compile-bench> cd coreutils-5.0 && rm src/paste.c && cd .. && tar -xzf coreutils.tar.gz coreutils-5.0/src/paste.c && cd coreutils-5.0/src && (echo '#include <stdio.h>' ; cat paste.c) > temp && mv temp paste.c && sed -i 's/static FILE dummy_closed/static char dummy_closed[1]/' paste.c && sed -i 's/static FILE dummy_endlist/static char dummy_endlist[1]/' paste.c && sed -i 's/#define CLOSED (&dummy_closed)/#define CLOSED (FILE*) &dummy_closed/' paste.c && sed -i 's/# define ENDLIST (&dummy_endlist)/#define ENDLIST (FILE*) &dummy_endlist/' paste.c
[empty output]
ASSISTANT
compile-bench> cd coreutils-5.0 && make
make  all-recursive
make[1]: Entering directory '/home/peter/coreutils-5.0'
Making all in lib
make[2]: Entering directory '/home/peter/coreutils-5.0/lib'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/peter/coreutils-5.0/lib'
make[2]: Leaving directory '/home/peter/coreutils-5.0/lib'
Making all in src
make[2]: Entering directory '/home/peter/coreutils-5.0/src'
make  all-am
make[3]: Entering directory '/home/peter/coreutils-5.0/src'
if gcc -DLOCALEDIR=\"/home/peter/result/share/locale\" -DSHAREDIR=\"/home/peter/result/share\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib    -D_FORTIFY_SOURCE=0 -MT paste.o -MD -MP -MF ".deps/paste.Tpo" \
  -c -o paste.o `test -f 'paste.c' || echo './'`paste.c; \
then mv ".deps/paste.Tpo" ".deps/paste.Po"; \
else rm -f ".deps/paste.Tpo"; exit 1; \
fi
paste.c: In function 'paste_parallel':
paste.c:206:23: error: assignment to 'FILE *' from incompatible pointer type 'char (*)[1]' [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types]8;;]
  206 |   fileptr[files_open] = ENDLIST;
      |                       ^
paste.c:222:30: warning: comparison of distinct pointer types lacks a cast [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wcompare-distinct-pointer-types-Wcompare-distinct-pointer-types]8;;]
  222 |       for (i = 0; fileptr[i] != ENDLIST && files_open; i++)
      |                              ^~
paste.c:58:24: error: stray '#' in program
   58 | #define CLOSED (FILE*) #define CLOSED (&dummy_closed)dummy_closed
      |                        ^
paste.c:225:29: note: in expansion of macro 'CLOSED'
  225 |           if (fileptr[i] != CLOSED)
      |                             ^~~~~~
paste.c:58:25: error: 'define' undeclared (first use in this function)
   58 | #define CLOSED (FILE*) #define CLOSED (&dummy_closed)dummy_closed
      |                         ^~~~~~
paste.c:225:29: note: in expansion of macro 'CLOSED'
  225 |           if (fileptr[i] != CLOSED)
      |                             ^~~~~~
paste.c:58:25: note: each undeclared identifier is reported only once for each function it appears in
   58 | #define CLOSED (FILE*) #define CLOSED (&dummy_closed)dummy_closed
      |                         ^~~~~~
paste.c:225:29: note: in expansion of macro 'CLOSED'
  225 |           if (fileptr[i] != CLOSED)
      |                             ^~~~~~
paste.c:58:32: error: expected ')' before 'CLOSED'
   58 | #define CLOSED (FILE*) #define CLOSED (&dummy_closed)dummy_closed
      |                                ^~~~~~
paste.c:225:29: note: in expansion of macro 'CLOSED'
  225 |           if (fileptr[i] != CLOSED)
      |                             ^~~~~~
paste.c:225:14: note: to match this '('
  225 |           if (fileptr[i] != CLOSED)
      |              ^
paste.c:58:24: error: stray '#' in program
   58 | #define CLOSED (FILE*) #define CLOSED (&dummy_closed)dummy_closed
      |                        ^
paste.c:248:33: note: in expansion of macro 'CLOSED'
  248 |               if (fileptr[i] != CLOSED)
      |                                 ^~~~~~
paste.c:58:32: error: expected ')' before 'CLOSED'
   58 | #define CLOSED (FILE*) #define CLOSED (&dummy_closed)dummy_closed
      |                                ^~~~~~
paste.c:248:33: note: in expansion of macro 'CLOSED'
  248 |               if (fileptr[i] != CLOSED)
      |                                 ^~~~~~
paste.c:248:18: note: to match this '('
  248 |               if (fileptr[i] != CLOSED)
      |                  ^
paste.c:58:24: error: stray '#' in program
   58 | #define CLOSED (FILE*) #define CLOSED (&dummy_closed)dummy_closed
      |                        ^
paste.c:263:32: note: in expansion of macro 'CLOSED'
  263 |                   fileptr[i] = CLOSED;
      |                                ^~~~~~
paste.c:58:32: error: expected ';' before 'CLOSED'
   58 | #define CLOSED (FILE*) #define CLOSED (&dummy_closed)dummy_closed
      |                                ^~~~~~
paste.c:263:32: note: in expansion of macro 'CLOSED'
  263 |                   fileptr[i] = CLOSED;
      |                                ^~~~~~
paste.c:267:34: warning: comparison of distinct pointer types lacks a cast [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wcompare-distinct-pointer-types-Wcompare-distinct-pointer-types]8;;]
  267 |               if (fileptr[i + 1] == ENDLIST)
      |                                  ^~
paste.c:298:34: warning: comparison of distinct pointer types lacks a cast [ttps://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wcompare-distinct-pointer-types-Wcompare-distinct-pointer-types]8;;]
  298 |               if (fileptr[i + 1] != ENDLIST)
      |                                  ^~
make[3]: *** [Makefile:1263: paste.o] Error 1
make[3]: Leaving directory '/home/peter/coreutils-5.0/src'
make[2]: *** [Makefile:815: all] Error 2
make[2]: Leaving directory '/home/peter/coreutils-5.0/src'
make[1]: *** [Makefile:244: all-recursive] Error 1
make[1]: Leaving directory '/home/peter/coreutils-5.0'
make: *** [Makefile:199: all] Error 2
93 lines
ASSISTANT
Task failed!
Error
task failed: sha1sum binary does not exist
Checks failed:
sha1sum binary does not exist
basename missing at /home/peter/result/basename or not executable
cat missing at /home/peter/result/cat or not executable
chgrp missing at /home/peter/result/chgrp or not executable
chmod missing at /home/peter/result/chmod or not executable
chown missing at /home/peter/result/chown or not executable
chroot missing at /home/peter/result/chroot or not executable
cksum missing at /home/peter/result/cksum or not executable
comm missing at /home/peter/result/comm or not executable
cp missing at /home/peter/result/cp or not executable
csplit missing at /home/peter/result/csplit or not executable
cut missing at /home/peter/result/cut or not executable
date missing at /home/peter/result/date or not executable
dd missing at /home/peter/result/dd or not executable
df missing at /home/peter/result/df or not executable
dir missing at /home/peter/result/dir or not executable
dircolors missing at /home/peter/result/dircolors or not executable
dirname missing at /home/peter/result/dirname or not executable
du missing at /home/peter/result/du or not executable
echo missing at /home/peter/result/echo or not executable
env missing at /home/peter/result/env or not executable
expand missing at /home/peter/result/expand or not executable
expr missing at /home/peter/result/expr or not executable
factor missing at /home/peter/result/factor or not executable
false missing at /home/peter/result/false or not executable
fmt missing at /home/peter/result/fmt or not executable
fold missing at /home/peter/result/fold or not executable
groups missing at /home/peter/result/groups or not executable
head missing at /home/peter/result/head or not executable
hostid missing at /home/peter/result/hostid or not executable
id missing at /home/peter/result/id or not executable
install missing at /home/peter/result/install or not executable
join missing at /home/peter/result/join or not executable
kill missing at /home/peter/result/kill or not executable
link missing at /home/peter/result/link or not executable
ln missing at /home/peter/result/ln or not executable
logname missing at /home/peter/result/logname or not executable
ls missing at /home/peter/result/ls or not executable
md5sum missing at /home/peter/result/md5sum or not executable
mkdir missing at /home/peter/result/mkdir or not executable
mkfifo missing at /home/peter/result/mkfifo or not executable
mknod missing at /home/p
pathchk missing at /home/peter/result/pathchk or not executable
pinky missing at /home/peter/result/pinky or not executable
pr missing at /home/peter/result/pr or not executable
printenv missing at /home/peter/result/printenv or not executable
printf missing at /home/peter/result/printf or not executable
ptx missing at /home/peter/result/ptx or not executable
pwd missing at /home/peter/result/pwd or not executable
readlink missing at /home/peter/result/readlink or not executable
rm missing at /home/peter/result/rm or not executable
rmdir missing at /home/peter/result/rmdir or not executable
seq missing at /home/peter/result/seq or not executable
sha1sum missing at /home/peter/result/sha1sum or not executable
shred missing at /home/peter/result/shred or not executable
sleep missing at /home/peter/result/sleep or not executable
sort missing at /home/peter/result/sort or not executable
split missing at /home/peter/result/split or not executable
stat missing at /home/peter/result/stat or not executable
stty missing at /home/peter/result/stty or not executable
sum missing at /home/peter/result/sum or not executable
sync missing at /home/peter/result/sync or not executable
tac missing at /home/peter/result/tac or not executable
tail missing at /home/peter/result/tail or not executable
tee missing at /home/peter/result/tee or not executable
test missing at /home/peter/result/test or not executable
touch missing at /home/peter/result/touch or not executable
tr missing at /home/peter/result/tr or not executable
true missing at /home/peter/result/true or not executable
tsort missing at /home/peter/result/tsort or not executable
tty missing at /home/peter/result/tty or not executable
uname missing at /home/peter/result/uname or not executable
unexpand missing at /home/peter/result/unexpand or not executable
uniq missing at /home/peter/result/uniq or not executable
unlink missing at /home/peter/result/unlink or not executable
uptime missing at /home/peter/result/uptime or not executable
users missing at /home/peter/result/users or not executable
vdir missing at /home/peter/result/vdir or not executable
wc missing at /home/peter/result/wc or not executable
who missing at /home/peter/result/who or not executable
whoami missing at /home/peter/result/whoami or not executable
yes missing at /home/peter/result/yes or not executable
sha1sum version mismatch: expected 5.0 got
sha1sum output mismatch: expected 648a6a6ffffdaa0badb23b8baf90b6168dd16b3a got