Problems building with guile2

John Ralls jralls at ceridwen.us
Wed Nov 18 09:38:51 EST 2015


> On Nov 17, 2015, at 11:41 PM, Mike Alexander <mta at umich.edu> wrote:
> 
> I tried to merge maint into master tonight.  Although the merge seemed to be fairly easy, the result wouldn't build.  I tried to figure out why, but eventually gave up.  The problem exists in maint too, it won't build with guile2.   There were a lot of changes to various Scheme files recently on maint and something broke building with guile2.
> 
> The first error I get is when it tries to compile app-utils/business-prefs.scm.  It fails trying to load gncmod-backend-dbi and gncmod-backend-xml and then gives up because gnc:module-begin-syntax is unbound.  I have no idea why this file should be loading those two backends.  I managed to make it load gncmod-backend-xml ok, but nothing I did would make it load gncmod-backend-dbi.  As far a I can tell no other Scheme file loads this.  I also don't understand why gnc:module-begin-syntax is unbound. Even adding an explicit load-module call for gnc-module didn't get it bound and that module should already be loaded anyway.
> 
> The complete build log is below.  Does anyone have any idea what is wrong?
> 
>           Mike
> 
> make: Entering directory `/tools/gnucash-git/build/darwin/src/app-utils'
> Making all in .
> make[1]: Entering directory `/tools/gnucash-git/build/darwin/src/app-utils'
> GNC_UNINSTALLED=yes \
> 	GNC_BUILDDIR=../.. \
> 	GNC_MODULE_PATH="../../src/engine/.libs:${GNC_MODULE_PATH}" GUILE_LOAD_PATH="../../src/app-utils:../../src/core-utils:../../src/engine:../../src/gnc-module:../../src/scm:${GUILE_LOAD_PATH}" GUILE_LOAD_COMPILED_PATH="../../src/app-utils:../../src/core-utils:../../src/engine:../../src/gnc-module:../../src/scm:${GUILE_LOAD_COMPILED_PATH}" LD_LIBRARY_PATH="../../src/libqof/qof/.libs:../../src/core-utils/.libs:../../src/gnc-module/.libs:../../src/engine/.libs:../../src/app-utils/.libs:${LD_LIBRARY_PATH}" DYLD_LIBRARY_PATH="../../src/libqof/qof/.libs:../../src/core-utils/.libs:../../src/gnc-module/.libs:../../src/engine/.libs:../../src/app-utils/.libs:${DYLD_LIBRARY_PATH}" \
> 	/opt/local/bin/guild compile -o business-prefs.go business-prefs.scm
> make[1]: Leaving directory `/tools/gnucash-git/build/darwin/src/app-utils'
> make: Leaving directory `/tools/gnucash-git/build/darwin/src/app-utils'
> * 02:07:58  WARN <gnc.engine> failed to load gncmod-backend-dbi from ../../src/backend/dbi/.libs
> * 02:07:58  CRIT <gnc.engine> required library gncmod-backend-dbi not found.
> * 02:07:58  WARN <gnc.engine> failed to load gncmod-backend-xml from ../../src/backend/xml/.libs
> * 02:07:58  CRIT <gnc.engine> required library gncmod-backend-xml not found.
> ;;; note: source file ../../src/app-utils/gnucash/app-utils.scm
> ;;;       newer than compiled /Users/mta/.cache/guile/ccache/2.0-LE-8-2.0/tools/gnucash-git/gnucash/src/app-utils/app-utils.scm.go
> Backtrace:
> In ice-9/eval-string.scm:
> 44: 19 [read-and-eval #<input: string 103ca2dd0> #:lang ...]
> 37: 18 [lp (use-modules (gnucash engine))]
> In ice-9/eval.scm:
> 505: 17 [#<procedure 1020902e0 at ice-9/eval.scm:499:4 (exp)> (use-modules #)]
> In ice-9/psyntax.scm:
> 1106: 16 [expand-top-sequence ((use-modules (gnucash engine))) () ...]
> 989: 15 [scan ((use-modules (gnucash engine))) () ...]
> 279: 14 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
> In ice-9/boot-9.scm:
> 3597: 13 [process-use-modules (((gnucash engine)))]
> 702: 12 [map #<procedure 1021c22a0 at ice-9/boot-9.scm:3597:25 (mif-args)> ((#))]
> 3598: 11 [#<procedure 1021c22a0 at ice-9/boot-9.scm:3597:25 (mif-args)> (#)]
> 2864: 10 [resolve-interface (gnucash engine) #:select ...]
> 2789: 9 [#<procedure 1021b9b80 at ice-9/boot-9.scm:2777:4 (name #:optional autoload version #:key ensure)> # ...]
> 3065: 8 [try-module-autoload (gnucash engine) #f]
> 2401: 7 [save-module-excursion #<procedure 103c53a50 at ice-9/boot-9.scm:3066:17 ()>]
> 3085: 6 [#<procedure 103c53a50 at ice-9/boot-9.scm:3066:17 ()>]
> In unknown file:
>  ?: 5 [primitive-load-path "gnucash/engine" ...]
> In ice-9/boot-9.scm:
> 1724: 4 [%start-stack load-stack ...]
> 1729: 3 [#<procedure 103de2ab0 ()>]
> In unknown file:
>  ?: 2 [primitive-load-path "engine-utilities"]
> In ../../../../gnucash/src/engine/engine-utilities.scm:
> 25: 1 [#<procedure 103de1460 ()>]
> In ice-9/boot-9.scm:
> 106: 0 [#<procedure 102529d40 at ice-9/boot-9.scm:97:6 (thrown-k . args)> unbound-variable ...]
> 
> ice-9/boot-9.scm:106:20: In procedure #<procedure 102529d40 at ice-9/boot-9.scm:97:6 (thrown-k . args)>:
> ice-9/boot-9.scm:106:20: In procedure module-lookup: Unbound variable: gnc:module-begin-syntax
> make[1]: *** [business-prefs.go] Error 1
> make: *** [all-recursive] Error 1

Have you upgraded to ElCap? If so, see https://bugzilla.gnome.org/show_bug.cgi?id=757616.

Regards,
John Ralls




More information about the gnucash-devel mailing list