DEBUG: Executing shell function do_compile
NOTE: make -j 16 -l 75
make  all-recursive
make[1]: Entering directory 'TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build'
Making all in tilde
make[2]: Entering directory 'TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build/tilde'
i686-poky-linux-musl-gcc  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../which-2.21/tilde -I..     -O2 -g -fcanon-prefix-map  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -pipe -c -o tilde.o ../../which-2.21/tilde/tilde.c
i686-poky-linux-musl-gcc  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../which-2.21/tilde -I..     -O2 -g -fcanon-prefix-map  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -pipe -c -o shell.o ../../which-2.21/tilde/shell.c
../../which-2.21/tilde/tilde.c: In function 'tilde_find_prefix':
../../which-2.21/tilde/tilde.c:128:1: warning: old-style function definition [-Wold-style-definition]
  128 | tilde_find_prefix (string, len)
      | ^~~~~~~~~~~~~~~~~
../../which-2.21/tilde/tilde.c: In function 'tilde_find_suffix':
../../which-2.21/tilde/tilde.c:163:1: warning: old-style function definition [-Wold-style-definition]
  163 | tilde_find_suffix (string)
      | ^~~~~~~~~~~~~~~~~
../../which-2.21/tilde/tilde.c: In function 'tilde_expand':
../../which-2.21/tilde/tilde.c:192:1: warning: old-style function definition [-Wold-style-definition]
  192 | tilde_expand (string)
      | ^~~~~~~~~~~~
../../which-2.21/tilde/tilde.c: In function 'isolate_tilde_prefix':
../../which-2.21/tilde/tilde.c:266:1: warning: old-style function definition [-Wold-style-definition]
  266 | isolate_tilde_prefix (fname, lenp)
      | ^~~~~~~~~~~~~~~~~~~~
../../which-2.21/tilde/tilde.c: In function 'glue_prefix_and_suffix':
../../which-2.21/tilde/tilde.c:322:1: warning: old-style function definition [-Wold-style-definition]
  322 | glue_prefix_and_suffix (prefix, suffix, suffind)
      | ^~~~~~~~~~~~~~~~~~~~~~
../../which-2.21/tilde/tilde.c: In function 'tilde_expand_word':
../../which-2.21/tilde/tilde.c:343:1: warning: old-style function definition [-Wold-style-definition]
  343 | tilde_expand_word (filename)
      | ^~~~~~~~~~~~~~~~~
../../which-2.21/tilde/shell.c: In function 'get_env_value':
../../which-2.21/tilde/shell.c:53:1: warning: old-style function definition [-Wold-style-definition]
   53 | get_env_value (varname)
      | ^~~~~~~~~~~~~
rm -f libtilde.a
i686-poky-linux-musl-gcc-ar cr libtilde.a tilde.o shell.o 
i686-poky-linux-musl-gcc-ranlib libtilde.a
make[2]: Leaving directory 'TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build/tilde'
Making all in .
make[2]: Entering directory 'TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build'
i686-poky-linux-musl-gcc  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot -DHAVE_CONFIG_H -I. -I../which-2.21     -O2 -g -fcanon-prefix-map  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -pipe -c -o getopt.o ../which-2.21/getopt.c
i686-poky-linux-musl-gcc  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot -DHAVE_CONFIG_H -I. -I../which-2.21     -O2 -g -fcanon-prefix-map  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -pipe -c -o getopt1.o ../which-2.21/getopt1.c
i686-poky-linux-musl-gcc  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot -DHAVE_CONFIG_H -I. -I../which-2.21     -O2 -g -fcanon-prefix-map  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -pipe -c -o bash.o ../which-2.21/bash.c
i686-poky-linux-musl-gcc  -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot -DHAVE_CONFIG_H -I. -I../which-2.21     -O2 -g -fcanon-prefix-map  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/which-2.21=/usr/src/debug/which/2.21  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build=/usr/src/debug/which/2.21  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot=  -fdebug-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -fmacro-prefix-map=TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot-native=  -pipe -c -o which.o ../which-2.21/which.c
In file included from ../which-2.21/which.c:22:
../which-2.21/getopt.h:106:12: error: conflicting types for 'getopt'; have 'int(void)'
  106 | extern int getopt ();
      |            ^~~~~~
In file included from ../which-2.21/sys.h:21,
                 from ../which-2.21/which.c:19:
TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/recipe-sysroot/usr/include/unistd.h:127:5: note: previous declaration of 'getopt' with type 'int(int,  char * const*, const char *)'
  127 | int getopt(int, char * const [], const char *);
      |     ^~~~~~
make[2]: *** [Makefile:549: which.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory 'TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build'
make[1]: *** [Makefile:768: all-recursive] Error 1
make[1]: Leaving directory 'TOPDIR/tmp/work/core2-32-poky-linux-musl/which/2.21/build'
make: *** [Makefile:426: all] Error 2
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.

Error details

Submitted on:
21/03/25 10:45
Error type:
Recipe
Task:
do_compile
Recipe:
which
Recipe version:
2.21-r0
Machine:
qemux86
Distro:
poky
Build system:
x86_64-linux
Target system:
i686-poky-linux-musl
Host distro:
debian-12/debian-12
Branch:
kraj/gcc-15
Commit:
1d2cf956cff10a94701b469e4c002113613ec3bf
Build:
#202679
Submitter:
yp-ab-debian12-vk-4
Link back:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/6/builds/1246
Similar errors:
3
Open a bug