Re: [GNC-dev] Build error

2023-01-06 Thread ml enquirer
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 
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  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  > 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 # …)
> > 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 (_ #)
> >331:39 10 (read-and-compile # #:from _ …)
> >261:27  9 (_ _ _)
> > In ice-9/boot-9.scm:
> >2836:4  8 (save-module-excursion #)
> > In language/scheme/compile-tree-il.scm:
> > 31:16  7 (_)
> > In ice-9/psyntax.scm:
> >   1218:36  6 (expand-top-sequence (#) …)
> >   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
>

Re: [GNC-dev] Build error

2023-01-05 Thread David Cousens
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  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  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 # …)
> 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 (_ #)
>    331:39 10 (read-and-compile # #:from _ …)
>    261:27  9 (_ _ _)
> In ice-9/boot-9.scm:
>    2836:4  8 (save-module-excursion #)
> In language/scheme/compile-tree-il.scm:
>     31:16  7 (_)
> In ice-9/psyntax.scm:
>   1218:36  6 (expand-top-sequence (#) …)
>   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


Re: [GNC-dev] Build error

2023-01-05 Thread Simon Roberts
I built on Ubuntu 20.04 using these instructions:

https://wiki.gnucash.org/wiki/Building_On_Linux

The build file was *massively simpler* than what you have. The one piece
that gave me trouble was that in order for the line:

sudo apt -y build-dep gnucash

to work, you must edit the file /etc/apt/sources.list and removed the
comments from the lines that start with "deb-src". It's possible they don't
all have to be uncommented, but it wasn't clear to me which were actually
necessary, and I figured that allowing something to be used is not the same
as using it :)

But before I got that build-dep thing going, it was a nightmare. After, a
walk in the park.

HTH,
Simon






On Thu, Jan 5, 2023 at 2:35 PM Stephen M. Butler <
stephen.m.butle...@gmail.com> wrote:

> This is the script I was given (I forget who donated it) to load
> dependencies on a Unix type box.  I am on Ubuntu and have upgraded to
> 22.10.  I think originally ran the script on 18.10 or 19.04.
>
> save this script then run it using sudo ...
>
> #!/bin/bash
> echo "Script to install development environment for GnuCash ~V3.0"
> echo ""
> echo "Installing build environment:"
> echo "   build-essential"
> apt --yes --force-yes install build-essential
> echo "   cmake"
> apt --yes --force-yes install cmake
> echo "   ninja-build"
> apt --yes --force-yes install ninja-build
> echo ""
> echo "Installing GnuCash dependencies and development headers:"
> echo "   libglib2.0 and dev headers"
> apt --yes --force-yes install libglib2.0 libglib2.0-dev
> echo "   libxml2 libxml++2.6-dev libxml2-utils"
> apt --yes --force-yes install libxml2 libxml++2.6-dev libxml2-utils
> echo "   libxslt1.1 libxslt1-dev"
> apt --yes --force-yes install libxslt1.1 libxslt1-dev
> echo "   libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev"
> apt --yes --force-yes install libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev
> echo "   gtk+3.0 libgtk-3-dev"
> apt --yes --force-yes install gtk+3.0 libgtk-3-dev
> echo "   zlib1g zlib1g-dev"
> apt --yes --force-yes install zlib1g zlib1g-dev
> echo "   guile-2.0 guile-2.0-dev"
> apt --yes --force-yes install guile-2.0 guile-2.0-dev
> echo "   swig   3.0 on LM19  2.0 on Lm18?"
> apt --yes --force-yes install swig
> echo "   apt-get install libboost-all-dev"
> apt-get install libboost-all-dev
> echo "   libsecret-1-0 libsecret-1-0-dev"
> apt-get install libsecret-1-0 libsecret-1-0-dev
> echo " AqBanking Tools"
> echo "   aqbanking-tools libaqbanking-dev"
> apt-get install aqbanking-tools libaqbanking-dev
> echo "   gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev"
> apt-get install gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev
> echo "   ktoblzcheck libktoblzcheck1-dev"
> apt-get install ktoblzcheck libktoblzcheck1-dev
> echo " OFX support"
> echo "   libofx libofx-dev"
> apt-get install libofx-dev
> echo "   xsltproc"
> apt-get install xsltproc
> echo " Database backend support"
> echo "   libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3"
> apt-get install libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3
> echo " Python support"
> apt-get install python3-pytest
> echo " Google Test"
> apt --yes --force-yes install googletest
>
>
> On 1/5/23 13:18, 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  >
> 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 # …)
> > 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 (_ #)
> > 331:39 10 (read-and-compile # #:from _ …)
> > 261:27  9 (_ _ _)
> > In ice-9/boot-9.scm:
> > 2836:4  8 (save-module-excursion #)
> > In language/scheme/compile-tree-il.scm:
> >  31:16  7 (_)
> > In ice-9/psyntax.scm:
> >1218:36  6 (expand-top-sequence (#) …)
> >1210:19  5 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
> 

Re: [GNC-dev] Build error

2023-01-05 Thread Stephen M. Butler
This is the script I was given (I forget who donated it) to load 
dependencies on a Unix type box.  I am on Ubuntu and have upgraded to 
22.10.  I think originally ran the script on 18.10 or 19.04.


save this script then run it using sudo ...

#!/bin/bash
echo "Script to install development environment for GnuCash ~V3.0"
echo ""
echo "Installing build environment:"
echo "   build-essential"
apt --yes --force-yes install build-essential
echo "   cmake"
apt --yes --force-yes install cmake
echo "   ninja-build"
apt --yes --force-yes install ninja-build
echo ""
echo "Installing GnuCash dependencies and development headers:"
echo "   libglib2.0 and dev headers"
apt --yes --force-yes install libglib2.0 libglib2.0-dev
echo "   libxml2 libxml++2.6-dev libxml2-utils"
apt --yes --force-yes install libxml2 libxml++2.6-dev libxml2-utils
echo "   libxslt1.1 libxslt1-dev"
apt --yes --force-yes install libxslt1.1 libxslt1-dev
echo "   libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev"
apt --yes --force-yes install libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev
echo "   gtk+3.0 libgtk-3-dev"
apt --yes --force-yes install gtk+3.0 libgtk-3-dev
echo "   zlib1g zlib1g-dev"
apt --yes --force-yes install zlib1g zlib1g-dev
echo "   guile-2.0 guile-2.0-dev"
apt --yes --force-yes install guile-2.0 guile-2.0-dev
echo "   swig   3.0 on LM19  2.0 on Lm18?"
apt --yes --force-yes install swig
echo "   apt-get install libboost-all-dev"
apt-get install libboost-all-dev
echo "   libsecret-1-0 libsecret-1-0-dev"
apt-get install libsecret-1-0 libsecret-1-0-dev
echo " AqBanking Tools"
echo "   aqbanking-tools libaqbanking-dev"
apt-get install aqbanking-tools libaqbanking-dev
echo "   gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev"
apt-get install gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev
echo "   ktoblzcheck libktoblzcheck1-dev"
apt-get install ktoblzcheck libktoblzcheck1-dev
echo " OFX support"
echo "   libofx libofx-dev"
apt-get install libofx-dev
echo "   xsltproc"
apt-get install xsltproc
echo " Database backend support"
echo "   libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3"
apt-get install libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3
echo " Python support"
apt-get install python3-pytest
echo " Google Test"
apt --yes --force-yes install googletest


On 1/5/23 13:18, 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 /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 # …)
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 (_ #)
331:39 10 (read-and-compile # #:from _ …)
261:27  9 (_ _ _)
In ice-9/boot-9.scm:
2836:4  8 (save-module-excursion #)
In language/scheme/compile-tree-il.scm:
 31:16  7 (_)
In ice-9/psyntax.scm:
   1218:36  6 (expand-top-sequence (#) …)
   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



--
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

___
gnucash-devel mailing list
gnucash-devel@gnucash.org

[GNC-dev] Build error

2023-01-05 Thread ml enquirer
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 /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 # …)
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 (_ #)
   331:39 10 (read-and-compile # #:from _ …)
   261:27  9 (_ _ _)
In ice-9/boot-9.scm:
   2836:4  8 (save-module-excursion #)
In language/scheme/compile-tree-il.scm:
31:16  7 (_)
In ice-9/psyntax.scm:
  1218:36  6 (expand-top-sequence (#) …)
  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


Re: [GNC-dev] Build error with scm-engine on current master

2019-09-13 Thread Christian Gruber

Oh I missed that. I actually fetched current state without rebasing.

Now everything is fine.

Regards,
Christian

Am 13.09.19 um 21:38 schrieb Geert Janssens:

John pushed a fix for your make check error earlier today.

As for the load path, I'm not sure. I know we have had issues with this in the
past. Perhaps those are solved by now.

Regards,

Geert

Op vrijdag 13 september 2019 21:27:41 CEST schreef Christian Gruber:

I tried again.

"make all" works fine now, but "make check" still generates errors. But this
is probably due to some still missing dependencies, as I already mentioned
in the previous thread "Need help - several tests fail". When I invoke
"make check" in a fresh build dir directly after CMake, then the following
error is generated when compiling gnucash/report/html-chart.scm:

Backtrace:
In scripts/compile.scm:
 259: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 (_ #)
 235:18 12 (read-and-compile # #:from _ # …)
 183:32 11 (compile-fold (#) …)
In ice-9/boot-9.scm:
 2312:4 10 (save-module-excursion #)
In language/scheme/compile-tree-il.scm:
  31:15  9 (_)
In ice-9/psyntax.scm:
1235:36  8 (expand-top-sequence ((use-modules (gnucash json #))) _ …)
1182:24  7 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
 285:10  6 (parse _ (("placeholder" placeholder)) (()) _ c (# #) #)
In ice-9/boot-9.scm:
3377:20  5 (process-use-modules _)
 222:17  4 (map1 (((gnucash json builder
3378:31  3 (_ ((gnucash json builder)))
 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 json builder)



Instead if I invoke "make all" first after CMake and then "make "check",
everything builds correctly.

The target with missing dependencies seems to be scm-report-2.



Finally I tried to clarify the question, if and how an existing GnuCash
installation can interfere with the build process, just out of interest.
In PR #574  you wrote:

the linker picks up a 3.x version of gnucash installed system-wide

And John Ralls wrote:

The problem is that Guile loads C libraries with dlopen and that looks on
the system path [...] before it looks in the build directory

But as far as I can see when guile is invoked LD_LIBRARY_PATH is always set
to "${LIBDIR_BUILD}:${LIBDIR_BUILD}/gnucash", i.e. that these directories
are searched first before any system paths (see
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html).

Did I miss something?

Christian

Am 12.09.19 um 10:45 schrieb Geert Janssens:

Hi Christian,

With the last commit on master it works here now.

Can you retry ?

Geert

Op donderdag 12 september 2019 09:47:43 CEST schreef Geert Janssens:

Hi Christian,

Thanks to your detailed description I can now reproduce the problem when
building master with "make" rather than "ninja".

Turns out there's a hidden circular dependency between engine.scm and
engine- utilities.scm via the call to
(gnc:module-begin-syntax (gnc:module-load "gnucash/engine" 0))

I have a fix ready for this particular case, but there are more of these
so
I'm still working through the others.

Regards,

Geert

Op donderdag 12 september 2019 00:46:13 CEST schreef Christian Gruber:

This thread is related to the build issue I encountered when finally
building PR #574  locally.

Invoking "make all" on current master lead to the following build error
when compiling libgnucash/engine/engine-utilities.scm:

Backtrace:1 (primitive-load-path
"gnucash/engine/gnc-numeric") In ice-9/boot-9.scm:752:25  0
(dispatch-exception _ _ _) ice-9/boot-9.scm:752:25: In procedure
dispatch-exception: In procedure primitive-load-path: Unable to find
file "gnucash/engine/gnc-numeric" in load path

File libgnucash/engine/engine-utilities.scm is built with target
scm-engine-1, therefore the same build error can be reproduced by
invoking "make scm-engine-1" or "make scm-engine" as well.

According to PR #574   I
can preclude, that this is due to reusing a maint build directory, since
I built in a clean and fresh build dir.

Next I tried to build again after moving directories
/usr/lib/x86_64-linux-gnu/gnucash/gnucash and files
/usr/lib/x86_64-linux-gnu/gnucash/libgnc*.so.

After that I uninstalled my GnuCash 3.5, which was installed before from
distros package manager.

Finally I searched my whole system for gnucash directories 

Re: [GNC-dev] Build error with scm-engine on current master

2019-09-13 Thread Geert Janssens
John pushed a fix for your make check error earlier today.

As for the load path, I'm not sure. I know we have had issues with this in the 
past. Perhaps those are solved by now.

Regards,

Geert

Op vrijdag 13 september 2019 21:27:41 CEST schreef Christian Gruber:
> I tried again.
> 
> "make all" works fine now, but "make check" still generates errors. But this
> is probably due to some still missing dependencies, as I already mentioned
> in the previous thread "Need help - several tests fail". When I invoke
> "make check" in a fresh build dir directly after CMake, then the following
> error is generated when compiling gnucash/report/html-chart.scm:
> 
> Backtrace:
> In scripts/compile.scm:
> 259: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 (_ #)
> 235:18 12 (read-and-compile # #:from _ # …)
> 183:32 11 (compile-fold (#) …)
> In ice-9/boot-9.scm:
> 2312:4 10 (save-module-excursion #)
> In language/scheme/compile-tree-il.scm:
>  31:15  9 (_)
> In ice-9/psyntax.scm:
>1235:36  8 (expand-top-sequence ((use-modules (gnucash json #))) _ …)
>1182:24  7 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
> 285:10  6 (parse _ (("placeholder" placeholder)) (()) _ c (# #) #)
> In ice-9/boot-9.scm:
>3377:20  5 (process-use-modules _)
> 222:17  4 (map1 (((gnucash json builder
>3378:31  3 (_ ((gnucash json builder)))
> 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 json builder)
> 
> 
> 
> Instead if I invoke "make all" first after CMake and then "make "check",
> everything builds correctly.
> 
> The target with missing dependencies seems to be scm-report-2.
> 
> 
> 
> Finally I tried to clarify the question, if and how an existing GnuCash
> installation can interfere with the build process, just out of interest.
> In PR #574  you wrote:
> > the linker picks up a 3.x version of gnucash installed system-wide
> 
> And John Ralls wrote:
> > The problem is that Guile loads C libraries with dlopen and that looks on
> > the system path [...] before it looks in the build directory
> But as far as I can see when guile is invoked LD_LIBRARY_PATH is always set
> to "${LIBDIR_BUILD}:${LIBDIR_BUILD}/gnucash", i.e. that these directories
> are searched first before any system paths (see
> http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html).
> 
> Did I miss something?
> 
> Christian
> 
> Am 12.09.19 um 10:45 schrieb Geert Janssens:
> > Hi Christian,
> > 
> > With the last commit on master it works here now.
> > 
> > Can you retry ?
> > 
> > Geert
> > 
> > Op donderdag 12 september 2019 09:47:43 CEST schreef Geert Janssens:
> >> Hi Christian,
> >> 
> >> Thanks to your detailed description I can now reproduce the problem when
> >> building master with "make" rather than "ninja".
> >> 
> >> Turns out there's a hidden circular dependency between engine.scm and
> >> engine- utilities.scm via the call to
> >> (gnc:module-begin-syntax (gnc:module-load "gnucash/engine" 0))
> >> 
> >> I have a fix ready for this particular case, but there are more of these
> >> so
> >> I'm still working through the others.
> >> 
> >> Regards,
> >> 
> >> Geert
> >> 
> >> Op donderdag 12 september 2019 00:46:13 CEST schreef Christian Gruber:
> >>> This thread is related to the build issue I encountered when finally
> >>> building PR #574  locally.
> >>> 
> >>> Invoking "make all" on current master lead to the following build error
> >>> when compiling libgnucash/engine/engine-utilities.scm:
> >>> 
> >>> Backtrace:1 (primitive-load-path
> >>> "gnucash/engine/gnc-numeric") In ice-9/boot-9.scm:752:25  0
> >>> (dispatch-exception _ _ _) ice-9/boot-9.scm:752:25: In procedure
> >>> dispatch-exception: In procedure primitive-load-path: Unable to find
> >>> file "gnucash/engine/gnc-numeric" in load path
> >>> 
> >>> File libgnucash/engine/engine-utilities.scm is built with target
> >>> scm-engine-1, therefore the same build error can be reproduced by
> >>> invoking "make scm-engine-1" or "make scm-engine" as well.
> >>> 
> >>> According to PR #574   I
> >>> can preclude, that this is due to reusing a maint build directory, since
> >>> I built in a clean and fresh build dir.
> >>> 
> >>> Next I tried to build again after moving directories
> >>> 

Re: [GNC-dev] Build error with scm-engine on current master

2019-09-13 Thread Christian Gruber

I tried again.

"make all" works fine now, but "make check" still generates errors. But this is probably due to 
some still missing dependencies, as I already mentioned in the previous thread "Need help - several tests 
fail". When I invoke "make check" in a fresh build dir directly after CMake, then the following error is 
generated when compiling gnucash/report/html-chart.scm:

Backtrace:
In scripts/compile.scm:
   259: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 (_ #)
   235:18 12 (read-and-compile # #:from _ # …)
   183:32 11 (compile-fold (#) …)
In ice-9/boot-9.scm:
   2312:4 10 (save-module-excursion #)
In language/scheme/compile-tree-il.scm:
    31:15  9 (_)
In ice-9/psyntax.scm:
  1235:36  8 (expand-top-sequence ((use-modules (gnucash json #))) _ …)
  1182:24  7 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
   285:10  6 (parse _ (("placeholder" placeholder)) (()) _ c (# #) #)
In ice-9/boot-9.scm:
  3377:20  5 (process-use-modules _)
   222:17  4 (map1 (((gnucash json builder
  3378:31  3 (_ ((gnucash json builder)))
   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 json builder)



Instead if I invoke "make all" first after CMake and then "make "check", 
everything builds correctly.

The target with missing dependencies seems to be scm-report-2.



Finally I tried to clarify the question, if and how an existing GnuCash 
installation can interfere with the build process, just out of interest.

In PR #574  you wrote:


the linker picks up a 3.x version of gnucash installed system-wide


And John Ralls wrote:


The problem is that Guile loads C libraries with dlopen and that looks on the 
system path [...] before it looks in the build directory


But as far as I can see when guile is invoked LD_LIBRARY_PATH is always set to 
"${LIBDIR_BUILD}:${LIBDIR_BUILD}/gnucash", i.e. that these directories are 
searched first before any system paths (see 
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html).

Did I miss something?

Christian



Am 12.09.19 um 10:45 schrieb Geert Janssens:

Hi Christian,

With the last commit on master it works here now.

Can you retry ?

Geert

Op donderdag 12 september 2019 09:47:43 CEST schreef Geert Janssens:

Hi Christian,

Thanks to your detailed description I can now reproduce the problem when
building master with "make" rather than "ninja".

Turns out there's a hidden circular dependency between engine.scm and
engine- utilities.scm via the call to
(gnc:module-begin-syntax (gnc:module-load "gnucash/engine" 0))

I have a fix ready for this particular case, but there are more of these so
I'm still working through the others.

Regards,

Geert

Op donderdag 12 september 2019 00:46:13 CEST schreef Christian Gruber:

This thread is related to the build issue I encountered when finally
building PR #574  locally.

Invoking "make all" on current master lead to the following build error
when compiling libgnucash/engine/engine-utilities.scm:

Backtrace:1 (primitive-load-path
"gnucash/engine/gnc-numeric") In ice-9/boot-9.scm:752:25  0
(dispatch-exception _ _ _) ice-9/boot-9.scm:752:25: In procedure
dispatch-exception: In procedure primitive-load-path: Unable to find
file "gnucash/engine/gnc-numeric" in load path

File libgnucash/engine/engine-utilities.scm is built with target
scm-engine-1, therefore the same build error can be reproduced by
invoking "make scm-engine-1" or "make scm-engine" as well.

According to PR #574   I
can preclude, that this is due to reusing a maint build directory, since
I built in a clean and fresh build dir.

Next I tried to build again after moving directories
/usr/lib/x86_64-linux-gnu/gnucash/gnucash and files
/usr/lib/x86_64-linux-gnu/gnucash/libgnc*.so.

After that I uninstalled my GnuCash 3.5, which was installed before from
distros package manager.

Finally I searched my whole system for gnucash directories and removed
them in /usr/local/... where I previously installed GnuCash built from
source repo.

Everytime I built in a clean and fresh build dir, but the build error
was always the same.

Finally I further investigated sources and found a maybe important
change in file libgnucash/engine/engine.scm made in commit 53f59f7.
Therefore I tried two builds at the end, one with commit 53f59f7 and the
second with commit cb50f7a, which is one commit before 

Re: [GNC-dev] Build error with scm-engine on current master

2019-09-12 Thread Geert Janssens
Hi Christian,

With the last commit on master it works here now.

Can you retry ?

Geert

Op donderdag 12 september 2019 09:47:43 CEST schreef Geert Janssens:
> Hi Christian,
> 
> Thanks to your detailed description I can now reproduce the problem when
> building master with "make" rather than "ninja".
> 
> Turns out there's a hidden circular dependency between engine.scm and
> engine- utilities.scm via the call to
> (gnc:module-begin-syntax (gnc:module-load "gnucash/engine" 0))
> 
> I have a fix ready for this particular case, but there are more of these so
> I'm still working through the others.
> 
> Regards,
> 
> Geert
> 
> Op donderdag 12 september 2019 00:46:13 CEST schreef Christian Gruber:
> > This thread is related to the build issue I encountered when finally
> > building PR #574  locally.
> > 
> > Invoking "make all" on current master lead to the following build error
> > when compiling libgnucash/engine/engine-utilities.scm:
> > 
> > Backtrace:1 (primitive-load-path
> > "gnucash/engine/gnc-numeric") In ice-9/boot-9.scm:752:25  0
> > (dispatch-exception _ _ _) ice-9/boot-9.scm:752:25: In procedure
> > dispatch-exception: In procedure primitive-load-path: Unable to find
> > file "gnucash/engine/gnc-numeric" in load path
> > 
> > File libgnucash/engine/engine-utilities.scm is built with target
> > scm-engine-1, therefore the same build error can be reproduced by
> > invoking "make scm-engine-1" or "make scm-engine" as well.
> > 
> > According to PR #574   I
> > can preclude, that this is due to reusing a maint build directory, since
> > I built in a clean and fresh build dir.
> > 
> > Next I tried to build again after moving directories
> > /usr/lib/x86_64-linux-gnu/gnucash/gnucash and files
> > /usr/lib/x86_64-linux-gnu/gnucash/libgnc*.so.
> > 
> > After that I uninstalled my GnuCash 3.5, which was installed before from
> > distros package manager.
> > 
> > Finally I searched my whole system for gnucash directories and removed
> > them in /usr/local/... where I previously installed GnuCash built from
> > source repo.
> > 
> > Everytime I built in a clean and fresh build dir, but the build error
> > was always the same.
> > 
> > Finally I further investigated sources and found a maybe important
> > change in file libgnucash/engine/engine.scm made in commit 53f59f7.
> > Therefore I tried two builds at the end, one with commit 53f59f7 and the
> > second with commit cb50f7a, which is one commit before 53f59f7. The
> > result was, that commit 53f59f7 leads to the mentioned build error, but
> > commit cb50f7a could successfully be built.
> > 
> > Any ideas?
> > 
> > Christian
> > 
> > ___
> > 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


Re: [GNC-dev] Build error with scm-engine on current master

2019-09-12 Thread Geert Janssens
Hi Christian,

Thanks to your detailed description I can now reproduce the problem when 
building master with "make" rather than "ninja".

Turns out there's a hidden circular dependency between engine.scm and engine-
utilities.scm via the call to
(gnc:module-begin-syntax (gnc:module-load "gnucash/engine" 0))

I have a fix ready for this particular case, but there are more of these so 
I'm still working through the others.

Regards,

Geert

Op donderdag 12 september 2019 00:46:13 CEST schreef Christian Gruber:
> This thread is related to the build issue I encountered when finally
> building PR #574  locally.
> 
> Invoking "make all" on current master lead to the following build error
> when compiling libgnucash/engine/engine-utilities.scm:
> 
> Backtrace:1 (primitive-load-path
> "gnucash/engine/gnc-numeric") In ice-9/boot-9.scm:752:25  0
> (dispatch-exception _ _ _) ice-9/boot-9.scm:752:25: In procedure
> dispatch-exception: In procedure primitive-load-path: Unable to find
> file "gnucash/engine/gnc-numeric" in load path
> 
> File libgnucash/engine/engine-utilities.scm is built with target
> scm-engine-1, therefore the same build error can be reproduced by
> invoking "make scm-engine-1" or "make scm-engine" as well.
> 
> According to PR #574   I
> can preclude, that this is due to reusing a maint build directory, since
> I built in a clean and fresh build dir.
> 
> Next I tried to build again after moving directories
> /usr/lib/x86_64-linux-gnu/gnucash/gnucash and files
> /usr/lib/x86_64-linux-gnu/gnucash/libgnc*.so.
> 
> After that I uninstalled my GnuCash 3.5, which was installed before from
> distros package manager.
> 
> Finally I searched my whole system for gnucash directories and removed
> them in /usr/local/... where I previously installed GnuCash built from
> source repo.
> 
> Everytime I built in a clean and fresh build dir, but the build error
> was always the same.
> 
> Finally I further investigated sources and found a maybe important
> change in file libgnucash/engine/engine.scm made in commit 53f59f7.
> Therefore I tried two builds at the end, one with commit 53f59f7 and the
> second with commit cb50f7a, which is one commit before 53f59f7. The
> result was, that commit 53f59f7 leads to the mentioned build error, but
> commit cb50f7a could successfully be built.
> 
> Any ideas?
> 
> Christian
> 
> ___
> 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


[GNC-dev] Build error with scm-engine on current master

2019-09-11 Thread Christian Gruber
This thread is related to the build issue I encountered when finally 
building PR #574  locally.


Invoking "make all" on current master lead to the following build error 
when compiling libgnucash/engine/engine-utilities.scm:


Backtrace:    1 (primitive-load-path 
"gnucash/engine/gnc-numeric") In ice-9/boot-9.scm:    752:25  0 
(dispatch-exception _ _ _) ice-9/boot-9.scm:752:25: In procedure 
dispatch-exception: In procedure primitive-load-path: Unable to find 
file "gnucash/engine/gnc-numeric" in load path


File libgnucash/engine/engine-utilities.scm is built with target 
scm-engine-1, therefore the same build error can be reproduced by 
invoking "make scm-engine-1" or "make scm-engine" as well.


According to PR #574   I 
can preclude, that this is due to reusing a maint build directory, since 
I built in a clean and fresh build dir.


Next I tried to build again after moving directories 
/usr/lib/x86_64-linux-gnu/gnucash/gnucash and files 
/usr/lib/x86_64-linux-gnu/gnucash/libgnc*.so.


After that I uninstalled my GnuCash 3.5, which was installed before from 
distros package manager.


Finally I searched my whole system for gnucash directories and removed 
them in /usr/local/... where I previously installed GnuCash built from 
source repo.


Everytime I built in a clean and fresh build dir, but the build error 
was always the same.


Finally I further investigated sources and found a maybe important 
change in file libgnucash/engine/engine.scm made in commit 53f59f7. 
Therefore I tried two builds at the end, one with commit 53f59f7 and the 
second with commit cb50f7a, which is one commit before 53f59f7. The 
result was, that commit 53f59f7 leads to the mentioned build error, but 
commit cb50f7a could successfully be built.


Any ideas?

Christian

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel