Package Details: octave-optim 1.6.2-1

Git Clone URL: https://aur.archlinux.org/octave-optim.git (read-only, click to copy)
Package Base: octave-optim
Description: Non-linear optimization toolkit.
Upstream URL: https://gnu-octave.github.io/packages/optim/
Licenses: custom
Groups: octave-forge
Submitter: drizzd
Maintainer: pingplug
Last Packager: pingplug
Votes: 32
Popularity: 0.000000
First Submitted: 2011-10-31 15:26 (UTC)
Last Updated: 2022-11-08 01:36 (UTC)

Latest Comments

carlosal1015 commented on 2022-04-09 20:28 (UTC)

This thread can help us.

pingplug commented on 2022-04-09 13:36 (UTC)

@carlosal1015 please report it to upstream

carlosal1015 commented on 2022-04-08 16:22 (UTC)

Hi, I have the following message error

==> Making package: octave-optim 1.6.1-1 (Fri 08 Apr 2022 11:20:18 AM -05)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
mkdir (/tmp/oct-Y75QvA)
untar (optim-1.6.1.tar.gz, /tmp/oct-Y75QvA)
checking for mkoctfile... /usr/bin/mkoctfile-7.1.0 --verbose
checking for octave-config... /usr/bin/octave-config-7.1.0
checking for a sed that does not truncate output... /usr/sbin/sed
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/sbin/grep
checking for egrep... /usr/sbin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for error_at_line... yes
checking for sqrt... no
checking   feval or octave::feval... octave::feval
checking   xisnan or octave::math::isnan... octave::math::isnan
checking   is_cell or iscell... iscell
checking   octave_execution_exception or octave::execution_exception... octave::execution_exception
checking   octave_vformat or octave::vformat... octave::vformat
checking   identity_matrix or octave::identity_matrix... octave::identity_matrix
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
make: Entering directory '/tmp/oct-Y75QvA/optim-1.6.1/src'
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS" /usr/bin/mkoctfile-7.1.0 --verbose -c error-helpers.cc
g++ -c  -fPIC -I/usr/include/octave-7.1.0/octave/.. -I/usr/include/octave-7.1.0/octave  -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS    error-helpers.cc -o error-helpers.o
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS" /usr/bin/mkoctfile-7.1.0 --verbose __bfgsmin.cc error-helpers.o
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS" /usr/bin/mkoctfile-7.1.0 --verbose numgradient.cc error-helpers.o
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS" /usr/bin/mkoctfile-7.1.0 --verbose numhessian.cc error-helpers.o
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS" /usr/bin/mkoctfile-7.1.0 --verbose \
            -llapack -lblas \
            __disna_optim__.cc error-helpers.o
g++ -c  -fPIC -I/usr/include/octave-7.1.0/octave/.. -I/usr/include/octave-7.1.0/octave  -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS    __bfgsmin.cc -o /tmp/oct-Lso1Mt.o
g++ -c  -fPIC -I/usr/include/octave-7.1.0/octave/.. -I/usr/include/octave-7.1.0/octave  -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS    numgradient.cc -o /tmp/oct-6HQ5y9.o
g++ -c  -fPIC -I/usr/include/octave-7.1.0/octave/.. -I/usr/include/octave-7.1.0/octave  -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS    numhessian.cc -o /tmp/oct-rhjtF0.o
g++ -c  -fPIC -I/usr/include/octave-7.1.0/octave/.. -I/usr/include/octave-7.1.0/octave  -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS    __disna_optim__.cc -o /tmp/oct-t4ux9Y.o
In file included from numgradient.cc:24:
numgradient.cc: In function ‘bool any_bad_argument(const octave_value_list&)’:
error-helpers.h:119:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
  119 |         if (error_state) \
      |             ^~~~~~~~~~~
numgradient.cc:47:7: note: in expansion of macro ‘SET_ERR’
   47 |       SET_ERR (tmp = args(2).int_value(), err);
      |       ^~~~~~~
In file included from /usr/include/octave-7.1.0/octave/oct.h:36,
                 from numgradient.cc:18:
/usr/include/octave-7.1.0/octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from numgradient.cc:24:
error-helpers.h:121:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
  121 |             error_state = 0; \
      |             ^~~~~~~~~~~
numgradient.cc:47:7: note: in expansion of macro ‘SET_ERR’
   47 |       SET_ERR (tmp = args(2).int_value(), err);
      |       ^~~~~~~
In file included from /usr/include/octave-7.1.0/octave/oct.h:36,
                 from numgradient.cc:18:
/usr/include/octave-7.1.0/octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from numhessian.cc:24:
numhessian.cc: In function ‘bool any_bad_argument(const octave_value_list&)’:
error-helpers.h:119:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
  119 |         if (error_state) \
      |             ^~~~~~~~~~~
numhessian.cc:47:7: note: in expansion of macro ‘SET_ERR’
   47 |       SET_ERR (tmp = args(2).int_value(), err);
      |       ^~~~~~~
In file included from /usr/include/octave-7.1.0/octave/oct.h:36,
                 from numhessian.cc:18:
/usr/include/octave-7.1.0/octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from numhessian.cc:24:
error-helpers.h:121:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
  121 |             error_state = 0; \
      |             ^~~~~~~~~~~
numhessian.cc:47:7: note: in expansion of macro ‘SET_ERR’
   47 |       SET_ERR (tmp = args(2).int_value(), err);
      |       ^~~~~~~
In file included from /usr/include/octave-7.1.0/octave/oct.h:36,
                 from numhessian.cc:18:
/usr/include/octave-7.1.0/octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from __disna_optim__.cc:21:
__disna_optim__.cc: In function ‘octave_value_list F__disna_optim__(const octave_value_list&, int)’:
error-helpers.h:48:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
   48 |         if (error_state) \
      |             ^~~~~~~~~~~
__disna_optim__.cc:74:3: note: in expansion of macro ‘CHECK_ERROR’
   74 |   CHECK_ERROR (job_str = args(0).string_value (), retval,
      |   ^~~~~~~~~~~
In file included from /usr/include/octave-7.1.0/octave/../octave/oct.h:36,
                 from __disna_optim__.cc:18:
/usr/include/octave-7.1.0/octave/../octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from __disna_optim__.cc:21:
error-helpers.h:48:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
   48 |         if (error_state) \
      |             ^~~~~~~~~~~
__disna_optim__.cc:94:7: note: in expansion of macro ‘CHECK_ERROR’
   94 |       CHECK_ERROR (d = args(1).float_column_vector_value (), retval,
      |       ^~~~~~~~~~~
In file included from /usr/include/octave-7.1.0/octave/../octave/oct.h:36,
                 from __disna_optim__.cc:18:
/usr/include/octave-7.1.0/octave/../octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from __disna_optim__.cc:21:
error-helpers.h:48:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
   48 |         if (error_state) \
      |             ^~~~~~~~~~~
__disna_optim__.cc:100:7: note: in expansion of macro ‘CHECK_ERROR’
  100 |       CHECK_ERROR (d = args(1).column_vector_value (), retval,
      |       ^~~~~~~~~~~
In file included from /usr/include/octave-7.1.0/octave/../octave/oct.h:36,
                 from __disna_optim__.cc:18:
/usr/include/octave-7.1.0/octave/../octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from __disna_optim__.cc:21:
error-helpers.h:48:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
   48 |         if (error_state) \
      |             ^~~~~~~~~~~
__disna_optim__.cc:127:11: note: in expansion of macro ‘CHECK_ERROR’
  127 |           CHECK_ERROR (m = TO_F77_INT (args(2).idx_type_value ()), retval,
      |           ^~~~~~~~~~~
In file included from /usr/include/octave-7.1.0/octave/../octave/oct.h:36,
                 from __disna_optim__.cc:18:
/usr/include/octave-7.1.0/octave/../octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from __disna_optim__.cc:21:
error-helpers.h:48:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
   48 |         if (error_state) \
      |             ^~~~~~~~~~~
__disna_optim__.cc:130:11: note: in expansion of macro ‘CHECK_ERROR’
  130 |           CHECK_ERROR (n = TO_F77_INT (args(3).idx_type_value ()), retval,
      |           ^~~~~~~~~~~
In file included from /usr/include/octave-7.1.0/octave/../octave/oct.h:36,
                 from __disna_optim__.cc:18:
/usr/include/octave-7.1.0/octave/../octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from __bfgsmin.cc:30:
__bfgsmin.cc: In function ‘int __bfgsmin_obj(double&, std::string, octave_value_list, ColumnVector, int)’:
error-helpers.h:119:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
  119 |         if (error_state) \
      |             ^~~~~~~~~~~
__bfgsmin.cc:39:3: note: in expansion of macro ‘SET_ERR’
   39 |   SET_ERR (f_return = OCTAVE__FEVAL (f, f_args_new), err);
      |   ^~~~~~~
In file included from /usr/include/octave-7.1.0/octave/oct.h:36,
                 from __bfgsmin.cc:23:
/usr/include/octave-7.1.0/octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from __bfgsmin.cc:30:
error-helpers.h:121:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
  121 |             error_state = 0; \
      |             ^~~~~~~~~~~
__bfgsmin.cc:39:3: note: in expansion of macro ‘SET_ERR’
   39 |   SET_ERR (f_return = OCTAVE__FEVAL (f, f_args_new), err);
      |   ^~~~~~~
In file included from /usr/include/octave-7.1.0/octave/oct.h:36,
                 from __bfgsmin.cc:23:
/usr/include/octave-7.1.0/octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from __bfgsmin.cc:30:
error-helpers.h:119:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
  119 |         if (error_state) \
      |             ^~~~~~~~~~~
__bfgsmin.cc:42:7: note: in expansion of macro ‘SET_ERR’
   42 |       SET_ERR (obj = f_return(0).double_value(), err);
      |       ^~~~~~~
In file included from /usr/include/octave-7.1.0/octave/oct.h:36,
                 from __bfgsmin.cc:23:
/usr/include/octave-7.1.0/octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
In file included from __bfgsmin.cc:30:
error-helpers.h:121:13: warning: ‘error_state’ is deprecated: [6]: this variable is obsolete and always has the value 0 [-Wdeprecated-declarations]
  121 |             error_state = 0; \
      |             ^~~~~~~~~~~
__bfgsmin.cc:42:7: note: in expansion of macro ‘SET_ERR’
   42 |       SET_ERR (obj = f_return(0).double_value(), err);
      |       ^~~~~~~
In file included from /usr/include/octave-7.1.0/octave/oct.h:36,
                 from __bfgsmin.cc:23:
/usr/include/octave-7.1.0/octave/error.h:577:26: note: declared here
  577 | extern OCTINTERP_API int error_state;
      |                          ^~~~~~~~~~~
g++ -I/usr/include/octave-7.1.0/octave/.. -I/usr/include/octave-7.1.0/octave  -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS  -o __disna_optim__.oct  error-helpers.o /tmp/oct-t4ux9Y.o   -llapack -lblas -shared -Wl,-Bsymbolic -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  -shared -Wl,-Bsymbolic  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto 
g++ -I/usr/include/octave-7.1.0/octave/.. -I/usr/include/octave-7.1.0/octave  -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS  -o numgradient.oct  error-helpers.o /tmp/oct-6HQ5y9.o   -shared -Wl,-Bsymbolic -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  -shared -Wl,-Bsymbolic  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto 
g++ -I/usr/include/octave-7.1.0/octave/.. -I/usr/include/octave-7.1.0/octave  -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS  -o numhessian.oct  error-helpers.o /tmp/oct-rhjtF0.o   -shared -Wl,-Bsymbolic -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  -shared -Wl,-Bsymbolic  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto 
g++ -I/usr/include/octave-7.1.0/octave/.. -I/usr/include/octave-7.1.0/octave  -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS  -o __bfgsmin.oct  error-helpers.o /tmp/oct-Lso1Mt.o   -shared -Wl,-Bsymbolic -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  -shared -Wl,-Bsymbolic  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto 
make: Leaving directory '/tmp/oct-Y75QvA/optim-1.6.1/src'
copyfile /tmp/oct-Y75QvA/optim-1.6.1/src/__bfgsmin.oct /tmp/oct-Y75QvA/optim-1.6.1/src/__disna_optim__.oct /tmp/oct-Y75QvA/optim-1.6.1/src/numgradient.oct /tmp/oct-Y75QvA/optim-1.6.1/src/numhessian.oct /tmp/oct-Y75QvA/optim-1.6.1/inst/x86_64-pc-linux-gnu-api-v57
warning: optimset: no defaults for function 'lsqlin'
warning: called from
    __all_opts__ at line 62 column 9
    /tmp/makepkg/octave-optim/src/install_prefix/optim-1.6.1/PKG_ADD at line 6 column 5
    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

warning: optimset: no defaults for function 'vfzero'
warning: called from
    __all_opts__ at line 62 column 9
    /tmp/makepkg/octave-optim/src/install_prefix/optim-1.6.1/PKG_ADD at line 22 column 5
    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

error: parse error near line 118 of file /tmp/makepkg/octave-optim/src/install_prefix/optim-1.6.1/lsqlin.m

  n_out: invalid use of symbol as both variable and command

>>>     n_out --;
       ^
error: called from
    doc_cache_create>create_cache at line 116 column 20
    gen_doc_cache_in_dir>@<anonymous> at line 150 column 16
    doc_cache_create>gen_doc_cache_in_dir at line 151 column 9
    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
==> ERROR: A failure occurred in build().
    Aborting...

FoPref commented on 2019-06-06 15:21 (UTC)

Does not compile, but if you patch PKGBUILD version string to 1.6.0 and corresponding MD5, it will.

drizzd commented on 2015-06-10 08:41 (UTC)

Upgrading fails with conflicts How to fix: Uninstall the package and packages which depend on it with pacman -Rc <package>, then re-install the new version and packages which depend on it. See also https://bbs.archlinux.org/viewtopic.php?id=196909.