Dear David, Stephen, Simon, You're absolutely right, I should have given details of the build env. I was building on Arch with Linux 6.1.3 and I was pretty sure I'd provided all the required dependencies.
As I raised a doubt about in my first message, it turned out the problem was down to trying to build and install on a system where gnucash was already installed through my package manager. Thanks very much for the (off-list) confirmation that that was likely the problem! Removing my distro's gnucash allowed the build to complete immediately. Kind regards, D On Fri, Jan 6, 2023 at 1:19 AM David Cousens <davidcousen...@gmail.com> wrote: > D It may help more if you can tell us what OS and version you are building > on > and the version of GnuCash you are building. There are usually 3 steps in > the > build: > 1 Running "cmake" to set up the build > 2 Running "make" or "ninja" to build the libraries and program > 3 Running "ninja install" to install the program (this can be either a > local > install to your home directory or installed system wide for all users). > > If you have previously built GnuCash with failures, it is a good idea to > delete > the build directory before rebuidling > > The build on Linux instructions are still up to date AFAIK. The reports are > generally separate from the main program and are written in Scheme/Guile > and the > guile interpreter runs within GnuCash. To change and customize reports > should > not require you to rebuild GnuCash itself. (see > https://wiki.gnucash.org/wiki/Custom_Reports ). > > From the directory structure you appear to be building on a Linux variant. > The > cmake output to the terminal will tell you if you are missing any > dependencies. > You may need to enable the deb-src module in your software sources as > others > have noted, particularly to use the sudo apt build-dep gnucash command. In > some > linux repositories, the dependencies headers don't always have the generic > libraries names > apt-cache search <string> where string is a n extract from the generic > library > name can usually help locate the appropriate development headers in a > particular > Debian/Ubuntu derivative > > David Cousens > > On Thu, 2023-01-05 at 22:18 +0100, ml enquirer wrote: > > Hi, > > > > Thanks for all your hard work on gnucash; it's fantastic. > > > > To try and debug some budget reporting issues I'm having ( > > > https://lists.gnucash.org/pipermail/gnucash-user/2023-January/104734.html > ), > > I'm trying to build for the first time. I *think* I installed all the > > dependencies, but I'm running up against the following build error. > > > > Is it obvious to you what I must be doing wrong? Could it be related to > the > > fact that I'm trying to build on a system that already has gnucash > > installed? I see notes during compilation like: > > ;;; note: source file <my home > > dir>/gnucash/gnucash- > > build/share/guile/site/3.0/gnucash/reports/standard/trial-balance.scm > > ;;; newer than compiled > > /usr/lib/guile/3.0/site-ccache/gnucash/reports/standard/trial-balance.go > > > > Many thanks, > > D > > > > ``` > > Backtrace: > > In /usr/bin/guild: > > 72:17 19 (main _) > > In srfi/srfi-1.scm: > > 634:9 18 (for-each #<procedure 7fbff6aaf7d0 at scripts/compile.…> …) > > In scripts/compile.scm: > > 279:27 17 (_ _) > > In system/base/target.scm: > > 65:6 16 (with-target _ _) > > In system/base/compile.scm: > > 187:6 15 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ …) > > 53:4 14 (call-with-output-file/atomic _ _ _) > > In ice-9/boot-9.scm: > > 1752:10 13 (with-exception-handler _ _ #:unwind? _ # _) > > In system/base/compile.scm: > > 69:11 12 (_) > > 190:11 11 (_ #<closed: file 7fbfee028150>) > > 331:39 10 (read-and-compile #<input: report-menus.scm 13> #:from _ …) > > 261:27 9 (_ _ _) > > In ice-9/boot-9.scm: > > 2836:4 8 (save-module-excursion #<procedure 7fbfd7d21a20 at lang…>) > > In language/scheme/compile-tree-il.scm: > > 31:16 7 (_) > > In ice-9/psyntax.scm: > > 1218:36 6 (expand-top-sequence (#<syntax:report-menus.scm:35:0 …>) …) > > 1210:19 5 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …) > > 259:10 4 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …) > > In unknown file: > > 3 (load-extension "libgnc-gnome" "scm_init_sw_gnome_module") > > In system/foreign-library.scm: > > 190:25 2 (load-foreign-library _ #:extensions _ # _ #:search-path …) > > In unknown file: > > 1 (dlopen "/usr/lib/libgnc-gnome.so" 1) > > In ice-9/boot-9.scm: > > 1685:16 0 (raise-exception _ #:continuable? _) > > > > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > > In procedure dlopen: file "/usr/lib/libgnc-gnome.so", message > > "/usr/lib/libgnc-gnome.so: undefined symbol: gnc_get_euro" > > ``` > > _______________________________________________ > > gnucash-devel mailing list > > gnucash-devel@gnucash.org > > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > > _______________________________________________ > gnucash-devel mailing list > gnucash-devel@gnucash.org > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel