bugGNU Octave - Bugs: bug #66478, Control toolbox installation fails...

 
 

bug #66478: Control toolbox installation fails at Homebew

Submitter:  None
Submitted:  Fri 22 Nov 2024 11:07:05 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  None Assigned to:  None
Originator Name:  oscar Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 9.2.0
Operating System:  * Mac OS Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 26 Nov 2024 07:18:38 AM UTC, comment #3: 

Please include all the output.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 26 Nov 2024 05:41:02 AM UTC, comment #2: 

Doesn't work for me. No idea why.

Trying gnu++17...


octave:1> setenv("CXX", "clang++ -std=gnu++17")
octave:2> pkg install -forge -verbose control
...
blablabla
...
/opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/oct-conf-post-public.h:27:12: fatal error:
      'cinttypes' file not found
   27 | #  include <cinttypes>
      |            ^~~~~~~~~~~
...

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

==========================================================

Same for gnu++14, I think...


octave:1> setenv("CXX", "clang++ -std=gnu++14")
octave:2> pkg install -forge -verbose control

...

/opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/oct-conf-post-public.h:27:12: fatal error:
      'cinttypes' file not found
   27 | #  include <cinttypes>

...

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


Anonymous
Fri 22 Nov 2024 11:39:40 PM UTC, comment #1: 

I think <cinttypes> require C++14 standard as a minimum.

Try setting "CXX=clang++ -std=gnu++14" (or 17).
E.g.:

octave:2> setenv("CXX", "clang++ -std=gnu++17")
octave:3> pkg install -forge -verbose control
downloading tarball(s) from:
- https://packages.octave.org/download/control-4.0.1.tar.gz
...


That works for me.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 22 Nov 2024 11:07:05 PM UTC, original submission:  

Attempting to install control on Homebrew Octave.
M1 PowerBook Pro,
Sonoma macOS 14.7.1.
HOMEBREW_VERSION: 4.4.6,
Command Line Tools 16.1.0.0.1.1729049160

octave:1> pkg install -forge control
In file included from _control_helper_functions_.cc:1:
In file included from ./is_real_scalar.cc:28:
In file included from /opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/oct.h:29:
In file included from /opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/octave-config.h:99:
/opt/homebrew/Cellar/octave/9.2.0_2/include/octave-9.2.0/octave/../octave/oct-conf-post-public.h:27:12: fatal error:
      'cinttypes' file not found
   27 | #  include <cinttypes>
      |            ^~~~~~~~~~~
1 error generated.
make: * [__control_helper_functions__.oct] Error 1
make: * Waiting for unfinished jobs....
cd slicot/src && /opt/homebrew/Cellar/octave/9.2.0_2/bin/mkoctfile-9.2.0 -w -c MA02ID.f; mv MA02ID.f x && /opt/homebrew/Cellar/octave/9.2.0_2/bin/mkoctfile-9.2.0 -c *.f && mv x MA02ID.f
/opt/homebrew/Cellar/octave/9.2.0_2/bin/mkoctfile-9.2.0 -Wall -Wno-deprecated-declarations  _control_helper_functions_.cc
ar -rc slicotlibrary.a slicot/src/*.o

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

Anonymous

 

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

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code