bugGNU Octave - Bugs: bug #49098, [octave forge] (linear-algebra)...

 
 

bug #49098: [octave forge] (linear-algebra) compiler warnings on build of pgmres.cc

Submitter:  None
Submitted:  Thu 15 Sep 2016 05:37:16 PM UTC
   
 
Category:  Octave Package Severity:  2 - Minor
Priority:  3 - Low Item Group:  Other
Status:  Confirmed Assigned to:  None
Originator Name:  Tomas Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * other
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 27 Sep 2016 10:14:22 PM UTC, comment #3: 

Ok, no response, assuming this is just reporting the compiler warnings on installation. Here is a full log of warnings I see when built with the same warning flags as Octave is:


pgmres.cc: In function ‘octave_value_list Fpgmres(const octave_value_list&, int)’:
pgmres.cc:151:41: warning: ‘octave_idx_type Array<T>::length() const [with T = double; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
                   V = Matrix (b.length (), 1, 0.0);
                                         ^
In file included from /opt/gnu/octave/include/octave-4.2.0-rc2/octave/../octave/Sparse.h:37:0,
                 from /opt/gnu/octave/include/octave-4.2.0-rc2/octave/../octave/MSparse.h:31,
                 from /opt/gnu/octave/include/octave-4.2.0-rc2/octave/../octave/MatrixType.h:29,
                 from /opt/gnu/octave/include/octave-4.2.0-rc2/octave/../octave/mx-base.h:30,
                 from /opt/gnu/octave/include/octave-4.2.0-rc2/octave/../octave/Matrix.h:32,
                 from /opt/gnu/octave/include/octave-4.2.0-rc2/octave/../octave/oct.h:30,
                 from pgmres.cc:16:
/opt/gnu/octave/include/octave-4.2.0-rc2/octave/../octave/Array.h:354:19: note: declared here
   octave_idx_type length (void) const { return numel (); }
                   ^~~~~~
pgmres.cc:188:14: warning: deleting object of abstract class type ‘matrixfreematrix’ which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor]
       delete A;
              ^
pgmres.cc:189:14: warning: deleting object of abstract class type ‘matrixfreematrix’ which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor]
       delete invP;
              ^~~~
pgmres.cc:68:34: warning: unused parameter ‘nargout’ [-Wunused-parameter]
 \n   x0 the initial guess and \
                                  ^


Left to the package maintainer's discretion to fix or not, low priority.

Mike Miller <mtmiller>
Group Member
Thu 15 Sep 2016 05:51:12 PM UTC, comment #2: 

Sorry, I may have misread the report. If you are indeed just reporting the warning messages during compilation, that's fine, but please do clarify.

There are in fact many more warning messages when installing with the latest version of Octave, I can add those to this bug report if that was indeed your intent.

Mike Miller <mtmiller>
Group Member
Thu 15 Sep 2016 05:45:24 PM UTC, comment #1: 

The messages you quoted are warnings, which should not prevent the package from installing.

Did the package actually fail to install? And if so what was the error message?

What version of Octave are you using?

Mike Miller <mtmiller>
Group Member
Thu 15 Sep 2016 05:37:16 PM UTC, original submission:  

These flags appear when installing the package:

>> pkg install -auto linear-algebra-2.2.2.tar.gz

pgmres.cc: In function 'octave_value_list Fpgmres(const octave_value_list&, int)':
pgmres.cc:188:14: warning: deleting object of abstract class type 'matrixfreematrix' which has non-virtual destructor will cause undefi
ned behaviour [-Wdelete-non-virtual-dtor]
       delete A;
              ^
pgmres.cc:189:14: warning: deleting object of abstract class type 'matrixfreematrix' which has non-virtual destructor will cause undefi
ned behaviour [-Wdelete-non-virtual-dtor]
       delete invP;


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by avinoam (Updated the item)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-13 jwe Summarylinear algebra: compiler warnings on build of pgmres.cc [octave forge] (linear-algebra) compiler warnings on build of pgmres.cc
    2016-09-27 mtmiller Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupInstallation Failure Other
        StatusNeed Info Confirmed
        Operating SystemMicrosoft Windows Any
        SummaryWarnings while installing linear algebra package linear algebra: compiler warnings on build of pgmres.cc
    2016-09-15 avinoam SummaryFlags while isntalling packega linear algebra Warnings while installing linear algebra package
    2016-09-15 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code