octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #65526] (optim) ‘class octave::tree_parameter_


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #65526] (optim) ‘class octave::tree_parameter_list’ has no member named ‘length’
Date: Thu, 28 Mar 2024 14:22:22 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?65526>

                 Summary: (optim) ‘class octave::tree_parameter_list’ has
no member named ‘length’
                   Group: GNU Octave
               Submitter: dasergatskov
               Submitted: Thu 28 Mar 2024 06:22:21 PM UTC
                Category: Octave Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 28 Mar 2024 06:22:21 PM UTC By: Dmitri A. Sergatskov <dasergatskov>
Due to some changes in Octave 10 (dev), optim package failed to compile with:

g++ -std=gnu++17 -c  -fPIC -I/usr/local/include/octave-10.0.0/octave/..
-I/usr/local/include/octave-10.0.0/octave -I/usr/local/include  -pthread
-fopenmp -ggdb3 -O2 -march=native -mtune=native -mavx -mavx2 -flto=auto -Wall
-Wno-deprecated-declarations    __disna_optim__.cc -o /tmp/oct-Xze0Ro.o
__max_nargin_optim__.cc: In function ‘octave_value_list
F__max_nargin_optim__(const octave_value_list&, int)’:
__max_nargin_optim__.cc:74:55: error: ‘class octave::tree_parameter_list’
has no member named ‘length’
   74 |       (fcn.user_function_value ()->parameter_list ()->length ());
      |                                                       ^~~~~~
make[1]: *** [Makefile:78: __max_nargin_optim__.oct] Error 1


The patch from mxe-octave fixes that:
https://hg.octave.org/mxe-octave/file/tip/src/of-optim-2-list.patch


+
−
diff -r d5e565611871 -r 2254b71b9c11 src/__max_nargin_optim__.cc
--- a/src/__max_nargin_optim__.cc       Sun Jul 09 14:11:23 2023 +0200
+++ b/src/__max_nargin_optim__.cc       Wed Feb 07 20:30:33 2024 +0100
@@ -71,7 +71,7 @@
   else {
 
     retval = octave_value
-      (fcn.user_function_value ()->parameter_list ()->length ());
+      (fcn.user_function_value ()->parameter_list ()->size ());
   }
 
   return retval;


Dmitri.
-- 








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65526>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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