bugGNU Octave - Bugs: bug #67224, Package Optim won't install

 
 

bug #67224: Package Optim won't install

Submitter:  peterXP <peterxp2>
Submitted:  Thu 19 Jun 2025 01:26:26 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  peterXP Open/Closed:  * Open
Release:  * 10.2.0 Release: 
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 19 Jun 2025 05:34:21 PM UTC, comment #3: 

CC'ing package maintainer.

@i7tiol: Are you planning to release a version of the optim package that is compatible with Octave 10?

Markus Mützel <mmuetzel>
Group administrator
Thu 19 Jun 2025 03:38:22 PM UTC, comment #2: 

Hi Swayam,

Thanks for your reply.  I'm not sure that I would've spotted the relevance of 65526 otherwise. 

Is it only a subset of users that are experiencing this problem?  If, on the other hand, everyone trying to install optim has this problem, do you think there's any chance the patch will be incorporated in the standard release?  

Thanks and regards

peterXP <peterxp2>
Thu 19 Jun 2025 03:16:59 PM UTC, comment #1: 

You can refer to the bug report below, resolving the same issue as yours:
https://savannah.gnu.org/bugs/?65526

Sonu0305 <swayamshah>
Thu 19 Jun 2025 01:26:26 PM UTC, original submission:  

I have Octave 10.2 with the following packages installed

audio  |   2.0.9 | /home/peter/.var/app/org.octave.Octave/data/octave/api-v60/packages/audio-2.0.9
control  |   4.1.2 | /home/peter/.var/app/org.octave.Octave/data/octave/api-v60/packages/control-4.1.2
statistics  |   1.7.4 | /home/peter/.var/app/org.octave.Octave/data/octave/api-v60/packages/statistics-1.7.4
struct  |  1.0.18 | /home/peter/.var/app/org.octave.Octave/data/octave/api-v60/packages/struct-1.0.18

pkg install "https://downloads.sourceforge.net/project/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases/optim-1.6.2.tar.gz"  gives the error


_max_nargin_optim_.cc: In function ‘octave_value_list F__max_nargin_optim__(const octave_value_list&, int)’:
_max_nargin_optim_.cc:77:55: error: ‘class octave::tree_parameter_list’ has no member named ‘length’
   77 |       (fcn.user_function_value ()->parameter_list ()->length ());
      |                                                       ^~~~~~
make: * [Makefile:78: _max_nargin_optim_.oct] Error 1
make: * Waiting for unfinished jobs....
make: Entering directory '/tmp/oct-NfxUTd/optim-1.6.2/src'
CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -grecord-gcc-switches -Wall -Wno-deprecated-declarations" /app/bin/mkoctfile-10.2.0 -c error-helpers.cc
CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -grecord-gcc-switches -Wall -Wno-deprecated-declarations" /app/bin/mkoctfile-10.2.0 __bfgsmin.cc error-helpers.o
CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -grecord-gcc-switches -Wall -Wno-deprecated-declarations" /app/bin/mkoctfile-10.2.0 numgradient.cc error-helpers.o
CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -grecord-gcc-switches -Wall -Wno-deprecated-declarations" /app/bin/mkoctfile-10.2.0 numhessian.cc error-helpers.o
CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -grecord-gcc-switches -Wall -Wno-deprecatedns" /app/bin/mkoctfile-10.2.0 \
             -lopenblas \
            _disna_optim_.cc error-helpers.o
CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -grecord-gcc-switches -Wall -Wno-deprecatedns" /app/bin/mkoctfile-10.2.0 _max_nargin_optim_.cc error-helpers.o
make: Leaving directory '/tmp/oct-NfxUTd/optim-1.6.2/src'

error: pkg: error running 'make' for the optim package
error: called from
    configure_make at line 117 column 9
    install at line 202 column 7
    pkg at line 619 column 9

peterXP <peterxp2>

 

(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by mmuetzel
  • -email is unavailable- added by swayamshah (Posted a comment)
  • -email is unavailable- added by peterxp2 (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-06-19 mmuetzel Carbon-Copy- Added i7tiol

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code