[GNC] compiling 3.2 stops at core-utils.go ( non-urgent -- can use debian package 2.6.15-1

David Cousens davidcousens at bigpond.com
Thu Sep 6 02:56:05 EDT 2018


John

With the commands you used, you created a source directory gnucash with parent directory moresource, but you did not
create a build directory and you ran cmake in the source directory gnucash not in a separate build directory. cmake
requires an empty build directory. It can either be a child of moresource or of the source directory gnucash. This works
for compiling the program (but if you were compiling the documentation it would have to be a child of moresource because
of a dependency problem with the documentation sources).

The commands you need are:

cd /moresource
git clone https://github.com/Gnucash/gnucash.git gnucash
mkdir build-gnucash
cd build-gnucash
cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /moresource/gnucash
make
make install

This will create build as a child of moresource, put the build files in the build directory and then install to
$HOME/.local.

To uninstall from $HOME/.local (assuming you don't change the build directory after installing (make uses a file
install.manifest created in the build directory, build-gnucash to uninstall) open a shell, then type. 

cd /moresource/build-gnucash
make uninstall

Hope this makes it a bit clearer

David

On Tue, 2018-09-04 at 11:12 -0500, John Griessen wrote:
> On 09/02/2018 10:40 AM, Colin Law wrote:
> > Don't try and install to the source or build directory, if that is
> > what you are trying to do.
> 
> No, they were not the same dir.  This is not urgent now, but a mystery.
> I have started using 2.6.15-1 gnucash successfully, so not urgent.
> 
> Today I also tried from scratch from git and same result almost:
> 
> cd /moresource
> git clone https://github.com/Gnucash/gnucash.git gnucash
> git checkout -b gnucash3.2 3.2
> cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /moresource/gnucash
> make
> 
> 
> .
> .
> .
> [ 28%] Building C object libgnucash/app-utils/CMakeFiles/gncmod-app-utils.dir/guile-util.c.o
> [ 28%] Building C object libgnucash/app-utils/CMakeFiles/gncmod-app-utils.dir/option-util.c.o
> [ 28%] Building C object libgnucash/app-utils/CMakeFiles/gncmod-app-utils.dir/swig-app-utils-guile.c.o
> [ 28%] Linking C shared library ../../lib/gnucash/libgncmod-app-utils.so
> [ 28%] Built target gncmod-app-utils
> Scanning dependencies of target swig-app-utils-python
> [ 28%] Generating swig-app-utils-python.c, sw_app_utils.py
> [ 28%] Built target swig-app-utils-python
> Scanning dependencies of target scm-gnc-module
> [ 28%] Generating ../../lib/gnucash/scm/ccache/2.2/gnucash/gnc-module.go
> wrote `/mosource/gnucash/build/lib/gnucash/scm/ccache/2.2/gnucash/gnc-module.go'
> [ 28%] Built target scm-gnc-module
> Scanning dependencies of target scm-core-utils
> [ 28%] Generating ../../lib/gnucash/scm/ccache/2.2/gnucash/core-utils.go
> Backtrace:
> In /usr/bin/guild:
>      72:17 19 (main _)
> In srfi/srfi-1.scm:
>      640:9 18 (for-each #<procedure 55653d24c900 at scripts/compile.…> …)
> In scripts/compile.scm:
>     259:26 17 (_ _)
> In system/base/target.scm:
>       57:6 16 (with-target _ _)
> In system/base/compile.scm:
>      152:6 15 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ …)
>       43:4 14 (call-once _)
> In ice-9/boot-9.scm:
>      841:4 13 (with-throw-handler _ _ _)
> In system/base/compile.scm:
>      59:11 12 (_)
>     155:11 11 (_ #<closed: file 55653d23b230>)
>     235:18 10 (read-and-compile #<input: core-utils.scm 13> #:from _ # …)
>     183:32  9 (compile-fold (#<procedure compile-tree-il (x e opts)>) …)
> In ice-9/boot-9.scm:
>     2312:4  8 (save-module-excursion #<procedure 55653d4799e0 at lang…>)
> In language/scheme/compile-tree-il.scm:
>      31:15  7 (_)
> In ice-9/psyntax.scm:
>    1235:36  6 (expand-top-sequence ((re-export #)) _ _ #f c (# load …) …)
>    1182:24  5 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
>     285:10  4 (parse _ (("placeholder" placeholder)) (()) _ c&e (# #) #)
> In ice-9/boot-9.scm:
>    2071:24  3 (call-with-deferred-observers #<procedure 55653d4794e0 …>)
>     260:13  2 (for-each #<procedure 55653d4793a0 at ice-9/boot-9.scm…> …)
> In unknown file:
>             1 (scm-error misc-error #f "~A ~S" ("Undefined variab…" …) …)
> In ice-9/boot-9.scm:
>     752:25  0 (dispatch-exception _ _ _)
> 
> ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
> Undefined variable: gnc-build-userdata-path
> make[2]: *** [libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/build.make:62:
> lib/gnucash/scm/ccache/2.2/gnucash/core-utils.go] 
> Error 1
> make[1]: *** [CMakeFiles/Makefile2:4053: libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/all] Error 2
> make: *** [Makefile:163: all] Error 2
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


More information about the gnucash-user mailing list