On 04/05/2010 02:50 PM, Renato Botelho wrote: > I'm preparing everything to update to 0.96 on FreeBSD ports > tree and I noted 0.96 is still failing (checks) on 6.x
Hi Renato, How about other FreeBSD versions? > > This program built for amd64-portbld-freebsd6.4 > Python 2.6.4 > gmake: Entering directory > `/work/a/ports/security/clamav/work/clamav-0.96/libclamav/c++/llvm' > llvm[0]: Running test suite > gmake[1]: Entering directory > `/work/a/ports/security/clamav/work/clamav-0.96/libclamav/c++/llvm/test' > Making a new site.exp file... > Making LLVM 'lit.site.cfg' file... > Making LLVM unittest 'lit.site.cfg' file... > ( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v 512000 ; \ > > /work/a/ports/security/clamav/work/clamav-0.96/libclamav/c++/llvm/utils/lit/lit.py > -s -v --no-tcl-as-sh CodeGen ExecutionEngine Integer Verifier ) > Fatal error 'kse_create() failed > ' at line 469 in file /usr/src/lib/libpthread/thread/thr_kern.c (errno = 25) Looks like something wrong with python threads on FreeBSD6. I only have access to a FreeBSD 8 box, and errno 25 is this: #define ENOTTY 25 I don't know why thread creation would fail with that error, maybe its an errno from another syscall that failed, and errno wasn't reset? Anyway a google search tells me that KSE was removed in FreeBSD 8. > -- Testing: 2124 tests, 2 threads -- Threads aren't mandatory, they are only used to speed up make check on SMP systems. Try this patch (if it works you can keep it as a FreeBSD6-specific patch in the ports?) diff --git a/libclamav/c++/llvmcheck.sh b/libclamav/c++/llvmcheck.sh index f1d01c9..92493a1 100755 --- a/libclamav/c++/llvmcheck.sh +++ b/libclamav/c++/llvmcheck.sh @@ -10,4 +10,4 @@ import sys if sys.hexversion < 0x2040000: sys.exit(1) EOF test $? -eq 0 || { echo "Python version older than 2.4, skipping LLVM tests"; exit 77; } -exec $GMAKE -C llvm check-lit TESTSUITE="--no-tcl-as-sh CodeGen ExecutionEngine Integer Verifier" +exec $GMAKE -C llvm check-lit TESTSUITE="--no-tcl-as-sh --threads 1 CodeGen ExecutionEngine Integer Verifier" Best regards, --Edwin _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net