[GNC-dev] Windows build server

John Ralls jralls at ceridwen.fremont.ca.us
Sun Mar 24 13:49:33 EDT 2019


Bob,

When it can't find libtest-core-guile.so itself it says "the specified *file* could not be found" (my emphasis); "the specified module could not be found" means that the linker couldn't find one of the dependencies of libtest-core-guile.so. That includes the whole Gtk stack, libgncmod-engine, libgnc-core-utils, several Boost libraries, libguile, libgc, and libintl.

Did you remember to start a jhbuild shell to set up the build environment?
  cd /c/gcdev64/src/gnucash-on-windows.git
  TARGET=gnucash-maint jhbuild -f jhbuildrc shell
  cd $PREFIX/../build/gnucash-git

It sometimes helps to uninstall; if you've cleared the build directory so install_manifest.txt is gone it's usually sufficient to 
 rm -r $PREFIX/lib/gnucash
 rm $PREFIX/lib/libgnc*

Regards,
John Ralls


> On Mar 24, 2019, at 9:30 AM, Robert Fewell <14ubobit at gmail.com> wrote:
> 
> Thanks John,
> 
> Yesterday I did manage to build and then install a working version but found my changes for 'transaction associations' needed some work, change the source file and tried to rebuild and now it wont.
> I do not know why it wont but it so frustrating....
> Cleared my build and install directory and now getting...
> 
> [ 30%] Generating ../../lib/gnucash/scm/ccache/2.0/gnucash/unittest-support.go
> Backtrace:
> In ice-9/eval.scm:
>  432: 19 [eval # #]
> In C:/gcdev64/gnucash/maint/inst/bin/guild:
>   72: 18 [main ("C:/gcdev64/gnucash/maint/inst/bin/guild" "compile" "-o" ...)]
> In srfi/srfi-1.scm:
>  616: 17 [for-each #<procedure 2a537c0 at scripts/compile.scm:187:14 (file)> #]
> In scripts/compile.scm:
>  190: 16 [#<procedure 2a537c0 at scripts/compile.scm:187:14 (file)> "C:/gcdev64/gnucash/maint/src/gnucash-git/common/test-core/unittest-support.scm"]
> In system/base/target.scm:
>   59: 15 [with-target "i686-w64-mingw32" ...]
> In system/base/compile.scm:
>  152: 14 [compile-file "C:/gcdev64/gnucash/maint/src/gnucash-git/common/test-core/unittest-support.scm" ...]
>   43: 13 [call-once #<procedure 2a53120 at system/base/compile.scm:56:5 ()>]
> In ice-9/boot-9.scm:
>  174: 12 [with-throw-handler #t ...]
> In system/base/compile.scm:
>   59: 11 [#<procedure 2a53100 at system/base/compile.scm:58:9 ()>]
>  155: 10 [#<procedure 2a53140 at system/base/compile.scm:153:8 (port)> #<closed: file 0>]
>  218: 9 [read-and-compile #<input: unittest-support.scm 5> #:from ...]
>  234: 8 [lp (#<tree-il #>) #<directory (gnucash unittest-support) 2d40f50> ...]
>  182: 7 [lp (#<procedure compile-tree-il (x e opts)>) (eval-when # #) ...]
> In ice-9/boot-9.scm:
> 2412: 6 [save-module-excursion #<procedure 2d42b70 at language/scheme/compile-tree-il.scm:29:3 ()>]
> In language/scheme/compile-tree-il.scm:
>   31: 5 [#<procedure 2d42b70 at language/scheme/compile-tree-il.scm:29:3 ()>]
> In ice-9/psyntax.scm:
> 1107: 4 [expand-top-sequence ((eval-when # #)) () ((top)) ...]
>  990: 3 [scan ((eval-when # #)) () ((top)) ...]
>  279: 2 [scan (#) () (#) ...]
> In unknown file:
>    ?: 1 [load-extension "libtest-core-guile" "scm_init_unittest_support_module"]
> In ice-9/boot-9.scm:
>  109: 0 [#<procedure 2a530e0 at ice-9/boot-9.scm:100:6 (thrown-k . args)> misc-error ...]
> 
> ice-9/boot-9.scm:109:20: In procedure #<procedure 2a530e0 at ice-9/boot-9.scm:100:6 (thrown-k . args)>:
> ice-9/boot-9.scm:109:20: In procedure dynamic-link: file: "libtest-core-guile", message: "The specified module could not be found."
> make[2]: *** [common/test-core/CMakeFiles/scm-test-core.dir/build.make:62: lib/gnucash/scm/ccache/2.0/gnucash/unittest-support.go] Error 1
> make[1]: *** [CMakeFiles/Makefile2:2182: common/test-core/CMakeFiles/scm-test-core.dir/all] Error 2
> make: *** [Makefile:163: all] Error 2
> *** Error during phase build of gnucash-git: ########## Error running make -j 1  *** [13/14]
> 
> Is it looking for the libtest-core-guile.dll, that is there and looked at it and has  "scm_init_unittest_support_module" is there. Tried copying to the inst/bin folder but that did not help.
> 
> Regards,
>    Bob
> 
> 
> 
> 
> 
> On Sat, 23 Mar 2019 at 02:59, John Ralls <jralls at ceridwen.fremont.ca.us> wrote:
> 
> 
> > On Mar 22, 2019, at 2:12 PM, Robert Fewell <14ubobit at gmail.com> wrote:
> > 
> > Hi,
> > 
> > Just wondering if any body has setup a windows build environment recently,
> > I mistakenly ran setup-mingw64.ps1 which updated my setup, a good 100 plus
> > packages were updated and now I can not run a build from scratch, builds I
> > think 4 package dependencies and fails on xmlsec. Will investigate further
> > tomorrow or maybe try and not build aqbanking as I think it a dependency of
> > that.
> > 
> > Does the build server update its environment or is just the dependencies ?
> 
> Bob,
> 
> It updates everything except the dozen or so dependencies that are built from source in gnucash.modules.
> 
> Xmlsec has build products committed in the repo so just building creates a change that git can see. The result is that when jhbuild tries to see if the tree has updates it fails with "unable to switch a dirty tree". Just pick "2 - ignore error and continue to configure".
> 
> Regards,
> John Ralls
> 



More information about the gnucash-devel mailing list