pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSPP buil error: control reaches end of non-void function [-Werror=r


From: John Darrington
Subject: Re: PSPP buil error: control reaches end of non-void function [-Werror=return-type]
Date: Sat, 22 Aug 2020 13:43:21 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

On Sat, Aug 22, 2020 at 09:48:11AM +0300, opensuse.lietuviu.kalba wrote:
     As I see from build log, openSUSE Tumbleweed now use recent gcc10
     (10.2.1+git501)

This is a version which the gcc developers have not yet released.  Also I think
that this configuration is still treating some warnings as errors.    Both these
things are fine if you want to live on the bleeding edge, but IMO are not
sensible if your goal is simply to build PSPP for a particular platform.

I've just built pspp from scratch using gcc-10.2.0 and it builds without error
(there are a few warnings).  I will try to eliminate these warnings soon, but
getting a source which will emit no warnings on *any* tool chain is neither
feasible nor sensible.

J'

     
     --
     Regards,
     Mindaugas
     
     2020-08-22 09:40, John Darrington ra????:
     > Can you say what compiler you are using?
     > 
     > J'
     > 
     > On Fri, Aug 21, 2020 at 10:17:47PM +0300, opensuse.lietuviu.kalba wrote:
     >       2020-08-21 20:42, John Darrington ra????:
     >       > I think you can override this with -Wno-error=return-type  or 
something similar.
     >       > It differs with according to gcc version.   Please check the 
documentation for
     >       > whatever gcc version you are using.
     >       Thanks. I re-enabled libpsppire-glade?? and I tried to use
     >       -Wno-error=return-type . Compilation still aborted for openSUSE
     >       Tumbleweed, but now at:
     >       [  382s] ./src/language/stats/aggregate.h:54:30: error: function 
'agr_func_tab' redeclared as variable
     >       [  382s]    54 | extern const struct agr_func agr_func_tab[];
     >       [  382s]       |                              ^
     >       [  382s] src/ui/gui/dummy.c:47:5: note: previously declared here
     >       [  382s]    47 | int agr_func_tab () {}
     >       [  382s]       |     ^
     >       [  382s] lto1: fatal error: errors during merging of translation 
units
     >       [  382s] compilation terminated.
     >       [  382s] lto-wrapper: fatal error: gcc returned 1 exit status
     >       [  382s] compilation terminated.
     >       See build log for more details.
     >       openSUSE 15.2 and older systems had no such problem.
     >       Thus I will continue to use patch to prevent libpsppire-glade 
compilation.
     >       --
     >       Regards,
     >       Mindaugas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]