[Slackbuilds-users] ponce.org - can't compile gnucash-3.7
Diego Borghetti
bdiego at pm.me
Thu Oct 24 11:39:25 UTC 2019
Hi,
Not sure if it's the same error, but there is an email from Lenard Spencer (Sep 22):
---
Just a heads up to everyone who uses Gnucash on -current, the new glib2 broke the build using the script from 14.2/master. The fix is simple - put these two lines before the cmake command:
export CC=clang
export CXX=clang++
This will be addressed in SBo when 15.0 is released.
---
Cheers,
Diego
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, October 23, 2019 6:30 PM, mcmurchy1917techy via SlackBuilds-users <slackbuilds-users at slackbuilds.org> wrote:
> I've got a reasonably up to date current with multilib and ktown.
>
> Trying to compile gnucash-3.7, downloaded from ponce this morning, and get this
>
>> /tmp/SBo/gnucash-3.7/libgnucash/engine/gnc-budget.c: In function 'gnc_budget_get_rec_time':
>> /tmp/SBo/gnucash-3.7/libgnucash/engine/gnc-budget.c:724:13: error: G_ADD_PRIVATE [-Werror]
>> 724 | return recurrenceGetTime(&(GET_PRIVATE(bgt)->recurrence));
>> | ^~~~~~~~~~~~~~~
>> cc1: all warnings being treated as errors
>> make[2]: *** [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:237: libgnucash/engine/CMakeFiles/gncmod-engine.dir/Transaction.c.o] Error 1
>> make[2]: *** Waiting for unfinished jobs....
>> cc1: all warnings being treated as errors
>> make[2]: *** [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:307: libgnucash/engine/CMakeFiles/gncmod-engine.dir/gnc-budget.c.o] Error 1
>> cc1plus: all warnings being treated as errors
>> make[2]: *** [libgnucash/engine/CMakeFiles/gncmod-engine.dir/build.make:69: libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o] Error 1
>> make[1]: *** [CMakeFiles/Makefile2:3965: libgnucash/engine/CMakeFiles/gncmod-engine.dir/all] Error 2
>> make: *** [Makefile:163: all] Error 2
>
> Took the advice of the error log and changed the gnucash.SlackBuild, to ignore warnings, as follows -
>
>> 51c51
>> < SLKCFLAGS="-O2 -fPIC"
>> ---
>>> SLKCFLAGS="-O2 -fPIC -Wno-error"
>
> It now compiles successfully. Have I -
>
> - missed some new instructions on this list
> - got something missing on my system
> - or now simply do have to ignore warnings
> - or something else
>
> Comments will be most welcome.
>
> Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20191024/bbf937d6/attachment.htm>
More information about the SlackBuilds-users
mailing list