[GNC-dev] build fail maint and master related to scm - no code for module

Geert Janssens geert.gnucash at kobaltwit.be
Fri Feb 28 11:28:57 EST 2020


It looks like the new lot-viewer.scm report has been included in the wrong 
source directory. It depends on business-report functionality but is added to 
standard-reports.

I'll see if I can come up with a fix.

Regards,

Geert

Op vrijdag 28 februari 2020 15:51:25 CET schreef Richard Ullger:
> > That kind of error usually means that the build is finding the wrong
> > libraries and guile caches. One way around that is to uninstall GnuCash
> > but
> > if you keep your books on the same computer that you develop you probably
> > don't want to do that. In that case the simplest approach is to set up a
> > VM
> > to develop in.
> > 
> > Regards,
> > John Ralls
> 
> John,
> 
> I've been seeing similar errors compiling from git since the release of 3.8.
> 3.7 built ok from git and I can build 3.8 from the tar source file.
> 
> I'm building in a clean chroot on an Arch system.
> 
> cmake .. \
>    -DCMAKE_INSTALL_PREFIX=/usr \
>    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
>    -DCOMPILE_GSCHEMAS=OFF \
>    -DWITH_AQBANKING=OFF \
>    -DWITH_OFX=OFF \
>    -DWITH_SQL=OFF \
>    -DWITH_PYTHON=ON \
>    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
>    -DCMAKE_C_FLAGS=-Wno-stringop-truncation
> 
> 
> [ 92%] Generating
> ../../../lib/gnucash/scm/ccache/2.2/gnucash/report/standard-reports/lot-
> viewer.go
> cd /build/gnucash-git/src/gnucash-git/build/gnucash/report/standard-reports
> && /usr/bin/ cmake -E env
> LD_LIBRARY_PATH=/build/gnucash-git/src/gnucash-git/build//lib:/build/
> gnucash-git/src/gnucash-git/build//lib/gnucash GNC_UNINSTALLED=YES
> GNC_BUILDDIR=/ build/gnucash-git/src/gnucash-git/build
> GUILE_LOAD_PATH=/build/gnucash-git/src/
> gnucash-git/gnucash/report/standard-reports:/build/gnucash-git/src/gnucash-
> git/build/
> gnucash/report/standard-reports:/build/gnucash-git/src/gnucash-git/build/li
> bgnucash/ scm:/build/gnucash-git/src/gnucash-git/build/share/gnucash/scm
> GUILE_LOAD_COMPILED_PATH=/build/gnucash-git/src/gnucash-git/build/gnucash/re
> port/
> standard-reports:/build/gnucash-git/src/gnucash-git/build//lib/gnucash/scm/
> ccache/2.2
> GNC_MODULE_PATH=/build/gnucash-git/src/gnucash-git/build//lib:/build/gnucas
> h-git/src/ gnucash-git/build//lib/gnucash: /usr/bin/guile -e "(@@ (guild)
> main)" -s /usr/bin/guild compile -o
> /build/gnucash-git/src/gnucash-git/build//lib/gnucash/scm/ccache/2.2/
> gnucash/report/standard-reports/lot-viewer.go
> /build/gnucash-git/src/gnucash-git/
> gnucash/report/standard-reports/lot-viewer.scm Backtrace: In
> scripts/compile.scm: 264:26 19 (_ _) In system/base/target.scm:     57:6 18
> (with-target _ _) In system/base/ compile.scm:    152:6 17 (compile-file _
> #:output-file _ #:from _ #:to _ #:env _ …)     43:4 16 (call-once _) In
> ice-9/boot-9.scm:    841:4 15 (with-throw-handler _ _ _) In system/base/
> compile.scm:    59:11 14 (_)   155:11 13 (_ #<closed: file 7f3300e311c0>)  
> 235:18 12 (read- and-compile #<input: lot-viewer.scm 13> #:from _ # …)  
> 183:32 11 (compile-fold (#<procedure compile-tree-il (x e opts)>) …) In
> ice-9/boot-9.scm:   2312:4 10 (save-module- excursion #<procedure
> 7f32f919e960 at lang…>) In language/scheme/compile-tree-il.scm: 31:15  9
> (_) In ice-9/psyntax.scm:  1262:36  8 (expand-top-sequence ((use-modules
> (gnucash report …))) …)  1209:24  7 (parse _ (("placeholder" placeholder))
> ((top) #(# # …)) …) 285:10  6 (parse _ (("placeholder" placeholder)) (()) _
> c&e (# #) #) In ice-9/boot-9.scm: 3377:20  5 (process-use-modules _)  
> 222:17  4 (map1 (((gnucash report business- reports))))  3378:31  3 (_
> ((gnucash report business-reports)))   2803:6  2 (resolve-interface _
> #:select _ #:hide _ #:prefix _ # _ …) In unknown file:           1
> (scm-error misc-error #f "~A ~S" ("no code for modu…" …) …) In
> ice-9/boot-9.scm:   752:25  0 (dispatch-exception _ _ _)
> 
> ice-9/boot-9.scm:752:25: In procedure dispatch-exception: no code for module
> (gnucash report business-reports) make[2]: ***
> [gnucash/report/standard-reports/CMakeFiles/scm-
> standard-reports-2.dir/build.make:195:
> lib/gnucash/scm/ccache/2.2/gnucash/report/ standard-reports/lot-viewer.go]
> Error 1 make[2]: Leaving directory '/build/gnucash-git/src/
> gnucash-git/build' make[1]: *** [CMakeFiles/Makefile2:10491:
> gnucash/report/standard- reports/CMakeFiles/scm-standard-reports-2.dir/all]
> Error 2 make[1]: Leaving directory '/
> build/gnucash-git/src/gnucash-git/build' make: *** [Makefile:163: all]
> Error 2
> 
> Regards,
> 
> Richard
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel






More information about the gnucash-devel mailing list