[MacPorts] #72327: octave-optim @1.6.2_6 broken after octave upgrade to @10.1.0_0

MacPorts noreply at macports.org
Fri Apr 11 11:24:34 UTC 2025


#72327: octave-optim @1.6.2_6 broken after octave upgrade to @10.1.0_0
---------------------+--------------------------
 Reporter:  Gandoon  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.10.5
 Keywords:           |       Port:  octave-optim
---------------------+--------------------------
 I currently have `octave-optim @1.6.2_6+gcc14` built from source on my
 system, which was broken by the upgrade of `octave` to @10.1.0_0
 (remaining references to the previous `octave @9.4.0_0`, I assume this is
 an issue similar to the fixed #72258).

 The problem is that if I try to rebuild `octave-optim`, the build fails
 with an issue that seems to be the one referenced by
 [https://savannah.gnu.org/bugs/?65526].

 {{{
 ...
 :info:configure __max_nargin_optim__.cc:77:55: error: no member named
 'length' in 'octave::tree_parameter_list'
 :info:configure    77 |       (fcn.user_function_value ()->parameter_list
 ()->length ());
 :info:configure       |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
 :info:configure 3 warnings and 1 error generated.
 :info:configure make: *** [__max_nargin_optim__.oct] Error 1
 :info:configure pkg: error running 'make' for the optim package
 :info:configure Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_octave_octave-optim/octave-
 optim/work/optim" && /usr/bin/arch -arch $OCTAVE_ARCH /opt/local/bin
 /octave-cli -q -f -H --eva
 l 'try; pkg build -verbose -nodeps
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_octave_octave-optim/octave-optim/work
 /tmp-build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macport
 s.org_macports_release_tarballs_ports_octave_octave-optim/octave-
 optim/work/optim-1.6.2.tar.gz; catch; disp(lasterror.message); exit(1);
 end_try_catch;'
 :info:configure Exit code: 1
 :error:configure Failed to configure octave-optim: configure failure:
 command execution failed
 :debug:configure Error code: NONE
 :debug:configure Backtrace: configure failure: command execution failed
 :debug:configure     while executing
 :debug:configure "$procedure $targetname"
 :error:configure See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_octave_octave-optim/octave-
 optim/main.log for details.
 }}}

 However, trying the approach suggested in that bug report, another quite
 opaque error appears that I can't figure out where I should attack:

 {{{
 ...
 :info:configure if grep -q DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS
 __max_nargin_optim__.cc; \
 :info:configure             then echo "The string
 'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS' must not be present in source
 code, but is in __max_nargin_optim__.cc."; \
 :info:configure             exit 1; \
 :info:configure           fi
 :info:configure (echo "#include <stdio.h>"; \
 :info:configure          echo "int main () {"; \
 :info:configure          sed -e
 s/DEFUN_DLD/DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g \
 :info:configure              -e
 s/DEFUNX_DLD/DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/g
 __max_nargin_optim__.cc \
 :info:configure          | ccache /usr/bin/clang++ -E `/usr/bin/arch -arch
 x86_64 /opt/local/bin/mkoctfile-10.1.0 --verbose -p INCFLAGS` -x c++
 -iquote '.' \
 :info:configure
 -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)'
 \
 :info:configure
 -D'DEFUNX_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,fname,gname,args,nargout,doc)=DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)'
 - \
 :info:configure          | sed -e
 '/.*DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS/!D'; \
 :info:configure          echo "}"; \
 :info:configure         ) \
 :info:configure         | ccache /usr/bin/clang++ -x c++
 -D'DEFUN_DLD_REPLACEMENT_FOR_PACKAGE_DOCS(name,doc)=printf("%c" #name
 "\n at c " #name " __max_nargin_optim__.cc\n" doc "\n\n", 0x1D);' -o
 __max_nargin_optim__.bin -
 :info:configure <stdin>:4:2: error: expected '}'
 :info:configure     4 | }
 :info:configure       |  ^
 :info:configure <stdin>:2:13: note: to match this '{'
 :info:configure     2 | int main () {
 :info:configure       |             ^
 :info:configure 1 error generated.
 :info:configure make: *** [__max_nargin_optim__.bin] Error 1
 :info:configure rm MFDOCSTRINGS numhessian.cc.docstrings
 __disna_optim__.bin numgradient.bin numgradient.cc.docstrings
 numhessian.bin __disna_optim__.cc.docstrings __bfgsmin.bin
 __bfgsmin.cc.docstrings
 :info:configure pkg: error running 'make' for the optim package
 :info:configure Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_octave_octave-optim/octave-
 optim/work/optim" && /usr/bin/arch -arch $OCTAVE_ARCH /opt/local/bin
 /octave-cli -q -f -H --eval 'try; pkg build -verbose -nodeps
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_octave_octave-optim/octave-optim/work
 /tmp-build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_octave_octave-optim/octave-
 optim/work/optim-1.6.2.tar.gz; catch; disp(lasterror.message); exit(1);
 end_try_catch;'
 :info:configure Exit code: 1
 :error:configure Failed to configure octave-optim: configure failure:
 command execution failed
 :debug:configure Error code: NONE
 :debug:configure Backtrace: configure failure: command execution failed
 :debug:configure     while executing
 :debug:configure "$procedure $targetname"
 :error:configure See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_octave_octave-optim/octave-
 optim/main.log for details.
 }}}

 See attached log for the full context.

 Does anyone else have this issue, and/or does anyone have a suggestion as
 to where I should look for the root cause?

-- 
Ticket URL: <https://trac.macports.org/ticket/72327>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list