FS#54270 - [gnucash] ERROR: In procedure make_objcode_from_file: bad header on object file

Attached to Project: Arch Linux
Opened by AMM (amish) - Friday, 02 June 2017, 11:27 GMT
Last edited by Jürgen Hötzel (juergen) - Tuesday, 20 June 2017, 16:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Running gnucash gives lots of errors like this.

;;; WARNING: loading compiled file /usr/lib/gnucash/scm/ccache/2.0/gnucash/report/utility-reports.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"

Additional info:
* package version(s)
2.6.16-1 and 2.6.16-2

* config and/or log files etc.
Happens for the "go" files /usr/lib/gnucash/scm/ccache/2.0/

Steps to reproduce:
run gnucash

More details:
https://bbs.archlinux.org/viewtopic.php?id=225581
and
https://forum.manjaro.org/t/gnucash-2-6-16-1-update-issues/24750

Solution:
As per manjaro.org and based on recent changes to PKGBUILD

Following seems to be solution:

depends change from guile2.0 back to just guile
and remove --with-guile=2.0

i.e. revert this commit made on 2017-04-02
https://git.archlinux.org/svntogit/packages.git/commit/trunk/PKGBUILD?h=packages/gnucash&id=9ede568ac253df357e38c1dbbb046fb454720f1d

PS: I am not sure if this ERROR affects anything runtime. But if it does then it may corrupt gnucash file which can cause loss of important financial/monetary data OR create wrong reports. Hence to not take any chance I have set severity to High.
This task depends upon

Closed by  Jürgen Hötzel (juergen)
Tuesday, 20 June 2017, 16:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  I apologize for the inconvenience

In line with your suggestion I removed "--with-guile=2.0" and released gnucash-2.6.16-3-

Comment by Doug Newgard (Scimmia) - Monday, 12 June 2017, 15:54 GMT
Hmm, no other votes, not other people getting notifications, and no comments. This is almost certainly something on your machine.
Comment by AMM (amish) - Monday, 12 June 2017, 16:27 GMT
No other votes - may be because not many arch users use gnucash? (and may be because noone notices the error which appears ONLY if you run gnucash from terminal). If you run gnucash from menu - errors occur but dont get displayed and hence dont get noticed.

Please check two links I posted .. there are atleast 4 people who have same issue. Two (including me) using Arch and other two using Manjaro (which is Arch based)

Also I have also pasted link to commit after which error has appeared.

> pacman -Qkk gnucash guile guile1.8 guile2.0
gnucash: 1449 total files, 0 altered files
guile: 856 total files, 0 altered files
guile1.8: 312 total files, 0 altered files
guile2.0: 763 total files, 0 altered files

Related packages used are AS IS. No change is done by me.

Error, it appears, occurs because packager (TU) uses guile2.0 when compiling the package.

But when gnucash runs - it uses guile2.2 (the latest version) and starts showing errors due to version incompatibilities.

Loading...