Summary: | security/clamav: Compile-time test fails during portinstall | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Jens Nykaer <jny> | ||||||||
Component: | Individual Port(s) | Assignee: | Larry Rosenman <ler> | ||||||||
Status: | Closed FIXED | ||||||||||
Severity: | Affects Many People | CC: | blb, fidko2000, freebsd, fsbruva, jny, mark.j.lysek, prj | ||||||||
Priority: | --- | ||||||||||
Version: | Latest | ||||||||||
Hardware: | amd64 | ||||||||||
OS: | Any | ||||||||||
Attachments: |
|
Description
Jens Nykaer
2017-08-14 09:27:38 UTC
On FreeBSD testlab.local.dom 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 gmake[5]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' FAIL: check_clamav PASS: check_freshclam.sh PASS: check_sigtool.sh SKIP: check_unit_vg.sh PASS: check1_clamscan.sh PASS: check2_clamd.sh PASS: check3_clamd.sh PASS: check4_clamd.sh SKIP: check5_clamd_vg.sh SKIP: check6_clamd_vg.sh SKIP: check7_clamd_hg.sh SKIP: check8_clamd_hg.sh SKIP: check9_clamscan_vg.sh gmake[6]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' gmake[6]: Nothing to be done for 'all'. gmake[6]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' ============================================================================ Testsuite summary for ClamAV 0.99.2 ============================================================================ # TOTAL: 13 # PASS: 6 # SKIP: 6 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 ============================================================================ See unit_tests/test-suite.log Please report to http://bugs.clamav.net/ ============================================================================ gmake[5]: *** [Makefile:1070: test-suite.log] Error 1 gmake[5]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' gmake[4]: *** [Makefile:1178: check-TESTS] Error 2 gmake[4]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' gmake[3]: *** [Makefile:1333: check-am] Error 2 gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' gmake[2]: *** [Makefile:738: check-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2' *** Error code 2 Stop. make[1]: stopped in /usr/ports/security/clamav *** Error code 1 Stop. make: stopped in /usr/ports/security/clamav test-suite.log contains the following: ============================================== ClamAV 0.99.2: unit_tests/test-suite.log ============================================== # TOTAL: 13 # PASS: 6 # SKIP: 6 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: check_clamav ================== Using default test timeout; alter by setting 'T' env var (in seconds) Running suite(s): cl_api cli jsnorm str regex disasm unique matchers htmlnorm bytecode 99%: Checks: 987, Failures: 2, Errors: 0 check_bytecode.c:128:F:arithmetic:test_inflate_jit:0: cli_bytecode_run failed, expected: 0, have: 28 check_bytecode.c:128:F:arithmetic:test_inflate_int:0: cli_bytecode_run failed, expected: 0, have: 28 NOTICE: Use the 'T' environment variable to adjust testcase timeout SKIP: check_unit_vg.sh ====================== *** valgrind tests skipped by default, use 'make check VG=1' to activate SKIP: check5_clamd_vg.sh ======================== *** valgrind tests skipped by default, use 'make check VG=1' to activate SKIP: check6_clamd_vg.sh ======================== *** valgrind tests skipped by default, use 'make check VG=1' to activate SKIP: check7_clamd_hg.sh ======================== SKIP: check8_clamd_hg.sh ======================== *** valgrind tests skipped by default, use 'make check VG=1' to activate SKIP: check9_clamscan_vg.sh =========================== *** valgrind tests skipped by default, use 'make check VG=1' to activate Will try yo reproduce on other hardware. I also see this bug. In my case unit_tests/test-suite.log contains the same errors check_bytecode.c:128:F:arithmetic:test_inflate_jit:0: cli_bytecode_run failed, e xpected: 0, have: 28 check_bytecode.c:128:F:arithmetic:test_inflate_int:0: cli_bytecode_run failed, e xpected: 0, have: 28 Give this a proper Summary and assign. "Give this a proper Summary and assign." Not quite sure what you mean?? I simply do a: cd /usr/ports/security/clamav make install && make clean These two commands yields the error described earlier. If bugzilla issues start with "<category>/<portname>", then our auto-assigner will run and automatically notify the maintainer; and also assign it if the maintainer is also a committer. That was what I initially changed: the style, not the content. Browsing the bugzilla list of issues will demonstrate that we have adopted this style so that a) the machines can parse it, and b) it's consistent for those browsing bugs. Over to new maintainer Created attachment 186271 [details]
build_failure_FreeBSD:11:i386
Reproducible build failure on i386 in poudriere (shaladrassil and teldrassil)
Created attachment 186272 [details]
build_failure_FreeBSD:11:amd64
Reproducible build failure on amd64 (shaladrassil and teldrassil)
Created attachment 186615 [details] Patch to fix unit test failure with zlip 1.2.9+ Unit tests fail with zlib version 1.2.9 and up. Patch provided by Marc Deslauriers at the Ubuntu project, and is included in upstream sources. https://github.com/vrtadmin/clamav-devel/commit/48fef7b8ec06dbfbf899986cdcbe05071a633eb4 A commit references this bug: Author: ler Date: Fri Sep 22 16:11:55 UTC 2017 New revision: 450394 URL: https://svnweb.freebsd.org/changeset/ports/450394 Log: security/clamav: Compile-time test fails during portinstall Apply patch from upstream. PR: 221513 Submitted by: jny@jny.dk, fsbruva@yahoo.com Changes: head/security/clamav/files/patch-configure head/security/clamav/files/patch-libclamav-c++-llvm head/security/clamav/files/patch-libclamav_bytecode__api.c head/security/clamav/files/patch-libclamav_c++_llvm_include_llvm_Support_CFG.h Committed, Thanks! Hello. I think the issue still persists. On FreeBSD mail.lanka 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0: Wed Aug 9 11:55:48 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 gmake[4]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' FAIL: check_clamav PASS: check_freshclam.sh PASS: check_sigtool.sh SKIP: check_unit_vg.sh PASS: check1_clamscan.sh PASS: check2_clamd.sh PASS: check3_clamd.sh PASS: check4_clamd.sh SKIP: check5_clamd_vg.sh SKIP: check6_clamd_vg.sh SKIP: check7_clamd_hg.sh SKIP: check8_clamd_hg.sh SKIP: check9_clamscan_vg.sh gmake[5]: Entering directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' gmake[5]: Nothing to be done for 'all'. gmake[5]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' ============================================================================ Testsuite summary for ClamAV 0.99.2 ============================================================================ # TOTAL: 13 # PASS: 6 # SKIP: 6 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 ============================================================================ See unit_tests/test-suite.log Please report to http://bugs.clamav.net/ ============================================================================ gmake[4]: *** [Makefile:1070: test-suite.log] Error 1 gmake[4]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' gmake[3]: *** [Makefile:1178: check-TESTS] Error 2 gmake[3]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' gmake[2]: *** [Makefile:1333: check-am] Error 2 gmake[2]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2/unit_tests' gmake[1]: *** [Makefile:738: check-recursive] Error 1 gmake[1]: Leaving directory '/usr/ports/security/clamav/work/clamav-0.99.2' *** Error code 2 Stop. make: stopped in /usr/ports/security/clamav << ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script. test-suite.log contains the following: # TOTAL: 13 # PASS: 6 # SKIP: 6 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: check_clamav ================== Using default test timeout; alter by setting 'T' env var (in seconds) Running suite(s): cl_api cli jsnorm str regex disasm unique matchers htmlnorm bytecode 99%: Checks: 987, Failures: 2, Errors: 0 check_bytecode.c:128:F:arithmetic:test_inflate_jit:0: cli_bytecode_run failed, expected: 0, have: 28 check_bytecode.c:128:F:arithmetic:test_inflate_int:0: cli_bytecode_run failed, expected: 0, have: 28 NOTICE: Use the 'T' environment variable to adjust testcase timeout SKIP: check_unit_vg.sh ====================== *** valgrind tests skipped by default, use 'make check VG=1' to activate SKIP: check5_clamd_vg.sh ======================== *** valgrind tests skipped by default, use 'make check VG=1' to activate SKIP: check6_clamd_vg.sh ======================== *** valgrind tests skipped by default, use 'make check VG=1' to activate SKIP: check7_clamd_hg.sh ======================== SKIP: check8_clamd_hg.sh ======================== *** valgrind tests skipped by default, use 'make check VG=1' to activate SKIP: check9_clamscan_vg.sh =========================== *** valgrind tests skipped by default, use 'make check VG=1' to activate |