bugGNU Octave - Bugs: bug #62554, [octave forge] (nan) nan 3.7.0...

 
 

bug #62554: [octave forge] (nan) nan 3.7.0 errors and warnings on install

Submitter:  Nicholas Jankowski <nrjank>
Submitted:  Wed 01 Jun 2022 02:18:37 AM UTC
   
 
Category:  Octave Package Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Nicholas Jankowski Open/Closed:  * Open
Release:  * other Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 01 Jun 2022 06:00:35 PM UTC, comment #1: 

updating - re ran a 'pkg install -forge nan' on another 6.4.0 install that had not yet been updated from nan 3.6.0. Most of the same shadowing warnings messages appeared, but I also got ./configure and readlink messages I hadn't gotten before:


octave:2> pkg install -forge -global nan
./configure: line 3811: which: command not found
readlink: missing operand
Try 'readlink --help' for more information.
ls: cannot access './bin/mexext': No such file or directory
svm.cpp: In constructor 'Cache::Cache(int, long int)':
svm.cpp:135:7: warning: conversion from 'long long unsigned int' to 'long int' may change value [-Wconversion]
  135 |  size /= sizeof(Qfloat);
      |  ~~~~~^~~~~~~~~~~~~~~~~
svm.cpp:136:7: warning: conversion from 'long long unsigned int' to 'long int' may change value [-Wconversion]
  136 |  size -= l * sizeof(head_t) / sizeof(Qfloat);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: function C:\devtools\Octave\octave-6.4.0-w64\mingw64\share\octave\packages\nan-3.7.0\center.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 823 column 5
    install at line 235 column 7
    pkg at line 568 column 9

...


updating report header accordingly

Nicholas Jankowski <nrjank>
Group Member
Wed 01 Jun 2022 02:18:37 AM UTC, original submission:  

with a fresh install of Octave 7.1.0 on Windows 10 (using 7z package and after running the post-install.bat script), calling

pkg update -global

produces the following set of warnings/errors. The warnings are clearly from the nan package. although not as clear, the first set of messages also appear to be from the nan package, based on there being no intermediate 'for information about changes from previous...' message, but I haven't confirmed this.


octave:1> pkg update -global
For information about changes from previous versions of the generate_html package, run 'news generate_html'.
For information about changes from previous versions of the optim package, run 'news optim'.
For information about changes from previous versions of the struct package, run 'news struct'.
warning: pkg: package biosig not found on Octave Forge - skipping update
For information about changes from previous versions of the zeromq package, run 'news zeromq'.
For information about changes from previous versions of the signal package, run 'news signal'.
ls: cannot access './bin/mexext': No such file or directory
svm.cpp: In constructor 'Cache::Cache(int, long int)':
svm.cpp:136:14: warning: conversion from 'long long unsigned int' to 'long int' may change value [-Wconversion]
  136 |         size -= l * sizeof(head_t) / sizeof(Qfloat);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
svm.cpp: In function 'decision_function svm_train_one(const svm_problem*, const svm_parameter*, double, double)':
svm.cpp:1710:13: warning: 'si.Solver::SolutionInfo::rho' may be used uninitialized [-Wmaybe-uninitialized]
 1710 |         info("obj = %f, rho = %f\n",si.obj,si.rho);
      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
svm.cpp:1690:30: note: 'si' declared here
 1690 |         Solver::SolutionInfo si;
      |                              ^~
svm.cpp:1710:13: warning: 'si.Solver::SolutionInfo::obj' may be used uninitialized [-Wmaybe-uninitialized]
 1710 |         info("obj = %f, rho = %f\n",si.obj,si.rho);
      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
svm.cpp:1690:30: note: 'si' declared here
 1690 |         Solver::SolutionInfo si;
      |                              ^~
warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\center.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\corrcoef.m shadows a core library function
warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\cov.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\detrend.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\iqr.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\kurtosis.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\mad.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\mean.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\meansq.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\median.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\moment.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\prctile.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\quantile.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\range.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\ranks.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\skewness.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\spearman.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\std.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\sumsq.m shadows a built-in function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\var.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

warning: function C:\Programs\Octave\octave-7.1.0-w64\mingw64\share\octave\packages\nan-3.7.0\zscore.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 603 column 9
    pkg at line 779 column 11

For information about changes from previous versions of the nan package, run 'news nan'.


The latter warnings are generally inconsequential, but is it expected to get all such shadow warnings on install versus just on pkg load? I would suggest that a flood of such warnings are not necessarily useful there, perhaps unless -verbose has been requested.

The former warning may be more concerning, but it didn't seem to prevent package install.

Nicholas Jankowski <nrjank>
Group Member

 

(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 nrjank (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-06-01 nrjank Release7.1.0 other
        Summary[octave forge] (nan) pkg update with nan 3.7.0 produces long series of warnings [octave forge] (nan) nan 3.7.0 errors and warnings on install

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code