Re: [GNC-dev] Error building stable

john <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <[email protected]>
Herbert,

Hmm, I tested with gcc 8, 9, 10, and 12 . What version are you using?

The SWIG version doesn't matter as long as it's at least 3.0.12.

Regards,
John Ralls

> On Apr 2, 2023, at 8:59 AM, Herbert Thoma <[email protected]> wrote:
> 
> Hi John, Maarten,
> 
> thnaks for the fixes. This error is now gone on my machine.
> But it finds another one a bit later:
> 
> [ 20%] Building CXX object bindings/guile/CMakeFiles/gnucash-guile.dir/swig-engine.cpp.o
> /home/tma/gnucash/gnucash_cvs/build_stable/bindings/guile/swig-engine.cpp: In function ‘GncMultichoiceOptionIndexVec scm_to_multichoices(SCM, const GncOptionMultichoiceValue&)’:
> /home/tma/gnucash/gnucash_cvs/build_stable/bindings/guile/swig-engine.cpp:2153:28: error: variable ‘empty’ set but not used [-Werror=unused-but-set-variable]
>         static const char* empty{""};
>                            ^~~~~
> cc1plus: all warnings being treated as errors
> 
> I understand that this is an autogenerated file. My version of swig is:
> 
> SWIG Version 3.0.12
> 
> Compiled with g++ [x86_64-suse-linux-gnu]
> 
> Configured options: +pcre
> 
> Best,
> Herbert.
> 
> Am 02.04.23 um 17:36 schrieb john:
>>> On Apr 2, 2023, at 1:38 AM, Maarten Bosmans <[email protected]> wrote:
>>> 
>>> Op ma 27 mrt 2023 om 17:59 schreef Herbert Thoma
>>> <[email protected]>:
>>>> /home/tma/gnucash/gnucash_cvs/gnucash_stable/libgnucash/engine/gnc-option.cpp:448:35:   required from here
>>>> /home/tma/gnucash/gnucash_cvs/gnucash_stable/libgnucash/engine/gnc-option-impl.hpp:331:45: error: variable ‘value’ set but not used [-Werror=unused-but-set-variable]
>>>> cc1plus: all warnings being treated as errors
>>> 
>>> This is fixed in my PR #1582  (
>>> https://github.com/Gnucash/gnucash/pull/1582/commits/9a3316bea883e46737abc12d35e76e625de3c2e2
>>> )
>>> I still need to push a new version of that though, taking care of all
>>> the review remarks that I got.
>> That along with other workarounds for deficiencies in gcc 8 & 9, is already committed in https://github.com/Gnucash/gnucash/commit/9fa2a48fe17ead2791b9481ef9ce61a2ac8ddbeb.
>> Regards,
>> John Ralls
>> _______________________________________________
>> gnucash-devel mailing list
>> [email protected]
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.