[Debian-lego-team] Bug#1114065: binutils-h8300-hms: FTBFS: ../../libiberty/getpwd.c:44:14: error: conflicting types for 'getwd'; have 'char *(void)'
Santiago Vila
sanvila at debian.org
Fri Sep 5 19:15:41 BST 2025
Package: src:binutils-h8300-hms
Version: 2.16.1-13
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build.
Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202509/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:binutils-h8300-hms, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean -Bbuild
dh_auto_clean -O-Bbuild
dh_clean -O-Bbuild
debian/rules binary
dh binary -Bbuild
dh_update_autotools_config -O-Bbuild
debian/rules override_dh_autoreconf
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_autoreconf autoreconf -- -f -i -Wno-obsolete \
. bfd binutils etc gas gprof ld libiberty opcodes
Copying file ABOUT-NLS
Copying file ../config.rpath
Copying file ../config/gettext.m4
[... snipped ...]
checking for ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ranlib... (cached) ranlib
checking for archiver @FILE support... if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/fdmatch.c -o pic/fdmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/fdmatch.c -o fdmatch.o
../../libiberty/fdmatch.c: In function âfdmatchâ:
../../libiberty/fdmatch.c:49:5: warning: old-style function definition [-Wold-style-definition]
49 | int fdmatch (fd1, fd2)
| ^~~~~~~
@
checking for strip... strip
checking command to parse nm output from gcc object... if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/fibheap.c -o pic/fibheap.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/fibheap.c -o fibheap.o
../../libiberty/fibheap.c: In function âfibheap_compareâ:
../../libiberty/fibheap.c:77:1: warning: old-style function definition [-Wold-style-definition]
77 | fibheap_compare (heap, a, b)
| ^~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_comp_dataâ:
../../libiberty/fibheap.c:90:1: warning: old-style function definition [-Wold-style-definition]
90 | fibheap_comp_data (heap, key, data, b)
| ^~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_insertâ:
../../libiberty/fibheap.c:106:1: warning: old-style function definition [-Wold-style-definition]
106 | fibheap_insert (heap, key, data)
| ^~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_minâ:
../../libiberty/fibheap.c:135:1: warning: old-style function definition [-Wold-style-definition]
135 | fibheap_min (heap)
| ^~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_min_keyâ:
../../libiberty/fibheap.c:146:1: warning: old-style function definition [-Wold-style-definition]
146 | fibheap_min_key (heap)
| ^~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_unionâ:
../../libiberty/fibheap.c:157:1: warning: old-style function definition [-Wold-style-definition]
157 | fibheap_union (heapa, heapb)
| ^~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_extract_minâ:
../../libiberty/fibheap.c:193:1: warning: old-style function definition [-Wold-style-definition]
193 | fibheap_extract_min (heap)
| ^~~~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_replace_key_dataâ:
../../libiberty/fibheap.c:214:1: warning: old-style function definition [-Wold-style-definition]
214 | fibheap_replace_key_data (heap, node, key, data)
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_replace_dataâ:
../../libiberty/fibheap.c:256:1: warning: old-style function definition [-Wold-style-definition]
256 | fibheap_replace_data (heap, node, data)
| ^~~~~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_replace_keyâ:
../../libiberty/fibheap.c:266:1: warning: old-style function definition [-Wold-style-definition]
266 | fibheap_replace_key (heap, node, key)
| ^~~~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_delete_nodeâ:
../../libiberty/fibheap.c:278:1: warning: old-style function definition [-Wold-style-definition]
278 | fibheap_delete_node (heap, node)
| ^~~~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_deleteâ:
../../libiberty/fibheap.c:293:1: warning: old-style function definition [-Wold-style-definition]
293 | fibheap_delete (heap)
| ^~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_emptyâ:
../../libiberty/fibheap.c:304:1: warning: old-style function definition [-Wold-style-definition]
304 | fibheap_empty (heap)
| ^~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_extr_min_nodeâ:
../../libiberty/fibheap.c:312:1: warning: old-style function definition [-Wold-style-definition]
312 | fibheap_extr_min_node (heap)
| ^~~~~~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_ins_rootâ:
../../libiberty/fibheap.c:349:1: warning: old-style function definition [-Wold-style-definition]
349 | fibheap_ins_root (heap, node)
| ^~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_rem_rootâ:
../../libiberty/fibheap.c:370:1: warning: old-style function definition [-Wold-style-definition]
370 | fibheap_rem_root (heap, node)
| ^~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_consolidateâ:
../../libiberty/fibheap.c:382:1: warning: old-style function definition [-Wold-style-definition]
382 | fibheap_consolidate (heap)
| ^~~~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_linkâ:
../../libiberty/fibheap.c:430:1: warning: old-style function definition [-Wold-style-definition]
430 | fibheap_link (heap, node, parent)
| ^~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_cutâ:
../../libiberty/fibheap.c:446:1: warning: old-style function definition [-Wold-style-definition]
446 | fibheap_cut (heap, node, parent)
| ^~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibheap_cascading_cutâ:
../../libiberty/fibheap.c:459:1: warning: old-style function definition [-Wold-style-definition]
459 | fibheap_cascading_cut (heap, y)
| ^~~~~~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibnode_insert_afterâ:
../../libiberty/fibheap.c:481:1: warning: old-style function definition [-Wold-style-definition]
481 | fibnode_insert_after (a, b)
| ^~~~~~~~~~~~~~~~~~~~
../../libiberty/fibheap.c: In function âfibnode_removeâ:
../../libiberty/fibheap.c:502:1: warning: old-style function definition [-Wold-style-definition]
502 | fibnode_remove (node)
| ^~~~~~~~~~~~~~
ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/floatformat.c -o pic/floatformat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/floatformat.c -o floatformat.o
yes
checking for stdlib.h... ../../libiberty/floatformat.c: In function âfloatformat_always_validâ:
../../libiberty/floatformat.c:58:1: warning: old-style function definition [-Wold-style-definition]
58 | floatformat_always_valid (fmt, from)
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../libiberty/floatformat.c: In function âfloatformat_i387_ext_is_validâ:
../../libiberty/floatformat.c:114:1: warning: old-style function definition [-Wold-style-definition]
114 | floatformat_i387_ext_is_valid (fmt, from)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../libiberty/floatformat.c: In function âget_fieldâ:
../../libiberty/floatformat.c:223:1: warning: old-style function definition [-Wold-style-definition]
223 | get_field (data, order, total_len, start, len)
| ^~~~~~~~~
../../libiberty/floatformat.c: In function âfloatformat_to_doubleâ:
../../libiberty/floatformat.c:276:1: warning: old-style function definition [-Wold-style-definition]
276 | floatformat_to_double (fmt, from, to)
| ^~~~~~~~~~~~~~~~~~~~~
../../libiberty/floatformat.c: In function âput_fieldâ:
../../libiberty/floatformat.c:393:1: warning: old-style function definition [-Wold-style-definition]
393 | put_field (data, order, total_len, start, len, stuff_to_put)
| ^~~~~~~~~
yes
../../libiberty/floatformat.c: In function âfloatformat_from_doubleâ:
checking for string.h... ../../libiberty/floatformat.c:446:1: warning: old-style function definition [-Wold-style-definition]
446 | floatformat_from_double (fmt, from, to)
| ^~~~~~~~~~~~~~~~~~~~~~~
../../libiberty/floatformat.c: In function âfloatformat_is_validâ:
../../libiberty/floatformat.c:544:1: warning: old-style function definition [-Wold-style-definition]
544 | floatformat_is_valid (fmt, from)
| ^~~~~~~~~~~~~~~~~~~~
yes
checking for inttypes.h... yes
checking for stdint.h... if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/fnmatch.c -o pic/fnmatch.o; \
else true; fi
yes
checking for strings.h... gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/fnmatch.c -o fnmatch.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/getopt.c -o pic/getopt.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/getopt.c -o getopt.o
yes
checking for sys/stat.h... if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/getopt1.c -o pic/getopt1.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/getopt1.c -o getopt1.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/getpwd.c -o pic/getpwd.o; \
else true; fi
yes
checking for sys/types.h... gcc -c -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/getpwd.c -o getpwd.o
../../libiberty/getpwd.c:44:14: error: conflicting types for âgetwdâ; have âchar *(void)â
44 | extern char *getwd ();
| ^~~~~
In file included from /usr/include/features.h:523,
from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from ../../libiberty/getpwd.c:19:
/usr/include/x86_64-linux-gnu/bits/unistd.h:124:1: note: previous definition of âgetwdâ with type âchar *(char *)â
124 | __NTH (getwd (__fortify_clang_overload_arg (char *,, __buf)))
| ^~~~~
make[2]: *** [Makefile:610: getpwd.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build/libiberty'
yes
checking for unistd.h... make[1]: *** [Makefile:5418: all-libiberty] Error 2
make[1]: *** Waiting for unfinished jobs....
yes
checking for sys/time.h... yes
checking for sys/param.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to install libbfd... no
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking whether NLS is requested... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld... ld -m elf_x86_64
checking if the linker (ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking how to run the C preprocessor... gcc -E
checking for egrep -e... (cached) /usr/bin/grep -E
checking for ELF binary format... yes
checking for the common suffixes of directories in the library search path... lib,lib,lib64
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyPreferredLanguages... no
checking whether to use NLS... no
checking for long long... yes
checking size of long long... 8
checking size of long... 8
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for fcntl.h... yes
checking for sys/file.h... yes
checking for sys/time.h... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for fcntl... yes
checking for getpagesize... yes
checking for setitimer... yes
checking for sysconf... yes
checking for fdopen... yes
checking for getuid... yes
checking for getgid... yes
checking for strtoull... yes
checking whether strstr must be declared... no
checking whether malloc must be declared... no
checking whether realloc must be declared... no
checking whether free must be declared... no
checking whether getenv must be declared... no
checking for gcc version with buggy 64-bit support... no
checking for ftello... yes
checking for ftello64... yes
checking for fseeko... yes
checking for fseeko64... yes
checking size of off_t... 8
checking file_ptr type... BFD_HOST_64_BIT
checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for madvise... yes
checking for mprotect... yes
configure: updating cache ./config.cache
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating bfd-in3.h
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
make[1]: Leaving directory '/<<PKGBUILDDIR>>/build'
dh_auto_build: error: cd build && make -j2 returned exit code 2
make: *** [debian/rules:24: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Debian-lego-team
mailing list