Re: [GNC] 4.12 ERROR: In procedure scm-error: no code for module (gnucash utilities)

2022-10-25 Thread Derek Atkins
Hi,

It looks like you still have a version of GnuCash installed into /usr/local

That is going to take precedence, and interact with your compiled version.

You need to remove all remnants for GnuCash from /usr/local.

-derek

On Tue, October 25, 2022 5:02 pm, osbert wrote:
> Hi,
>
> I have now also followed the advice given by John and Derek:
>    cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash and
>    sudo make install
>
> Gnucash 4.12 is now running :)  Thanks for your feedback :)
>
> However the terminal prints out these error messages:
> # --- std-out ---
> $ gnucash
> This is a development version. It may or may not work.
> Report bugs and other problems to gnucash-de...@gnucash.org
> You can also lookup and file bug reports at https://bugs.gnucash.org
> To find the last stable version, please refer to https://www.gnucash.org/
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/utilities.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;;   or pass the --no-auto-compile argument to disable.
> ;;; compiling /usr/local/share/guile/site/2.2/gnucash/utilities.scm
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/core-utils.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; compiling /usr/local/share/guile/site/2.2/gnucash/core-utils.scm
> ;;; compiled
> /home/osbert/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/share/guile/site/2.2/gnucash/core-utils.scm.go
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; compiling /usr/local/share/guile/site/2.2/gnucash/engine.scm
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine/business-core.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; compiling
> /usr/local/share/guile/site/2.2/gnucash/engine/business-core.scm
> ;;; compiled
> /home/osbert/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/share/guile/site/2.2/gnucash/engine/business-core.scm.go
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine/gnc-numeric.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; compiling
> /usr/local/share/guile/site/2.2/gnucash/engine/gnc-numeric.scm
> ...
>
> Is that something that can be avoided/corrected - or just ignored (I did
> remove the guile folder inside the .cache directory)?
>
> Thanks & regards,
> Osbert
>
>
> On 25.10.22 12:19, John Ralls wrote:
>> Because
>> >/-- Installing: /opt/bin/gnucash /
>> You told CMake -DCMAKE_INSTALL_PREFIX=/opt. If you want GnuCash
>> installed in /opt/gnucash then you have to tell cmake
>> -DCMAKE_INSTALL_PREFIX=/opt/gnucash.
>>
>> Regards,
>> John Ralls
>>
>
> On 25.10.22 14:02, Derek Atkins wrote:
>> Hi,
>>
>> I do not see a "make install" in here.
>>
>> You cannot run GnuCash from the build tree, you need to install it to
>> run it.
>>
>> -derek
>>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] 4.12 ERROR: In procedure scm-error: no code for module (gnucash utilities)

2022-10-25 Thread osbert

Hi,

I have now also followed the advice given by John and Derek:
  cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash and
  sudo make install

Gnucash 4.12 is now running :)  Thanks for your feedback :)

However the terminal prints out these error messages:
# --- std-out ---
$ gnucash
This is a development version. It may or may not work.
Report bugs and other problems to gnucash-de...@gnucash.org
You can also lookup and file bug reports at https://bugs.gnucash.org
To find the last stable version, please refer to https://www.gnucash.org/
;;; WARNING: loading compiled file 
/usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/utilities.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"

;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;   or pass the --no-auto-compile argument to disable.
;;; compiling /usr/local/share/guile/site/2.2/gnucash/utilities.scm
;;; WARNING: loading compiled file 
/usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/core-utils.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"

;;; compiling /usr/local/share/guile/site/2.2/gnucash/core-utils.scm
;;; compiled 
/home/osbert/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/share/guile/site/2.2/gnucash/core-utils.scm.go
;;; WARNING: loading compiled file 
/usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"

;;; compiling /usr/local/share/guile/site/2.2/gnucash/engine.scm
;;; WARNING: loading compiled file 
/usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine/business-core.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
;;; compiling 
/usr/local/share/guile/site/2.2/gnucash/engine/business-core.scm
;;; compiled 
/home/osbert/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/share/guile/site/2.2/gnucash/engine/business-core.scm.go
;;; WARNING: loading compiled file 
/usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine/gnc-numeric.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"

;;; compiling /usr/local/share/guile/site/2.2/gnucash/engine/gnc-numeric.scm
...

Is that something that can be avoided/corrected - or just ignored (I did 
remove the guile folder inside the .cache directory)?


Thanks & regards,
Osbert


On 25.10.22 12:19, John Ralls wrote:

Because
>/-- Installing: /opt/bin/gnucash /
You told CMake -DCMAKE_INSTALL_PREFIX=/opt. If you want GnuCash installed in 
/opt/gnucash then you have to tell cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash.

Regards,
John Ralls



On 25.10.22 14:02, Derek Atkins wrote:

Hi,

I do not see a "make install" in here.

You cannot run GnuCash from the build tree, you need to install it to run it.

-derek


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] 4.12 ERROR: In procedure scm-error: no code for module (gnucash utilities)

2022-10-25 Thread osbert

Hi Geert,

thanks for your feedback which is very much appreciated. Yes, in fact I 
had installed version 4.8 before compiling, but removed it with the 
command 'sudo make uninstall'. I followed your advice and removed the 
guile entry in the .cache directory as recommended but it didn't make 
any difference. I am still getting the same error (after I run through 
the whole compilation process again).


Regards,
Osbert

On 25.10.22 18:20, Geert Janssens wrote:


Op dinsdag 25 oktober 2022 14:02:28 CEST schreef Derek Atkins:

> Hi,

>

> I do not see a "make install" in here.

>

> You cannot run GnuCash from the build tree, you need to install it 
to run


> it.

>

That's actually no longer the case. With the switch to cmake the build 
system has also been transformed to be able to run GnuCash from the 
build tree.



In fact I do this all the time.


As for the original issue: do you have another gnucash installed 
somewhere ? Or do you have cached *.go files under


$HOME/.cache/guile/ccache//$HOME/Applications/

You may want to remove these just in case they are interfering. 
There's no risk, they are just cache files and will be recreated if 
needed.



Regards,


Geert


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] 4.12 ERROR: In procedure scm-error: no code for module (gnucash utilities)

2022-10-25 Thread Geert Janssens
Op dinsdag 25 oktober 2022 14:02:28 CEST schreef Derek Atkins:
> Hi,
> 
> I do not see a "make install" in here.
> 
> You cannot run GnuCash from the build tree, you need to install it to run
> it.
> 
That's actually no longer the case. With the switch to cmake the build system 
has also been 
transformed to be able to run GnuCash from the build tree.

In fact I do this all the time.

As for the original issue: do you have another gnucash installed somewhere ? Or 
do you 
have cached *.go files under 
$HOME/.cache/guile/ccache//$HOME/Applications/
You may want to remove these just in case they are interfering. There's no 
risk, they are just 
cache files and will be recreated if needed.

Regards,

Geert
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] 4.12 ERROR: In procedure scm-error: no code for module (gnucash utilities)

2022-10-25 Thread john



> On Oct 25, 2022, at 8:06 AM, osbert  wrote:
> thanks for your reply.  I have now run the install command, but no binary is 
> installed to /opt/gnucash/bin
> I hope this makes sense to someone here, because it doesn't really to me.

Because
> -- Installing: /opt/bin/gnucash

You told CMake -DCMAKE_INSTALL_PREFIX=/opt. If you want GnuCash installed in 
/opt/gnucash then you have to tell cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash.

Regards,
John Ralls

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] 4.12 ERROR: In procedure scm-error: no code for module (gnucash utilities)

2022-10-25 Thread Derek Atkins
Hi,

I do not see a "make install" in here.

You cannot run GnuCash from the build tree, you need to install it to run it.

-derek

On Tue, October 25, 2022 1:54 am, osbert wrote:
> On:
> cat /etc/os-release
> NAME="Linux Mint"
> VERSION="20 (Ulyana)"
>
> aqbanking-cli versions
> Versions:
>   AqBanking-CLI: 6.5.3
>   Gwenhywfar   : 5.9.0.0
>   AqBanking    : 6.5.3.0
>
> After successfully installing aqbanking 6.5.3 I was also able to compile
> gnucash 4.12 without getting any error message by running the commands
> below.
> However if I run the executable from
> ~/Applications/gnucash-4.12/build-gnucash-4.12/bin/gnucash
> I get the message: ERROR: In procedure scm-error: no code for module
> (gnucash utilities)
>
> Here is what I have done:
>
> cd ~/Applications/gnucash-4.12
> mkdir build-gnucash-4.12
> cd build-gnucash-4.12
> cmake -DCMAKE_INSTALL_PREFIX=/opt  ..
> # --- std-out -
> -- The C compiler identification is GNU 9.4.0
> -- The CXX compiler identification is GNU 9.4.0
> -- Check for working C compiler: /usr/bin/cc
> ...
> -- Performing Test standard_math_library_linked_to_automatically - Success
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> ~/Applications/gnucash-4.12/build-gnucash-4.12
>
> make
> # --- std-out -
> Scanning dependencies of target guile-json-details-links
> [  0%] Generating ../../share/guile/site/2.2/gnucash/json/builder.scm
> [  0%] Generating ../../share/guile/site/2.2/gnucash/json/parser.scm
> [  0%] Generating ../../share/guile/site/2.2/gnucash/json/syntax.scm
> [  0%] Built target guile-json-details-links
> ...
> Scanning dependencies of target swig-gnucash-core
> [100%] Generating gnucash_core.c, gnucash_core_c.py
> [100%] Built target swig-gnucash-core
>
> ~/Applications/gnucash-4.12/build-gnucash-4.12/bin/gnucash
> # --- std-out -
> ;;; WARNING: loading compiled file
> /home/osbert/Applications/gnucash-4.12/build-gnucash-4.12/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/utilities.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; WARNING: loading compiled file
> /home/osbert/Applications/gnucash-4.12/build-gnucash-4.12/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/app-utils.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;;   or pass the --no-auto-compile argument to disable.
> ;;; compiling
> /home/osbert/Applications/gnucash-4.12/build-gnucash-4.12/share/guile/site/2.2/gnucash/app-utils.scm
> ;;; WARNING: loading compiled file
> /home/osbert/Applications/gnucash-4.12/build-gnucash-4.12/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/utilities.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; WARNING: compilation of
> /home/osbert/Applications/gnucash-4.12/build-gnucash-4.12/share/guile/site/2.2/gnucash/app-utils.scm
> failed:
> ;;; ERROR: no code for module (gnucash utilities)
> ;;; WARNING: loading compiled file
> /home/osbert/Applications/gnucash-4.12/build-gnucash-4.12/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/utilities.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> Backtrace:
> In ice-9/boot-9.scm:
>   160: 19 [catch #t # ...]
> In unknown file:
>     ?: 18 [apply-smob/1 #]
> In ice-9/boot-9.scm:
> 3589: 17 [process-use-modules (((gnucash app-utils)))]
>   705: 16 [map # (mif-args)> ((#))]
> 3590: 15 [# (mif-args)> (#)]
> 2867: 14 [resolve-interface (gnucash app-utils) #:select ...]
> 2792: 13 [# #:optional autoload version #:key ensure)> # ...]
> 3068: 12 [try-module-autoload (gnucash app-utils) #f]
> 2404: 11 [save-module-excursion # ice-9/boot-9.scm:3069:17 ()>]
> 3088: 10 [#]
> In unknown file:
>     ?: 9 [primitive-load-path "gnucash/app-utils" ...]
> In ice-9/eval.scm:
>   505: 8 [#
> (use-modules #)]
> In ice-9/psyntax.scm:
> 1106: 7 [expand-top-sequence ((use-modules (gnucash utilities))) () ...]
>   989: 6 [scan ((use-modules (gnucash utilities))) () ...]
>   279: 5 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
> In ice-9/boot-9.scm:
> 3589: 4 [process-use-modules (((gnucash utilities)))]
>   705: 3 [map # (mif-args)> ((#))]
> 3590: 2 [# (mif-args)> (#)]
> 2870: 1 [resolve-interface (gnucash utilities) #:select ...]
> In unknown file:
>     ?: 0 [scm-error misc-error #f ...]
>
> ERROR: In procedure scm-error:
> ERROR: no code for module (gnucash utilities)
> # --- end ---
>
> Any help/feedback is very much appreciated. Thanks.
>