Gnucash reports: Automake Failure

Derek Atkins derek at ihtfp.com
Mon Jun 3 20:20:12 EDT 2013


Hi,

On Mon, June 3, 2013 6:03 pm, Geert Janssens wrote:
> I have just committed a fix that seems to cure this.
>
> Can you check ? If not, Peter also submitted an alternative fix we can use
> instead.
>
> Geert

On my F15 system using a completely fresh checkout I get a successful
"make" but "make check" fails in the report tests.  I think the issue is
that the 'test' directory doesn't properly create the scheme links:

[warlord at mocana build]$ ls -la
src/report/report-system/test/gnucash/report/report-system/test/
total 8
drwxrwxr-x. 2 warlord warlord 4096 Jun  3 19:50 .
drwxrwxr-x. 3 warlord warlord 4096 Jun  3 19:50 ..
[warlord at mocana build]$

The issue is that the SCM links need to be made always, even if you're not
running in a separate build dir.

I've committed a fix.  Can you please test?

The full build error is:

make[5]: Entering directory
`/home/warlord/src/gnucash/gnucash-svk/build/src/report/report-system/test'
echo 'guile --debug -l ./test-collectors.scm -c "(exit (run-test))"' >
test-collectors.sh
chmod a+x test-collectors.sh
echo 'guile --debug -l ./test-list-extras.scm -c "(exit (run-test))"' >
test-list-extras.sh
chmod a+x test-list-extras.sh
echo 'guile --debug -l ./test-test-extras.scm -c "(exit (run-test))"' >
test-test-extras.sh
chmod a+x test-test-extras.sh

(process:12749): GLib-CRITICAL **: g_hash_table_lookup: assertion
`hash_table != NULL' failed

(process:12749): GLib-CRITICAL **: g_hash_table_lookup: assertion
`hash_table != NULL' failed
PASS: test-link-module
  testing report module load ...
(process:12775): GLib-CRITICAL **: g_hash_table_lookup: assertion
`hash_table != NULL' failed

(process:12775): GLib-CRITICAL **: g_hash_table_lookup: assertion
`hash_table != NULL' failed
ok
PASS: test-load-module
Backtrace:
In unknown file:
   ?:  0* [primitive-load "./test-collectors.scm"]
In ./test-collectors.scm:
   4:  1* (use-modules (gnucash report report-system test test-extras))
   4:  2  (eval-case (# # *unspecified*) (else #))
   4:  3  (begin (process-use-modules (list (list #))) *unspecified*)
In unknown file:
   ?:  4* [process-use-modules (((gnucash report report-system test
test-extras)))]
   ?:  5  (let* ((interfaces #)) (call-with-deferred-observers (lambda ()
#)))
   ?:  6* [map #<procedure #f (mif-args)> (((gnucash report report-system
...)))]
   ?:  7* [#<procedure #f (mif-args)> ((gnucash report report-system ...))]
   ?:  8* (or (apply resolve-interface mif-args) (error "no such module"
mif-args))
   ?:  9* [apply #<procedure resolve-interface (name . args)> (#)]
   ?: 10  [resolve-interface (gnucash report report-system test test-extras)]
    ...
   ?: 11  (let* (# # # # ...) (and # #) (if # public-i #))
   ?: 12* (and (or (not module) (not public-i)) (error "no code for
module" name))
   ?: 13  [error "no code for module" (gnucash report report-system ...)]
    ...
   ?: 14  [scm-error misc-error #f ...]

<unnamed port>: In procedure scm-error in expression (scm-error (quote
misc-error) #f ...):
<unnamed port>: no code for module (gnucash report report-system test
test-extras)
FAIL: test-collectors.sh
Backtrace:
In unknown file:
   ?:  0* [primitive-load "./test-list-extras.scm"]
In ./test-list-extras.scm:
   2:  1* (use-modules (gnucash report report-system test test-extras))
   2:  2  (eval-case (# # *unspecified*) (else #))
   2:  3  (begin (process-use-modules (list (list #))) *unspecified*)
In unknown file:
   ?:  4* [process-use-modules (((gnucash report report-system test
test-extras)))]
   ?:  5  (let* ((interfaces #)) (call-with-deferred-observers (lambda ()
#)))
   ?:  6* [map #<procedure #f (mif-args)> (((gnucash report report-system
...)))]
   ?:  7* [#<procedure #f (mif-args)> ((gnucash report report-system ...))]
   ?:  8* (or (apply resolve-interface mif-args) (error "no such module"
mif-args))
   ?:  9* [apply #<procedure resolve-interface (name . args)> (#)]
   ?: 10  [resolve-interface (gnucash report report-system test test-extras)]
    ...
   ?: 11  (let* (# # # # ...) (and # #) (if # public-i #))
   ?: 12* (and (or (not module) (not public-i)) (error "no code for
module" name))
   ?: 13  [error "no code for module" (gnucash report report-system ...)]
    ...
   ?: 14  [scm-error misc-error #f ...]

<unnamed port>: In procedure scm-error in expression (scm-error (quote
misc-error) #f ...):
<unnamed port>: no code for module (gnucash report report-system test
test-extras)
FAIL: test-list-extras.sh
Backtrace:
In unknown file:
   ?:  0* [primitive-load "./test-test-extras.scm"]
In ./test-test-extras.scm:
   1:  1* (use-modules (gnucash report report-system test test-extras))
   1:  2  (eval-case (# # *unspecified*) (else #))
   1:  3  (begin (process-use-modules (list (list #))) *unspecified*)
In unknown file:
   ?:  4* [process-use-modules (((gnucash report report-system test
test-extras)))]
   ?:  5  (let* ((interfaces #)) (call-with-deferred-observers (lambda ()
#)))
   ?:  6* [map #<procedure #f (mif-args)> (((gnucash report report-system
...)))]
   ?:  7* [#<procedure #f (mif-args)> ((gnucash report report-system ...))]
   ?:  8* (or (apply resolve-interface mif-args) (error "no such module"
mif-args))
   ?:  9* [apply #<procedure resolve-interface (name . args)> (#)]
   ?: 10  [resolve-interface (gnucash report report-system test test-extras)]
    ...
   ?: 11  (let* (# # # # ...) (and # #) (if # public-i #))
   ?: 12* (and (or (not module) (not public-i)) (error "no code for
module" name))
   ?: 13  [error "no code for module" (gnucash report report-system ...)]
    ...
   ?: 14  [scm-error misc-error #f ...]

<unnamed port>: In procedure scm-error in expression (scm-error (quote
misc-error) #f ...):
<unnamed port>: no code for module (gnucash report report-system test
test-extras)
FAIL: test-test-extras.sh
==========================================
3 of 5 tests failed
Please report to gnucash-devel at gnucash.org
==========================================
make[5]: *** [check-TESTS] Error 1
make[5]: Leaving directory
`/home/warlord/src/gnucash/gnucash-svk/build/src/report/report-system/test'
make[4]: *** [check-am] Error 2

-- 
       Derek Atkins                 617-623-3745
       derek at ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant



More information about the gnucash-devel mailing list