[Slackbuilds-users] ponce.org - can't compile gnucash-3.7

mcmurchy1917techy mcmurchy1917techy at btinternet.com
Fri Oct 25 11:27:14 UTC 2019


Thanks Diego

Even though I posted this to the wrong list, this problem was on current 
whereas this list should deal solely with current.

Anyway, your advice to add

 > export CC=clang
 > export CXX=clang++

worked for me.

Thanks

On 24/10/2019 12:39, Diego Borghetti wrote:
> 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 -
>>
>>  1. missed some new instructions on this list
>>  2. got something missing on my system
>>  3. or now simply do have to ignore warnings
>>  4. 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/20191025/39b971a8/attachment-0001.htm>


More information about the SlackBuilds-users mailing list