[Pkg-emacsen-addons] Bug#863467: verilog-mode: FTBFS randomly on "slow" machines (failing tests)

Santiago Vila sanvila at debian.org
Sat May 27 10:17:21 UTC 2017


Package: src:verilog-mode
Version: 20161124.fd230e6-2
Severity: important

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
test -x debian/rules
mkdir -p "."
make test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf x
mkdir x
./config_rev.pl . . <verilog-mode.el >x/verilog-mode.el
sh: 1: git: not found
Can't exec "git": No such file or directory at ./config_rev.pl line 22.
Use of uninitialized value $data in pattern match (m//) at ./config_rev.pl line 23.
Use of uninitialized value $data in pattern match (m//) at ./config_rev.pl line 23.
%Warning: No git revision found, at ./config_rev.pl line 35, <STDIN> line 14497.
xemacs -batch -q -f batch-byte-compile x/verilog-mode.el
Loading /usr/share/emacs/site-lisp/debian-startup...
Loading 00debian...
Loading site-start...
Loading 00debian-vars...
Loading 50autoconf...
Compiling /<<PKGBUILDDIR>>/x/verilog-mode.el...
Loading skeleton...
While compiling toplevel forms in file /<<PKGBUILDDIR>>/x/verilog-mode.el:
  ** regexp-opt called with 3 arguments, but accepts only 1-2
While compiling verilog-define-abbrev:
  ** define-abbrev called with 6 arguments, but accepts only 2-5
While compiling verilog-mode:
  ** reference to free variable which-func-modes
While compiling the end of the data:
  ** The following functions are not known to be defined: 
    syntax-ppss, speedbar-add-supported-extension, vc-backend,
    make-temp-file, clone-buffer, dinotrace-unannotate-all,
    overlays-in, overlay-get, delete-overlay, make-overlay,
    overlay-put, overlay-start, overlay-end
Wrote /<<PKGBUILDDIR>>/x/verilog-mode.elc
Done
rm -rf e
mkdir e
./config_rev.pl . . <verilog-mode.el >e/verilog-mode.el
sh: 1: git: not found
Can't exec "git": No such file or directory at ./config_rev.pl line 22.
Use of uninitialized value $data in pattern match (m//) at ./config_rev.pl line 23.
Use of uninitialized value $data in pattern match (m//) at ./config_rev.pl line 23.
%Warning: No git revision found, at ./config_rev.pl line 35, <STDIN> line 14497.
emacs -batch -q -f batch-byte-compile e/verilog-mode.el
Loading 00debian-vars...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
./make_log.pl	
sh: 1: cvs: not found
makeinfo verilog.texinfo > verilog.info
make test_batch test_errors test_emacs test_xemacs
make[2]: Entering directory '/<<PKGBUILDDIR>>'
== test_batch
mkdir -p e/b
time ./batch_test.pl
	/bin/cp tests/autoinout.v e/b/autoinout.v
	/bin/cp tests/autoinst_lopaz.v e/b/autoinst_lopaz.v
	/bin/cp tests/autoinst_star.v e/b/autoinst_star.v
	/bin/cp tests/batch_li_parent.v e/b/batch_li_parent.v
	emacs --version
GNU Emacs 25.1.1
Copyright (C) 2016 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
	emacs --batch --no-site-file -l e/verilog-mode.elc -l ./batch_test.el e/b/autoinout.v e/b/autoinst_lopaz.v e/b/autoinst_star.v e/b/batch_li_parent.v -f verilog-batch-delete-auto
Processing /<<PKGBUILDDIR>>/e/b/autoinout.v
Processing /<<PKGBUILDDIR>>/e/b/autoinst_lopaz.v
Processing /<<PKGBUILDDIR>>/e/b/autoinst_star.v
Processing /<<PKGBUILDDIR>>/e/b/batch_li_parent.v
	emacs --batch --no-site-file -l e/verilog-mode.elc -l ./batch_test.el e/b/autoinout.v e/b/autoinst_lopaz.v e/b/autoinst_star.v e/b/batch_li_parent.v -f verilog-batch-auto
Processing /<<PKGBUILDDIR>>/e/b/autoinout.v
Processing /<<PKGBUILDDIR>>/e/b/autoinst_lopaz.v
Processing /<<PKGBUILDDIR>>/e/b/autoinst_star.v
Processing /<<PKGBUILDDIR>>/e/b/batch_li_parent.v
	emacs --batch --no-site-file -l e/verilog-mode.elc -l ./batch_test.el e/b/autoinst_lopaz.v -f verilog-batch-diff-auto
Processing /<<PKGBUILDDIR>>/e/b/autoinst_lopaz.v
	emacs --batch --no-site-file -l e/verilog-mode.elc -l ./batch_test.el e/b/autoinst_star.v -f verilog-batch-diff-auto
Processing /<<PKGBUILDDIR>>/e/b/autoinst_star.v
	emacs --batch --no-site-file -l e/verilog-mode.elc -l ./batch_test.el e/b/autoinout.v e/b/autoinst_lopaz.v e/b/autoinst_star.v e/b/batch_li_parent.v -f verilog-batch-indent
Processing /<<PKGBUILDDIR>>/e/b/autoinout.v
Indenting region...
Indenting region...done
Processing /<<PKGBUILDDIR>>/e/b/autoinst_lopaz.v
Indenting region...
Indenting region...done
Processing /<<PKGBUILDDIR>>/e/b/autoinst_star.v
Indenting region...
Indenting region...done
Processing /<<PKGBUILDDIR>>/e/b/batch_li_parent.v
Indenting region...
Indenting region...done
	diff tests_batch_ok/autoinout.v e/b/autoinout.v
	diff tests_batch_ok/autoinst_lopaz.v e/b/autoinst_lopaz.v
	diff tests_batch_ok/autoinst_star.v e/b/autoinst_star.v
	diff tests_batch_ok/batch_li_parent.v e/b/batch_li_parent.v
	emacs --batch --no-site-file -l e/verilog-mode.elc -l ./batch_test.el e/b/autoinout.v e/b/autoinst_lopaz.v e/b/autoinst_star.v e/b/batch_li_parent.v -f verilog-batch-delete-trailing-whitespace
Processing /<<PKGBUILDDIR>>/e/b/autoinout.v
Processing /<<PKGBUILDDIR>>/e/b/autoinst_lopaz.v
Processing /<<PKGBUILDDIR>>/e/b/autoinst_star.v
Processing /<<PKGBUILDDIR>>/e/b/batch_li_parent.v
	emacs --batch --no-site-file -l e/verilog-mode.elc -l ./batch_prof.el
Scanning batch_prof_1.v cache=batch_prof_1.v cachetick=nil tick=7
Scanning... done
Scanning batch_prof_cell.v cache=batch_prof_1.v cachetick=nil tick=1
Scanning... done
Count:     1   Time:  0.021   msec/inst: 20.563  File: e/b/batch_prof_1.v
Scanning batch_prof_10.v cache=batch_prof_10.v cachetick=nil tick=43
Scanning... done
Count:    10   Time:  0.028   msec/inst:  2.790  File: e/b/batch_prof_10.v
Scanning batch_prof_100.v cache=batch_prof_100.v cachetick=nil tick=403
Scanning... done
Count:   100   Time:  0.195   msec/inst:  1.951  File: e/b/batch_prof_100.v
Scanning batch_prof_1000.v cache=batch_prof_1000.v cachetick=nil tick=4003
Scanning... done
Count:  1000   Time:  3.678   msec/inst:  3.678  File: e/b/batch_prof_1000.v
Slope: 1.884727  Complexity: O(n^1.275248)
Test failed, large modules are too slow compared to small modules
%Error: Command Failed emacs --batch --no-site-file -l e/verilog-mode.elc -l ./batch_prof.el, stopped at ./batch_test.pl line 74.
Command exited with non-zero status 255
4.79user 0.37system 0:05.32elapsed 97%CPU (0avgtext+0avgdata 39604maxresident)k
32inputs+488outputs (0major+26391minor)pagefaults 0swaps
Makefile:90: recipe for target 'test_batch' failed
make[2]: *** [test_batch] Error 255
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
Makefile:40: recipe for target '.timestamps/test' failed
make[1]: *** [.timestamps/test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:6: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

I've put several build logs here:

https://people.debian.org/~sanvila/build-logs/verilog-mode/

The failures happen randomly for me, but only on machines which are
"slow" and have only 1 GB of RAM (plus 1 GB of swap). This is
apparently enough to build the package but the error message suggests
that the failure happens because of an "unexpected speed":

large modules are too slow compared to small modules

If this is the real reason for the failure, packages should not assume
that the CPU performance remains the same during the package build.
The autobuilder could be doing other things other than building packages.

Thanks.



More information about the Pkg-emacsen-addons mailing list