Package: src:ohcount Version: 4.0.0-5 Severity: serious Tags: ftbfs forky sid
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202510/ 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 cannot 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:ohcount, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --buildsystem=ruby --with ruby debian/rules override_dh_auto_clean make[1]: Entering directory '/<<PKGBUILDDIR>>' dh_auto_clean -O--buildsystem=ruby dh_ruby --clean W: XS-Ruby-Versions is deprecated, and will be ignored ./build clean # Build script for Ohcount. # Written by Mitchell Foral. mitchell<att>caladbolg.net. # Options # Change these for your system configuration. if [ `uname` != "Darwin" ] then [... snipped ...] Compiling dylan.rl Compiling ebuild.rl Compiling eiffel.rl Compiling erlang.rl Compiling exheres.rl Compiling factor.rl Compiling forth.rl Compiling fortranfixed.rl Compiling fortranfree.rl Compiling fsharp.rl Compiling glsl.rl Compiling golang.rl Compiling grace.rl Compiling groovy.rl Compiling haml.rl Compiling haskell.rl Compiling haxe.rl Compiling html.rl Compiling idl_pvwave.rl Compiling jam.rl Compiling java.rl Compiling javascript.rl Compiling jsp.rl Compiling kotlin.rl Compiling limbo.rl Compiling lisp.rl Compiling livecode.rl Compiling logtalk.rl Compiling lua.rl Compiling makefile.rl Compiling mathematica.rl Compiling matlab.rl Compiling metafont.rl Compiling metapost.rl Compiling metapost_with_tex.rl Compiling modelica.rl Compiling modula2.rl Compiling modula3.rl Compiling mxml.rl Compiling nix.rl Compiling nsis.rl Compiling oberon.rl Compiling objective_c.rl Compiling objective_j.rl Compiling ocaml.rl Compiling octave.rl Compiling pascal.rl Compiling perl.rl Compiling php.rl Compiling phphtml.rl Compiling pike.rl Compiling postscript.rl Compiling prolog.rl Compiling puppet.rl Compiling python.rl Compiling r.rl Compiling rebol.rl Compiling rexx.rl Compiling rhtml.rl Compiling ruby.rl Compiling rust.rl Compiling scala.rl Compiling scilab.rl Compiling shell.rl Compiling smalltalk.rl Compiling sql.rl Compiling stratego.rl Compiling structured_basic.rl Compiling swift.rl Compiling tcl.rl Compiling tex.rl Compiling tex_dtx.rl Compiling unrealscript.rl Compiling vb_aspx.rl Compiling vhdl.rl Compiling vim.rl Compiling visual_basic.rl Compiling xaml.rl Compiling xml.rl Compiling xmlschema.rl Compiling xslt.rl Building src/parser.c (will take a while) Building Ohcount src/sourcefile.c: In function âohcount_sourcefile_newâ: src/sourcefile.c:27:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 27 | strncpy(sourcefile->filepath, filepath, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:25:16: note: length computed here 25 | int length = strlen(filepath); | ^~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_set_diskpathâ: src/sourcefile.c:67:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 67 | strncpy(sourcefile->diskpath, diskpath, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:65:14: note: length computed here 65 | int size = strlen(diskpath); | ^~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_set_contentsâ: src/sourcefile.c:77:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 77 | strncpy(sourcefile->contents, contents, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:75:14: note: length computed here 75 | int size = strlen(contents); | ^~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_list_add_directoryâ: src/sourcefile.c:373:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 373 | strncpy(filepath, directory, strlen(directory)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:373:3: note: length computed here 373 | strncpy(filepath, directory, strlen(directory)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:384:7: warning: âstrncpyâ specified bound depends on the length of the source argument [-Wstringop-truncation] 384 | strncpy(f_p, (const char *)file->d_name, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:383:20: note: length computed here 383 | int length = strlen(file->d_name); | ^~~~~~~~~~~~~~~~~~~~ src/detector.c: In function âohcount_is_binary_filenameâ: src/detector.c:1090:5: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1090 | strncpy(lowerext, p, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/detector.c:1085:18: note: length computed here 1085 | int length = strlen(p); | ^~~~~~~~~ Building test suite In file included from test/unit/all_tests.c:7: test/unit/license_test.h: In function âvery_long_file_testâ: test/unit/license_test.h:70:9: warning: âstrncpyâ output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation] 70 | strncpy(a, "int = 1;\n", strlen("int = 1;\n")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from test/unit/all_tests.c:10: test/unit/sourcefile_test.h: In function âtest_sourcefile_diff_very_longâ: test/unit/sourcefile_test.h:138:9: warning: âstrncpyâ output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation] 138 | strncpy(a, "int = 1;\n", strlen("int = 1;\n")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test/unit/license_test.h: In function âsrc_vs_expected_testsâ: test/unit/license_test.h:14:3: warning: âstrncpyâ output truncated before terminating nul copying 16 bytes from a string of the same length [-Wstringop-truncation] 14 | strncpy(src, src_licenses, strlen(src_licenses)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test/unit/license_test.h:19:3: warning: âstrncpyâ output truncated before terminating nul copying 21 bytes from a string of the same length [-Wstringop-truncation] 19 | strncpy(expected, expected_licenses, strlen(expected_licenses)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from test/unit/all_tests.c:9: test/unit/parser_test.h: In function âtest_parser_verify_parsesâ: test/unit/parser_test.h:205:3: warning: âstrncpyâ output truncated before terminating nul copying 11 bytes from a string of the same length [-Wstringop-truncation] 205 | strncpy(src, src_dir, strlen(src_dir)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test/unit/parser_test.h:210:3: warning: âstrncpyâ output truncated before terminating nul copying 16 bytes from a string of the same length [-Wstringop-truncation] 210 | strncpy(expected, expected_dir, strlen(expected_dir)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test/unit/license_test.h: In function âsrc_vs_expected_testsâ: test/unit/license_test.h:32:9: warning: âstrncpyâ specified bound depends on the length of the source argument [-Wstringop-truncation] 32 | strncpy(s_p, (const char *)file->d_name, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test/unit/license_test.h:31:18: note: length computed here 31 | length = strlen(file->d_name); | ^~~~~~~~~~~~~~~~~~~~ test/unit/parser_test.h: In function âtest_parser_verify_parsesâ: test/unit/parser_test.h:220:9: warning: âstrncpyâ specified bound depends on the length of the source argument [-Wstringop-truncation] 220 | strncpy(s_p, (const char *)file->d_name, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test/unit/parser_test.h:219:22: note: length computed here 219 | int length = strlen(file->d_name); | ^~~~~~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_newâ: src/sourcefile.c:27:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 27 | strncpy(sourcefile->filepath, filepath, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:25:16: note: length computed here 25 | int length = strlen(filepath); | ^~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_set_diskpathâ: src/sourcefile.c:67:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 67 | strncpy(sourcefile->diskpath, diskpath, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:65:14: note: length computed here 65 | int size = strlen(diskpath); | ^~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_set_contentsâ: src/sourcefile.c:77:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 77 | strncpy(sourcefile->contents, contents, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:75:14: note: length computed here 75 | int size = strlen(contents); | ^~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_list_add_directoryâ: src/sourcefile.c:373:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 373 | strncpy(filepath, directory, strlen(directory)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:373:3: note: length computed here 373 | strncpy(filepath, directory, strlen(directory)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:384:7: warning: âstrncpyâ specified bound depends on the length of the source argument [-Wstringop-truncation] 384 | strncpy(f_p, (const char *)file->d_name, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:383:20: note: length computed here 383 | int length = strlen(file->d_name); | ^~~~~~~~~~~~~~~~~~~~ src/detector.c: In function âohcount_is_binary_filenameâ: src/detector.c:1090:5: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1090 | strncpy(lowerext, p, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/detector.c:1085:18: note: length computed here 1085 | int length = strlen(p); | ^~~~~~~~~ Running test suite disabled test suite, does not work Generating Ruby bindings for x86_64-linux-gnu_debian gcc -fPIC -g -O3 -Wall -Wno-pointer-to-int-cast -Wno-parentheses -I -L -shared ruby/ohcount_wrap.c src/sourcefile.c src/detector.c src/licenses.c src/parser.o src/loc.c src/log.c src/diff.c src/parsed_language.c src/hash/language_hash.c -o ruby/x86_64-linux-gnu_debian/ohcount.so -I/usr/include/ruby-3.3.0 -I/usr/include/ruby-3.3.0/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu/ruby-3.3.0 -lpcre2-8 -lmagic ruby/ohcount_wrap.c: In function ânew_SourceFileListItemâ: ruby/ohcount_wrap.c:2330:9: warning: ârb_iterateâ is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations] 2330 | rb_iterate(rb_each, val, SourceFileListItem_rb_add_directory, (VALUE)list); | ^~~~~~~~~~ In file included from /usr/include/ruby-3.3.0/ruby/ruby.h:41, from /usr/include/ruby-3.3.0/ruby.h:38, from ruby/ohcount_wrap.c:1008: /usr/include/ruby-3.3.0/ruby/internal/iterator.h:283:7: note: declared here 283 | VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2); | ^~~~~~~~~~ ruby/ohcount_wrap.c:2333:9: warning: ârb_iterateâ is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations] 2333 | rb_iterate(rb_each, val, SourceFileListItem_rb_add_file, (VALUE)list); | ^~~~~~~~~~ /usr/include/ruby-3.3.0/ruby/internal/iterator.h:283:7: note: declared here 283 | VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2); | ^~~~~~~~~~ ruby/ohcount_wrap.c: In function â_wrap_new_SourceFileâ: ruby/ohcount_wrap.c:4713:16: error: initialization of âVALUEâ {aka âlong unsigned intâ} from âvoid *â makes integer from pointer without a cast [-Wint-conversion] 4713 | VALUE arg2 = NULL ; | ^~~~ ruby/ohcount_wrap.c: In function â_wrap_new_SourceFileListâ: ruby/ohcount_wrap.c:4866:16: error: initialization of âVALUEâ {aka âlong unsigned intâ} from âvoid *â makes integer from pointer without a cast [-Wint-conversion] 4866 | VALUE arg1 = NULL ; | ^~~~ src/sourcefile.c: In function âohcount_sourcefile_newâ: src/sourcefile.c:27:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 27 | strncpy(sourcefile->filepath, filepath, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:25:16: note: length computed here 25 | int length = strlen(filepath); | ^~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_set_diskpathâ: src/sourcefile.c:67:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 67 | strncpy(sourcefile->diskpath, diskpath, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:65:14: note: length computed here 65 | int size = strlen(diskpath); | ^~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_set_contentsâ: src/sourcefile.c:77:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 77 | strncpy(sourcefile->contents, contents, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:75:14: note: length computed here 75 | int size = strlen(contents); | ^~~~~~~~~~~~~~~~ src/sourcefile.c: In function âohcount_sourcefile_list_add_directoryâ: src/sourcefile.c:373:3: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 373 | strncpy(filepath, directory, strlen(directory)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:373:3: note: length computed here 373 | strncpy(filepath, directory, strlen(directory)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:384:7: warning: âstrncpyâ specified bound depends on the length of the source argument [-Wstringop-truncation] 384 | strncpy(f_p, (const char *)file->d_name, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sourcefile.c:383:20: note: length computed here 383 | int length = strlen(file->d_name); | ^~~~~~~~~~~~~~~~~~~~ src/detector.c: In function âohcount_is_binary_filenameâ: src/detector.c:1090:5: warning: âstrncpyâ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1090 | strncpy(lowerext, p, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/detector.c:1085:18: note: length computed here 1085 | int length = strlen(p); | ^~~~~~~~~ make[1]: *** [debian/rules:12: override_dh_install] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:4: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

